简体   繁体   English

Visual Studio 2008新网站始终创建解决方案文件夹

[英]Visual Studio 2008 New Web site always creates a solution folder

Every time I create anew Web site project in VS it creates another folder for a solution file. 每次我在VS中创建一个新的网站项目时,它都会为解决方案文件创建另一个文件夹。

\\WebSiteName\\ \\WebSiteName(2)\\ \\ WebSiteName \\ \\ WebSiteName(2)\\

In my VS solution explorer it only shows as a Web Site project, no solution file above it. 在我的VS解决方案资源管理器中,它仅显示为网站项目,其上方没有解决方案文件。 Is there a way I can stop VS creating the solution file when all I want is a web site? 当我只需要一个网站时,有什么方法可以停止VS创建解决方案文件吗? Or is it something VS needs? 还是VS需要它?

The option not to create the solution folder is only available when using New Project. 仅在使用“新建项目”时,不创建解决方案文件夹的选项才可用。 New Website always assumes you want a solution folder and by design is working correctly. 新网站始终假定您需要解决方案文件夹,并且设计正常。 If you don't want the folder then use New Project. 如果您不希望使用该文件夹,请使用“新建项目”。

Visual Studio however does always require a solution file. 但是,Visual Studio始终需要解决方案文件。

Yes, it always needs a SLN file. 是的,它始终需要一个SLN文件。 Even if not used. 即使不使用。 If you open a project file it will create a blank/temp container solution. 如果打开项目文件,它将创建一个空白/临时容器解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio在打开Web应用程序解决方案时创建bin文件夹? - Visual Studio creates bin folder on opening web application solution? 打开Visual Studio 2008 sln文件创建一个Visual Studio文件夹 - Opening a Visual Studio 2008 sln file creates a Visual Studio folder Visual Studio重写网站的解决方案配置 - Visual Studio rewrite solution configuration for Web Site 每次我打开网站时,Visual Studio 2010都会创建一个新项目 - Visual studio 2010 creates new project every time I open a web site Visual Studio-将解决方案移动到新文件夹和名称空间 - Visual Studio - Moving a solution to a new folder and namespace Visual Studio 2008解决方案崩溃后丢失了我的文件夹结构? - Visual Studio 2008 Solution Lost My Folder Structure after crash? Visual Studio 2008加载项检查层次结构项是否为解决方案文件夹 - Visual Studio 2008 Add-In Check if Hierarchy Item is solution folder Visual Studio 创建乱码文件夹 - Visual Studio creates gibberish folder 不使用IISExpress将网站添加到Visual Studio解决方案 - Add Web Site to Visual Studio solution without using IISExpress Visual Studio Project DLL不在网站项目中更新(相同的解决方案) - Visual Studio Project DLL not updating in web site project (same solution)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM