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

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

问题描述

project.json 会消失而 web.config 会在 ASP.NET Core 1.0 中恢复吗?

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

路线图文档中,'16Q4 或 '17 Q1,他们提到用 .csproj/MSBuild 替换 .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/en-us/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 项目时使用它在 IIS 上,否则是不需要.

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天全站免登陆