Create a solution with the following projects.
A .NetStandard2.0 project, name it \"1\"
A .NetStandard2.0 project, name it \"2\"
Add a reference of p
To address this, here are the steps you need to take:
Microsoft.Build.Locator
NuGet package.MSBuildLocator.RegisterDefaults();
before creating the MSBuildWorkspace
With those steps I was able to correctly build the 2 projects.
This is how you can remove the files from the output folder (add this to your .csproj or use the Post Build steps in Visual Studio).
del "$(TargetDir)\Microsoft.Build.dll"
del "$(TargetDir)\Microsoft.Build.Framework.dll"
del "$(TargetDir)\Microsoft.Build.Tasks.Core.dll"
del "$(TargetDir)\Microsoft.Build.Utilities.Core.dll"
For additional information please see: https://github.com/dotnet/roslyn/issues/26029