简体   繁体   English

Visual Studio没有创建解决方案文件?

[英]Visual Studio not creating a solution file?

I've just opened VS 2010 Professional up on my machine, started a new ASP.NET MVC 4 Web Application project and noticed that it doesn't seem to be creating a Solution file. 我刚刚在我的机器上打开了VS 2010 Professional,启动了一个新的ASP.NET MVC 4 Web应用程序项目并注意到它似乎没有创建一个解决方案文件。 This means I can't - or don't seem to be able to add a new project to the solution as its not there! 这意味着我不能 - 或者似乎无法将新项目添加到解决方案中,因为它不存在!

Here is a screenshot to demonstrate the problem: 以下是演示此问题的屏幕截图:

在此输入图像描述

I've just tried creating a number of other new projects ie a WinForm, console app and a class library and all have the same issue, no sln. 我刚刚尝试创建了许多其他新项目,即WinForm,控制台应用程序和类库,所有都有相同的问题,没有sln。

Can anyone give me an indication of whats going on? 任何人都可以告诉我发生了什么事吗?

Visual Studio will hide the solution item in Solution Explorer if there's only one project. 如果只有一个项目,Visual Studio将在解决方案资源管理器中隐藏解决方案项。

To change this, go to Tools -> Options -> Projects and Solutions -> General and make sure "Always Show Solution" is checked. 要更改此设置,请转到工具 - >选项 - >项目和解决方案 - >常规,并确保选中“始终显示解决方案”。

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

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