简体   繁体   中英

How to create a solution file using vs 2008

I have all the files for the deployment listed below :

-BIN -CSS -IMAGES default.aspx PrecompiledApp.xml Web.xml

The above files can be copy pasted in the webapps folder and default.aspx could be run from the browser.

i want to create a solution sln file from this. How to create a solution file?

A solution is merely a container of projects. If you create a project containing these files, the solution file will be created automatically in the same directory (unless you specify otherwise).

  1. File -> New Project
  2. Expand Other Project Types, Select Visual Studio Solutions
  3. Under Templates, ensure you have selected Blank Solution
  4. Enter a name and a location for the solution and click OK
  5. File -> Add -> Existing Web Site
  6. Select the folder that contains your website and click Open

It looks as though you are creating a web site. I've never been able to create a solution with just a website in it ( a web application is a different beast however ). However, I have found a workaround, although it's a little cludgy. Create a new class library project (any project type will do really). This will create the project file. Then File -> Add -> Exisiting Web Site. Point to your existing web site and add it. This will create the solution file as you now have two items. You can now delete the first project that you created. This will leave you with a solution file with one web site in it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM