I have added the command BuildOnlyProject to the Menu. But it is always disabled. It is also disabled, when I select a Project-Node in the Solutionexplorer. Does someone know why?
Thanks and best regards, Thomas
Visual Studio does not support project only builds for C# or Visual Basic projects, only for C++ projects. If you have a mixed solution with both C# and C++ projects in it you can select a C++ project in the Solution Explorer and you will see:
in the menu. Using this menu option will literally cause just a single project to be built as demonstrated by the output window. On the other hand, if you select a C# project, the "Project Only" sub-menu will be gone and the only way to build the project will be with:
When you use this menu option the selected project and any other projects that the project depends on will also be built, often several projects in all.
This is why if you select a project that is not a C++ project the "Build Only Project" command will be disabled.
Do you want anything to happen that would be different from the command Build.BuildSelection
? It seems that Build.BuildProjectOnly
does not work, and MS seems to imply that what people want is Build.BuildSelection.
If you want to get dirty why not add a special build configuration to your project which only includes the one project you want to build
only the selected projects will be build.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With