Visual Studio does not support building projects only for C # or Visual Basic projects, only for C ++ projects. If you have a mixed solution with C # and C ++ projects, you can select the C ++ project in the solution explorer and you will see:
- Build → Only project → Build only CPlusPlusProjectName
on the menu. Using this menu option will literally lead to the creation of only one project, as shown in the output window. On the other hand, if you select a C # project, the "Project Only" submenu will disappear, and the only way to build a project would be:
- Assembly -> Assembly CSharpProjectName
When you use this menu item, the selected project and any other projects depending on the project, and often several projects, will also be created.
That's why if you select a project that is not a C ++ project, the Build Only Project command will be disabled.
source share