Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a truly blank project in Visual Studio (2017)

It seems like there should be a way to do this, but I just can't seem to do it. I love VS and I want to use it to develop web apps that are strictly HTML/Javascript based. In other words, no C#, no VB, no resulting /bin folder, no web config, no nothing. A blank project meaning "truly 100% blank" and not trying force me into some Microsoft technology or otherwise. I just want to use VS to write the code because it's still the best HTML/Javascript/Typescript/Everything-else-script editor out there.

Any thoughts on this? Can it even be done? Or is VS just too dependent on "Microsoft thinking" to allow this?

like image 344
Todd Davis Avatar asked Jun 05 '17 02:06

Todd Davis


People also ask

How do you create a project in Visual Studio?

If the Visual Studio development environment is already open, you can create a new project by choosing File > New > Project on the menu bar. You can also select the New Project button on the toolbar, or press Ctrl+Shift+N.

How do I create an .SLN File in Visual Studio?

From the Visual Studio menu choose "File | New | Project..." Solutions" and create a blank solution. point it to your web site to add it to your new solution.


1 Answers

What you have described is indeed possible in Visual Studio 2017 Community.

enter image description here

Step 1) Create a new Project via File / New / Project

enter image description here

Step 2) Select Other Project Types / Visual Studio Solutions / Blank Solution.

enter image description here

Step 3) Right-click the newly created solution and select Add / New Solution Folder. This step may not seem important, but it seems that files cannot be added directly to a solution without first creating a "Solution Folder". This solution folder is virtual in that it does not correspond a physical folder location.

enter image description here

Step 4) Now right-click the newly created Solution Folder and select Add / Existing Item.

enter image description here

Step 5) Insert all the files you want to add. These may be added via the menu option in Step 4 or otherwise drag-and-dropped onto the solution folder (not the solution itself!).

enter image description here

Notice that even after creating the new solution and adding files, the only things created by Visual Studio 2017 are the usual .vs internal folder and the solution file itself.

like image 166
Michael Avatar answered Sep 19 '22 16:09

Michael