• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 367
  • Last Modified:

Trying to create new sln for existing files

I have just checked out a new project that has no .sln from subversion. The project now resides on my harddrive. Now I would like to create a new Visual Studio .sln for the project in the very same directory as where the files for the project exist. Then I would simply add the project files to this .sln.
There is a functionality in in VS called "Create project from Existing Files"  (Under File --New). Which makes it sound as if this is exactly what I need. However, I need the output type to be a web application and this type is not available in the dropdown for the output type. (It only lists Console Application, Windows Application, or Class Library)

Any suggestions on how to accomplish this would be greatly appreciated.

2 Solutions
deepu chandranCommented:
Before closing the Solution after opening website as a folder will ask you to save the solution or not. If you give Yes then the Sln file will be saved in the Visual Studio Default projects folder.


1) Open the website from ur Project Folder (When you open the Website itself a solution will be created automatically)
2) Close Solution will ask you to save
3) Press Yes will save

This may be that the project that you checked out from subversion is a website rather than a web application.  If you go to visual studio it will let you open up the web site.  Once open in visual studio, you can right click the project and select convert to web application.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now