[英]If an ASP.NET 5 project/solution has no SLN file how do I open it in Visual Studio 2015 Update 1?
I have established that ASP.NET 5 doesn't require an SLN file but VS may require it to allow opening? 我已经确定ASP.NET 5不需要SLN文件,但VS可能要求它允许打开?
I know if I create a ASP.NET 5 project outside of Visual Studio it will not have an SLN file. 我知道如果我在Visual Studio之外创建一个ASP.NET 5项目,它将没有SLN文件。 What is the expected way to open such a Solution in Visual Studio 2015 Update 1?
在Visual Studio 2015 Update 1中打开此类解决方案的预期方法是什么? What happens if the solution contains multiple projects?
如果解决方案包含多个项目会发生什么?
You open the .xproj-file (same as the csproj predecessor). 您打开.xproj文件(与csproj前身相同)。 When that is done, you can use
File > Save All
to generate a .sln file. 完成后,您可以使用
File > Save All
来生成.sln文件。
If there is no xproj present for the project, as it is not required by asp.net 5. Then you can create a new project in Visual Studio with the desired name and then simply drop your files in the Solution Explorer. 如果项目没有xproj,因为asp.net 5不需要它。然后,您可以在Visual Studio中使用所需名称创建一个新项目,然后只需将文件放入解决方案资源管理器中。 After that
File > Save All
and you also have a .sln-file. 在该
File > Save All
之后,您还有一个.sln文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.