I\'m trying to build a project using the classes in Microsoft.Build.
The code is:
var project = new ProjectInstance(CS_PROJ_FILE);
project.Build();
<
I hit the same error after I installed:
Install-Package Microsoft.Build -Version 15.1.1012
But then I installed:
Install-Package Microsoft.Build.Utilities.Core -Version 15.1.1012
And things started working.
A little confusing...
I was pointed to this stackoverflow question by "dasMulli" at:
https://github.com/Microsoft/msbuild/issues/1889