简体   繁体   中英

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?

I know if I create a ASP.NET 5 project outside of Visual Studio it will not have an SLN file. What is the expected way to open such a Solution in Visual Studio 2015 Update 1? What happens if the solution contains multiple projects?

You open the .xproj-file (same as the csproj predecessor). When that is done, you can use File > Save All to generate a .sln file.

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. After that File > Save All and you also have a .sln-file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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