Home > News content

.NET Core 2.0 Preview 2 for developers to improve

via:博客园     time:2017/7/4 17:08:36     readed:754

English Original:.NET Core 2.0 Preview 2 Brings Refinements for Developers

Microsoft released the second preview version of .NET Core 2 (Preview 2), which versionCan be used asMac OS X, Linux and Windows platforms. Preview 2 gives a unified naming pattern for all kinds of packages and installers on all platforms for the first time. All run-time files will be named after dotnet-runtime name, and the SDK will be named with the donet-SDK name. For example, the Windows SDK file will be namedDotnet-sdk-2.0.4-win10-x64.exeThe

Let us know about itRelease versionThe Preview 2's first improvement is a great way to improve the usability of users working with command lines. Now commandDotnet restoreWill be implicitly invoked when using commands such as run, build, and publish. It is not executed before and requires manual executionDotnet restoreThe behavior of this way is more friendly to the developer. This release has also been improved in the area of ​​developer availability. If the developer's build target is .NET Standard 2.0, the .NET Standard NuGet package is no longer needed because the .NET Core SDK already provides the underlying functionality.

Second, the .NET Framework software library can be referenced from a project that uses .NET Standard. Similarly, .NET Core applications and software libraries can rely on the .NET Framework software library. This improvement is intended to facilitate the smooth migration from the .NET Framework to the .NET Standard project and to the code for compiling targets for .NET Framework 4.6.1 and earlier.

In addition, one of the biggest improvements in Preview 2 is the addition of new features that support WCF. In the previous version, a significant problem was the lack of support for message-level security. In this release, support for SOAP-encoded messages, support for customizing proxy addresses for HTTP and HTTPS on Windows, support for service operations to open or close sessions, and some general software bug fixes and improvements. Preview 2 provides a new to VS2017 usersExtended, Known as the Microsoft WCF Web Service Reference Provider, it will simplify working with WCF. The extension "retrieves metadata from the local or network on the WCF service in the current solution and generates a .NET Core-compatible source code file for the WCF client agent, which the user can access the service & rdquo ;.

Microsoft has provided itApply toAll the major platforms of the Core 2 Preview binary installation files, and with the version of & ldquo;Known issues& Rdquo; form on the project's GitHub siteprovideA complete release note. One of the most important issues is the impact of Ubuntu users, that is, must be installed Preview 2 before Preview Preview 1. Visual Studio 2017 will continue to use .NET Core 1.x by default, and the easiest way to use .NET Core 2 in Visual Studio today is to install the 15.3 preview and the .NET Core 2 Preview SDK. For. NET Core 2 and VS 15.3 & ldquo; known issues & rdquo ;, both are independentmaintainof.

China IT News APP

Download China IT News APP

Please rate this news

The average score will be displayed after you score.

Post comment

Do not see clearly? Click for a new code.

User comments