Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Empty Visual Studio Project?

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 multiple projects, and I want to add a project to track some static files that are part of the solution but not of any specific project. Adding them as solution files doesn't work because solution folders are not mapped to file system folders and I want to manage hierarchy from Visual Studio.

At the moment I create an empty Visual C# project which works, but I just wonder if there is a "more empty" project.

like image 693
Michael Stum Avatar asked Dec 03 '09 00:12

Michael Stum


People also ask

How do I create an empty project in Visual Studio?

To create an empty solutionOn the menu bar, select File > New > Project. On the Create a new project page, type solution into the search box. Select the Blank Solution template, and then click Next. Enter Name and Location values for your solution, and then select Create.

How do I start an empty C++ project in Visual Studio?

In Visual Studio, open the File menu and choose New > Project to open the New Project dialog. In the New Project dialog, select Installed > Visual C++ if it isn't selected already, and then choose the Empty Project template. In the Name field, enter HelloWorld. Choose OK to create the project.


1 Answers

I was misled by the C++ "Empty Project" or "Makefile Project". I cant create new folder there.

Here are three steps to add an empty C# project:

1) Create the project. (Add > New Project > Visual C# > Windows > Empty Project)

2) Exclude it from build. (Build > Configuration Manager, uncheck Build on both Debug and Release configuration)

3) Replace its csproj content with the following 3 liners:

<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> </Project> 

There you go. You can create a folder in this project, yet it does not build.

like image 165
Jeson Martajaya Avatar answered Sep 26 '22 15:09

Jeson Martajaya