Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of .NET Core Tools shifting to MSBuild Project format

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you. NET Core Tools to use the MSBuild project format of the sample analysis, the content is concise and easy to understand, can definitely brighten your eyes, through the detailed introduction of this article, I hope you can get something.

Microsoft previously created a project system based on project.json format in order to enable .NET Core and ASP.NET Core to support development platforms other than Windows Visual Studio. Unfortunately, this format is not compatible with the previous .csproj / MSBuild. Rich Lander from Microsoft recently announced that. NET Core Tools will migrate to MSBuild format in the latest alpha version.

However, today's .NET Core developers are already using the project.json format, and for these old projects, Microsoft provides a migration tool (by calling the dotnet migrate command) that converts project.json to MSBuild format.

The modified format has many benefits:

Projects can now reference each other-existing .NET standard projects (.NET Framework, Xamarin, or UWP) and .NET Core can reference each other

Project references and NuGet references use the same csproj format-package references added through NuGet appear in the csproj file

Csproj files can be modified while the project is open-Microsoft may not think that manual changes to csproj files often happen, but it is possible to modify csproj files through IntelliSense support in Visual Studio

When you open a project.json project in VS2017RC (or earlier), a confirmation dialog box pops up to convert the project one-way to a .csproj project. Note that the conversion is one-way, so make sure that the backup has been made before confirming. Developers who use the .NET Core CLI Tools will also be notified to migrate to MSBuild. Lander said that this time the release is an alpha version, because it really cannot be released as an official version. You can now download the various platform versions of these tools (Windows, macOS, and Linux).

The above is a sample analysis of the shift of .NET Core Tools to MSBuild project format. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report