不推荐使用project.json吗? [英] Is project.json deprecated?

查看:132
本文介绍了不推荐使用project.json吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ASP.NET Core 1.0中,project.json是否消失而web.config又回来了?

Is project.json going away and web.config coming back in ASP.NET Core 1.0?

路线图文件,'16 Q4或'17 Q1的更新,他们提到替换.xproj / project.json

In the roadmap document, the update in '16 Q4 or '17 Q1, they mention "replacing .xproj/project.json with .csproj/MSBuild".

是否标记了project.json的结尾?

Does that mark the end of project.json?

推荐答案

更新:自Visual Studio 2017和最新的 dotnet CLI以来,project.json正式死亡。 Visual Studio将自动迁移项目,并且这里有一个比较表: https://docs.microsoft.com/zh-cn/dotnet/articles/core/tools/project-json-to-csproj

Update: As of Visual Studio 2017 and the latest dotnet CLI, project.json is officially dead. Visual Studio will migrate projects automatically, and there is a comparison chart here: https://docs.microsoft.com/en-us/dotnet/articles/core/tools/project-json-to-csproj

project.json确实消失了。作为.NET Core工具未来更新的一部分,.xproj / project.json将合并回.csproj。但是,团队有已声明

project.json is indeed going away. As part of a future update to the .NET Core tooling, .xproj/project.json will be merged back into .csproj. However, the team has stated:


新的MSBuild不会包含每个文件的完整列表,因此应该减少构建文件的大小。它将仍然是XML,但是团队致力于为所有.NET项目提供更好的体验。这将是一个增强的MSBuild,其中包含project.json的所有最佳部分

The new MSBuild will not have a complete list of every file, so that should reduce the size of the build file. It will still be XML, but the team is committed to making that experience better for all .NET projects. This will be an enhanced MSBuild that has all of the best parts of project.json

因此,不推荐使用project.json,但是自动发现源文件之类的一些创新将继续存在。考虑到许多人表达了自己的意见,他们还致力于改善MSBuild体验。

So, project.json will be deprecated, but some of the innovations such as auto-discovery of source files will stick around. They've also committed to improving the MSBuild experience given that many people voiced their opinion about this change.

web.config完全是另一回事。在IIS上托管ASP.NET Core项目> 时使用,否则不需要。

web.config is a different thing entirely. It's used when hosting ASP.NET Core projects on IIS, but otherwise is not required.

这篇关于不推荐使用project.json吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆