简体   繁体   English

如果ASP.NET 5项目/解决方案没有SLN文件,如何在Visual Studio 2015 Update 1中打开它?

[英]If an ASP.NET 5 project/solution has no SLN file how do I open it in Visual Studio 2015 Update 1?

As per this question 按照这个问题

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.

相关问题 没有sln文件时使用Visual Studio 2015打开解决方案/项目 - Opening Solution / Project with Visual studio 2015 when there is no sln file 如何在 Visual Studio 2019 中更新 .sln(解决方案)文件 - How to update .sln (solution) file within Visual Studio 2019 如何在与Web项目相同的目录中创建Visual Studio解决方案文件(.sln)? - How do you create a Visual Studio Solution File (.sln) in the same directory as the web project? 我需要在Visual Studio 2015中创建一个ASP.NET项目才能与AngularJS一起使用吗? - Do I need to create an ASP.NET project in Visual Studio 2015 to work with AngularJS? 我应该如何在Visual Studio 2015中部署Asp.Net项目? - How should I deploy Asp.Net project in Visual Studio 2015? 如何将Visual Studio的现有makefile转换回解决方案文件(* .sln)? - How do I convert an existing makefile for Visual Studio back into a solution file (*.sln)? 如何在 Visual Studio 2015 中的一个解决方案中跨多个 ASP.NET CORE 项目共享 appsettings.json 等配置文件? - How can I share config file like appsettings.json across multiple ASP.NET CORE projects in one solution in Visual Studio 2015? 如何在Visual Studio 2022中打开asp.net网站项目? - How to open asp.net website project in Visual studio 2022? 如何在Visual Studio 2010中打开无法识别的.sln文件? - How do I open an unrecognized version .sln file in Visual Studio 2010? 如何使用C#代码在较旧的Visual Studio中打开.sln文件? - How do I open an .sln file in older Visual Studio in C# code?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM