Empty Visual Studio Project?

前端 未结 7 798
既然无缘
既然无缘 2021-01-30 12:24

Is there a way to have an empty Project in Visual Studio 2008 or 2010? I do not mean an empty solution, I mean an empty project in a solution. Basically I have a solution with m

7条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-30 13:00

    The Visual C++ project types has an "Empty Project" in the "General" category.

    It comes up with several empty folders ("Header Files", "Resource Files", "Source Files") that are just 'filters' (they aren't on the file system). You can just remove them.

    It also has all the properties of a C++ project available, so don't put C/C++ files in there unless you want them built (or you exclude them from the build).

    Other than that, it's pretty empty.

    Probably even closer to an "empty project" is a "Makefile Project" which is also located in the "General" category of the Visual C++ project templates. It also creates the 3 filter folders, along with a readme.txt file that you can delete. It has the advantage that unless you specifically give it commands to run during the build, it won't do a damn thing.

提交回复
热议问题