Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get MSBuild to ignore project references?

Tags:

msbuild

How can I get MSBuild to completely ignore all the <ProjectReference> elements in my .csproj? I really want it to build just the current project, without the projects that it depends on.

like image 792
Dmitri Nesteruk Avatar asked Jul 06 '11 13:07

Dmitri Nesteruk


1 Answers

msbuild MySolution.sln /t:MyProjectName /p:BuildProjectReferences=false

The key is the BuildProjectReferences=false parameter.

like image 183
jlew Avatar answered Oct 03 '22 09:10

jlew