vfdsabvdasvd
vfdsabvdasvd

Reputation: 65

msbuild version

Error :

error : Version 6.0.404 of the .NET SDK requires at least version 17.0.0 of MSBuild. The current available version of MSBuild is 16.11.2.50704. Change the .NET SDK specified in global.json to an older version that requires the MSBuild version currently available.

How can I update my msbuild version I have only:

C:\Program Files (x86)\MSBuild\15.0

My Visual studio version is 2019

Upvotes: 4

Views: 23187

Answers (2)

Kavya
Kavya

Reputation: 1

Run from cmd to get the version:

   msbuild /version 

For more information on msbuild, you can run:

   msbuild /help

Upvotes: 0

Jonathan Dodds
Jonathan Dodds

Reputation: 5008

Visual Studio 2019 for Windows doesn't support .NET 6. You need VS2022 for MSBuild v17 and .NET 6 support.

You can upgrade to VS2022 or install VS2022 side-by-side with VS2019. You can install any of the VS2022 installation variants: 'Community', 'Professional', 'Enterprise', or 'Build Tools'. There is not an installer for MSBuild by itself.

The C:\Program Files (x86)\MSBuild\15.0 path is not where you are using MSBuild from. The error message notes you are using version 16.11.2.50704. Open a Developer Command Prompt for VS 2019 and run where msbuild, if you are curious about the actual location.

Upvotes: 6

Related Questions