Visual Studio for ASP.NET 5项目是否需要.sln文件?可以使用Global.json吗? [英] Is .sln file required by Visual Studio for ASP.NET 5 project? Can it just use Global.json?
问题描述
在ASP.NET 5项目中,Visual Studio创建一个SLN
文件.还有一个global.json
文件,据我了解是核心解决方案文件.
In a ASP.NET 5 project Visual Studio creates a SLN
file. There is also a global.json
file which my understanding was the core solution file.
SLN
文件是否仅用于VS支持?您可以在不使用SLN
文件的情况下在VS中打开解决方案吗?
Is SLN
file just for VS support? Can you open a solution in VS without using SLN
file?
我认为非VS工具会忽略SLN
文件,因为它是基于文件夹的?
I assume non VS tooling ignores the SLN
file as it is folder based?
推荐答案
据我所知,SLN
是100%的Visual Studio Tooling概念.
As far as I'm aware, the SLN
is a 100% Visual Studio Tooling concept.
您仍然可以创建应用程序,无需该文件即可运行/编译/发布它们.这就是Visual Studio Code的工作方式,也是您在Sublime/Atom或任何其他编辑器中的工作方式.
You can still create applications, run/compile/publish them without this file. That's how Visual Studio Code does it and that's how you would do it in Sublime/Atom or any other editors.
更新:
我已经阅读了有关Visual Studio可以打开global.json
和project.json
文件而没有它们各自的sln/xproj文件的报告.
I've read reports that Visual Studio can open global.json
and project.json
file without their respective sln/xproj file present.
这篇关于Visual Studio for ASP.NET 5项目是否需要.sln文件?可以使用Global.json吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!