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

Announcements

No record found.

News and Announcements icon
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 273
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
    304,138 Super User 2026 Season 1 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,358 Moderator 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,583 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 649

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 447 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 242 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans