如何使用 vs 2008 创建解决方案文件

发布于 2024-08-10 11:47:29 字数 172 浏览 2 评论 0原文

我拥有下面列出的用于部署的所有文件:

-BIN -CSS -图像 默认.aspx 预编译App.xml Web.xml

上述文件可以复制粘贴到 webapps 文件夹中,default.aspx 可以从浏览器运行。

我想从中创建一个解决方案 sln 文件。如何创建解决方案文件?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

甜点 2024-08-17 11:47:29

解决方案只是项目的容器。如果您创建包含这些文件的项目,则会在同一目录中自动创建解决方案文件(除非您另外指定)。

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).

清风疏影 2024-08-17 11:47:29
  1. 文件->新建项目
  2. 展开其他项目类型,选择
    Visual Studio 解决方案
  3. 在模板下,确保您有
    选定的空白解决方案
  4. 输入名称和位置
    解决方案并单击确定
  5. 文件->添加->现有网站
  6. 选择包含您的网站的文件夹
    网站并单击打开
  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
意犹 2024-08-17 11:47:29

看起来您正在创建一个网站。我从来无法创建一个只有一个网站的解决方案(网络应用程序是一个不同的野兽)。不过,我找到了一种解决方法,尽管有点笨拙。创建一个新的类库项目(任何项目类型都可以)。这将创建项目文件。然后文件->添加->现有网站。指向您现有的网站并添加它。这将创建解决方案文件,因为您现在有两个项目。您现在可以删除您创建的第一个项目。这将为您留下一个包含一个网站的解决方案文件。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文