Build MSBuild target without dependencies defined in solution

412 Views Asked by At

I'd like to invoke MSBuild to build a single project inside a solution. Therefore I use

MSBuild MySolution.sln /t:MyProject

Since I have some sophisticated deployment process and I want to save time, I need to build just the one project, but nothing else. Like mentioned here I tried

MSBuild MySolution.sln /t:MyProject /p:BuildProjectReferences=false

which works for project-to-project references, but not for project references defined by the solution (via ProjectSection(ProjectDependencies) in sln-file).

Does anyone know a way to ignore the solution project references also?

0

There are 0 best solutions below