web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Visual studio 2019 to 2022 D365 F&O

(4) ShareShare
ReportReport
Posted on by 265
Hi All,
 
 
 
I’ve updated visual studio from 2019 to 2022, and I’ve changed build solution visual studio version to 2022 in pipeline. Can anyone help me if I need to change else where as I’m getting below warning when I ran pipeline 
 
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,196 Super User 2025 Season 2 on at
    Hi,

    Have you updated Visual Studio on the build machine or on your development environment only?
  • Verified answer
    Saif Ali Sabri Profile Picture
    2,351 Super User 2025 Season 2 on at
    🔧 Root Cause:
    This indicates the build agent does not have Visual Studio 2022 (version 17.0) installed or configured correctly.

    Concise Solution:
    1. Use a correct Microsoft-hosted agent that includes VS 2022:
    In your pipeline YAML or classic UI, set the agent pool to:
    yaml
    CopyEdit
    pool:
      vmImage: 'windows-2022'
    windows-2022 comes with Visual Studio 2022 (17.x) pre-installed.

    1. Ensure msbuildVersion is set to 17.0 (if using task-based YAML):
    yaml
    CopyEdit
    - task: VSBuild@1
      inputs:
        msbuildVersion: '17.0'

    1. If using a self-hosted agent, make sure:
      • Visual Studio 2022 is installed.
      • The build tools (MSBuild) component is selected during installation.
      • The VSINSTALLDIR environment variable or PATH is updated if needed.

    Let me know if you're using a Microsoft-hosted agent or self-hosted agent, and I can tailor the fix further.
  • Verified answer
    Navneeth Nagrajan Profile Picture
    2,438 Super User 2025 Season 2 on at
    Hi,
     
    Suggestions:
    Assuming your build pipelines are running on Azure hosted agents instead of agent pools then you can do the following:
    1. For VSTS (Visual studio team services), update your Build solution step from Visual studio 2019 to Visual Studio 2022/Latest. Usually, prefer keeping it to Latest so the version conflicting warnings are avoided. VS2022 considers either 17.0 or Latest. Re-add your build solution step with the latest artifact (Visual studio biuld). Looks like you are using an older version of the Build solution artifact.
     
     
    2. If you are using Azure DevOps Git update your pool step in YAML to 'windows-2022' and the vsbuild step to '17.0' or 'current'.
     
    3. Also, as Saif highlighted check if the D365 Tools are installed on VS2022. DevTools services in your host VM is the repository to get this sorted.

     
    Hope this helps. Happy to answer questions, if any.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 471 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 423 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans