News

Unifying .NET with .NET Standard 2.0

The goal of .NET Standard is for "one library to rule them all," or more simply, one library of APIs that can be used across a number of platforms without much afterthought. The .NET team lets us in on their plans in the near future.

The .NET convergence is getting nearer to a reality, as Microsoft's .NET team publishes its plans for upcoming versions of .NET Standard, a master library of APIs.

".NET Standard solves the code sharing problem for .NET developers across all platforms by bringing all the APIs that you expect and love across the environments that you need: desktop applications, mobile apps & games, and cloud services," writes Microsoft's Immo Landwerth, in a blog post.

Currently, developers targeting one of the .NET variants had to understand how APIs being used in an app would interact with the base class library for the targeted .NET. With .NET Standard, developers won't have to give API compatibility much thought other than which API to use. At least that's the goal. Developers who have developed for Windows Phone 8.0 platforms have already gotten a taste of .NET Standard 1.0, and other versions already exist for differing versions of .NET platforms (.NET Core 1.6, all versions of .NET Framework 4.5 and newer, and Universal Windows Platform 10.0).

Version 2.0 of .NET Standard will be made available when the next versions of .NET Core, .NET Framework, Xamarin.iOS, Xamarin.Android, and UWP are shipped. Landwerth notes that even with 2.0 coming, compatibility issues are still a concern. .NET Standard 2.0 will be compatible with Portable Class Libraries, but he said the team will make a compatibility shim available so .NET Standard-based libraries can be referenced in .NET Framework binaries.

Landwerth suggests that developers start to use .NET Standard rather than PCLs: "The tooling for targeting .NET Standard 2.0 will ship in the same timeframe as the upcoming release of Visual Studio, code-named "Dev 15". You'll reference .NET Standard as a NuGet package. It will have first class support from Visual Studio, VS Code as well as Xamarin Studio."


About the Author

Michael Domingo is a long-time software publishing veteran, having started up and managed several developer publications for the Clipper compiler, Microsoft Access, and Visual Basic. He's also managed IT pubs for 1105 Media, including Microsoft Certified Professional Magazine and Virtualization Review before landing his current gig as Visual Studio Magazine Editor in Chief. Besides his publishing life, he's a professional photographer, whose work can be found by Googling domingophoto.

comments powered by Disqus

Featured

  • IDE Irony: Coding Errors Cause 'Critical' Vulnerability in Visual Studio

    In a larger-than-normal Patch Tuesday, Microsoft warned of a "critical" vulnerability in Visual Studio that should be fixed immediately if automatic patching isn't enabled, ironically caused by coding errors.

  • Building Blazor Applications

    A trio of Blazor experts will conduct a full-day workshop for devs to learn everything about the tech a a March developer conference in Las Vegas keynoted by Microsoft execs and featuring many Microsoft devs.

  • Gradient Boosting Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the gradient boosting regression technique, where the goal is to predict a single numeric value. Compared to existing library implementations of gradient boosting regression, a from-scratch implementation allows much easier customization and integration with other .NET systems.

  • Microsoft Execs to Tackle AI and Cloud in Dev Conference Keynotes

    AI unsurprisingly is all over keynotes that Microsoft execs will helm to kick off the Visual Studio Live! developer conference in Las Vegas, March 10-14, which the company described as "a must-attend event."

  • Copilot Agentic AI Dev Environment Opens Up to All

    Microsoft removed waitlist restrictions for some of its most advanced GenAI tech, Copilot Workspace, recently made available as a technical preview.

Subscribe on YouTube