C#C
C#3y ago
Lunar

❔ Multiple MSBuild Version

I have one solution containing multiple projects
What I want is on server I want X version of MSBuild
And on local it will run on Y version of MSbuild


what I think is by updating Visual Studio it updates MSBUild version ?
I am literally have no clue how to achieve this?

Same solution with muliple version on differnet environment,Even is it possible ?

I am getting bunch of errrors -
1 MSB4175: The task factory "CodeTaskFactory" could not be loaded from the assembly "Microsoft.Build.Tas
ks.v12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Could not load file or assembly 'Microsoft.Build.Tasks.v12.0, Version=12
.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.


2 error MSB4062: The "TransformXml" task could not be loaded from the assembly C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Micr osoft\VisualStudio\v16.0\Web\Microsoft.Web.Publishing.Tasks.dll. Could not load file or assembly 'Microsoft.Build.Utili ties.Core,

And bunch of errors....
Was this page helpful?