How to make MSBuild ignore project links?

How can I get MSBuild to completely ignore all <ProjectReference> elements in my .csproj ? I really want him to create only the current project, without the projects on which he depends.

+6
source share
1 answer
 msbuild MySolution.sln /t:MyProjectName /p:BuildProjectReferences=false 

The key is the parameter BuildProjectReferences = false.

+7
source

Source: https://habr.com/ru/post/892140/


All Articles