Dmitri Nesteruk
Dmitri Nesteruk

Reputation: 23789

How to get MSBuild to ignore project references?

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.

Upvotes: 6

Views: 3852

Answers (1)

jlew
jlew

Reputation: 10591

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

The key is the BuildProjectReferences=false parameter.

Upvotes: 9

Related Questions