dotnet – Devstyler.io https://devstyler.io News for developers from tech to lifestyle Wed, 10 Nov 2021 16:34:26 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 Microsoft Announces .NET 6 and Visual Studio 2022 https://devstyler.io/blog/2021/11/10/microsoft-announces-net-6-and-visual-studio-2022/ Wed, 10 Nov 2021 16:34:26 +0000 https://devstyler.io/?p=74489 ...]]> After over a year’s worth of effort by their .NET team and community, Microsoft announced two major long awaited releases – NET 6 and Visual Studio 2022. 

C# 10 and F# 6 will be used to deliver language improvements that make writing code simpler and better. .NET 6 natively supports Apple Silicon (Arm64) and has also been improved for Windows Arm64. Cloud diagnostics have also been improved with dotnet monitor and OpenTelemetry. Microsoft highly recommends developers start to migrate their apps to this new version.

.NET 6 can be downloaded for Linux, macOS, and Windows.

What are the new features ot .NET 6?

Beginning with Hot Reload. It allows code changes to be viewed without needing to restart the app. Other new features are the OpenTelemetry and dotnet monitor support. Improvements to Visual Basic in the Visual Studio experience and Windows Form project experience have also been made. New features also include the ability to render Blazor components from JavaScript,WebAssembly AOT compilation for Blazor WebAssembly apps.HTTP/3 support Support for symbolic links in File IO, support for OpenSSL, the ChaCha20Poly1305 encryption scheme, and runtime defense-in-depth mitigations, as well as source generators and analyzers are also novelties. 

Support

.NET 6 is supported in Visual Studio 2022 Visual Studio 2022 for Mac. .NET 6 delivers a platform for browsers, cloud, desktops, IoT, and mobile apps. The platform has been updated to serve the needs of all app types and to facilitate the process of re-using code across apps. New capabilities and improvements are available to all apps, so that the code running in the cloud or on a mobile device behaves the same way and has the same benefits.

Visual Studio 2022

Microsoft claim the two main themes of Visual Studio 2022 are developer productivity and quality-of-life improvements. It includes IntelliCode, an AI-assisted tool that completes whole lines of code and spots repeated edits and suggest similar fixes throughout the codebase.

Visual Studio 2022 also includes Hot Reload, Web Live Preview, and cross-platform testing on Linux.

]]>
What’s New In Microsoft NET 6 https://devstyler.io/blog/2021/07/05/what-s-new-in-microsoft-net-6/ Mon, 05 Jul 2021 12:48:28 +0000 https://devstyler.io/?p=57785 ...]]> Microsoft has published the fifth preview of .NET 6, the next generation of the company’s software development platform that will finish the parts of the .NET unification begun in .NET 5. An updated SDK workloads capability is highlighted in the latest preview, for supporting new application types.

Due as a production release in November, .NET 6 is set to deliver improvements for cloud, desktop, and mobile apps. Preview 2 was published March 11, following the initial preview that arrived February 17. Monthly previews are planned between now and the production release, which will be supported for three years. Each preview will deliver on .NET 6 themes, epics, and user stories for developing server/cloud, desktop, IoT, and mobile applications.

Microsoft .NET 6 will integrate capabilities for Android, iOS, and MacOS that currently reside in the Xamarin open source mobile .NET platform. Microsoft also is extending the Blazor client web app development tool, so developers can build a hybrid client app that combines web and native UIs for desktop and mobile usage. Blazor WebAssembly was the first unified platform deliverable in .NET 5. Published in November 2020, .NET 5 marked the beginning of unification and laid the groundwork for Xamarin developers to use the unified .NET platform when .NET 6.0 arrived.

The .NET unification creates one .NET from the separate .NET Core, .NET Framework, and Xamarin/Mono technologies. Parts of .NET Framework already had moved to .NET Core; .NET 5 began the journey of combining .NET Core and Mono/Xamarin on a base class library and toolchain.

Unveiled June 17, Preview 5 can be downloaded from dotnet.microsoft.com. It is considered by Microsoft to be perhaps the biggest preview yet in terms of breadth and quantity of features. Capabilities highlighted in a bulletin on the release include:

  • SDK workloads, part of the .NET unification vision, supports additional application types such as mobile and WebAssembly without increasing the size of the SDK. The feature has been updated to include list and update verbs, with the dotnetworkload list capability telling a developer which workloads have been installed and the dotnet workload update feature used to update all installed workloads to the newest available version. Serving as a package manager, SDK workloads was introduced in Preview 4.
  • Package validation tools enable NuGet library developers to validate that packages are consistent and well-formed.
  • More analyzers for the Roslyn compiler platform.
  • For the SDK, custom guards are enabled for the Platform Compatibility analyzer.
  • For Windows Forms, a default font can be set for an application.
  • Extensions APIs have been improved, with a focus on hosting and dependency injection.
  • WebSocket compression for libraries reduces the amount of data transmitted over a network.
    Support for older frameworks is being dropped, including frameworks older than .NET Framework 4.6.1, .NET Core 3.1, and .NET Standard 2.0.
  • A source generator is being introduced in .NET 6 as part of text.json to reduce startup time, improve throughput, and reduce private memory usage.
  • For Objective-C interop, a new .NET API enables a single experience across runtimes.
  • OpenTelemetry Metrics API support has been added. OpenTelemetry, which has been supported in recent .NET versions, promotes observability.
  • OpenSSL 3 support has been added for cryptography on Linux.
]]>