Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ASP.NET Core updates in .NET 5 Release Candidate 2

#1
ASP.NET Core updates in .NET 5 Release Candidate 2

Daniel Roth

Daniel

.NET 5 Release Candidate 2 (RC2) is now available and is ready for evaluation. .NET 5 RC2 is a “go live” release, meaning it’s supported in production. This prerelease of .NET 5 is very close to what we expect to ship for the .NET 5 release.

Here’s what’s new in this RC2 release:

  • CSS isolation improvements
  • Blazor WebAssembly debugging improvements
  • Browser platform compatibility tooling

ASP.NET Core in .NET 5 contains lots of great new functionality and improvements! The list below summarizes the many improvements we’ve made in ASP.NET Core for .NET 5 that you can try out in this release:

See the .NET 5 release notes for additional details and known issues.

Get started


To get started with ASP.NET Core in .NET 5 RC2, install the .NET 5 SDK. .NET RC2 also is included with Visual Studio 2019 16.8 Preview 4.

Visual Studio 2019 16.8 Preview 4 or later is required to use .NET 5 RC2 from Visual Studio. .NET 5 RC2 is also supported with the latest preview of Visual Studio for Mac. To use .NET 5 with Visual Studio Code, install the latest version of the C# extension.

Upgrade an existing project


To upgrade an existing ASP.NET Core app from .NET 5 RC1 to .NET 5 RC2:

  • Update all Microsoft.AspNetCore.* package references to 5.0.0-rc.2.*.
  • Update all Microsoft.Extensions.* package references to 5.0.0-rc.2.*.
  • Update System.Net.Http.Json package references to 5.0.0-rc.2.*.
  • Update Microsoft.AspNetCore.Components.Web.Extensions package references to 5.0.0-preview9.20513.1.
  • Remove any package references to Microsoft.AspNetCore.Components.ProtectedBrowserStorage
  • Update Microsoft.AspNetCore.Components.ProtectedBrowserStorage namespace to Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage.
  • Remove unnecessary service registrations for ProtectedLocalStorage and ProtectedSessionStorage.
  • Rename JSObjectReference to IJSObjectReference.
  • In Blazor apps, replace CSS references to _framework/scoped.styles.css and _content/{project_name}/_framework/scoped.styles.css with {project_name}.styles.css.

That’s it! You should be all ready to go.

See also the full list of breaking changes in ASP.NET Core for .NET 5.

What’s new?


Blazor CSS isolation improvements


In .NET 5 Preview 8 we introduced support for CSS isolation for Blazor components. Based on user feedback, we’ve made a number of improvements to CSS isolation in this release.

Previously, all component scoped CSS files including files from referenced projects or packages were compiled into a single bundle, scoped.styles.css. We now produce one bundle per referenced project or package and include those bundles into the app bundle through CSS @import statements.

The bundle names are now based on the project names: {project_name}.styles.css. Each bundle can be referenced from the root path of the app by default. This makes the path of the app bundle the same for both Blazor Server and Blazor WebAssembly projects:

<link href="BlazorApp1.styles.css" rel="stylesheet" />

Component specific styles can also now use normal wwwroot-relative paths to refer to related assets, like images. We’ve updated Razor Class Library template to make use of component specific styles following this pattern.

Component1.razor.css

.my-component { border: 2px dashed red; padding: 1em; margin: 1em 0; background-image: url('background.png');
}

We also fixed some issues with how scoped CSS styles get built so that changes are correctly picked up with each build in Visual Studio instead of requiring a full rebuild.

Blazor WebAssembly debugging improvements


.NET 5 includes a variety of improvements to Blazor WebAssembly debugging:

  • Various reliability improvements, including fixing the port conflict issue from RC1
  • Improved support for stepping over and out of async methods
  • Inspect locals or object properties in many previously unsupported situations:
    • For inherited members
    • For multicast delegates
    • For boxed values
    • For Nullable<T> values
    • Within reflection based calls
  • Support for debugging lazy loaded assemblies

Browser platform compatibility tooling


The core framework libraries in .NET 5 have now been annotated to indicate which APIs are supported in browser scenarios. The platform compatibility analyzer uses this data to give appropriate warnings when using APIs from a Blazor WebAssembly app that are not supported when running in a browser on WebAssembly.

Browser compatibility check

Learn more about how you can use the new platform compatibility analyzer to discover cross-platform compatibility issues.

Give feedback


We hope you enjoy this release of ASP.NET Core in .NET 5! We are eager to hear about your experiences with this latest .NET 5 release. Let us know what you think by filing issues on GitHub.

Thanks for trying out ASP.NET Core!



https://www.sickgaming.net/blog/2020/10/...ndidate-2/
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  ASP.NET Core updates in .NET 5 Release Candidate 1 xSicKxBot 0 38 09-16-2020, 06:05 PM
Last Post: xSicKxBot
  ASP.NET Core updates in .NET 5 Preview 8 xSicKxBot 0 52 09-11-2020, 05:43 AM
Last Post: xSicKxBot
  ASP.NET Core Updates in .NET 5 Preview 7 xSicKxBot 0 47 09-10-2020, 03:56 PM
Last Post: xSicKxBot
  Orchard Core Release Candidate 2 now available xSicKxBot 0 54 09-10-2020, 02:35 AM
Last Post: xSicKxBot
  ASP.NET Core updates in .NET 5 Preview 6 xSicKxBot 0 67 09-09-2020, 08:34 PM
Last Post: xSicKxBot
  ASP.NET Core updates in .NET 5 Preview 5 xSicKxBot 0 44 09-08-2020, 09:30 PM
Last Post: xSicKxBot
  ASP.NET Core updates in .NET 5 Preview 8 xSicKxBot 0 53 08-27-2020, 09:44 AM
Last Post: xSicKxBot
  ASP.NET Core Updates in .NET 5 Preview 7 xSicKxBot 0 118 07-22-2020, 05:49 AM
Last Post: xSicKxBot
  ASP.NET Core updates in .NET 5 Preview 6 xSicKxBot 0 129 06-28-2020, 09:35 AM
Last Post: xSicKxBot
  Orchard Core Release Candidate 2 now available xSicKxBot 0 143 06-27-2020, 09:28 AM
Last Post: xSicKxBot

Forum Jump:

Become a Patron!
[-]
Upcoming Events

[-]
Latest Threads
(Indie Deal) PlugInDigital & Kalypso Str...
Last Post: xSicKxBot
Today 05:06 PM
» Replies: 0
» Views: 1
(Free Game Key) Costume Quest 2 & Layers...
Last Post: xSicKxBot
Today 05:05 PM
» Replies: 0
» Views: 1
News - Destiny 2 Hotfix 2.9.2.2
Last Post: xSicKxBot
Today 01:53 PM
» Replies: 0
» Views: 1
News - The Video Game History Foundation...
Last Post: xSicKxBot
Today 01:52 PM
» Replies: 0
» Views: 2
News - French charity steam Z Event rais...
Last Post: xSicKxBot
Today 01:52 PM
» Replies: 0
» Views: 2
News - Borat 2 Review Roundup: Very Nice...
Last Post: xSicKxBot
Today 11:18 AM
» Replies: 0
» Views: 3
Mobile - Win yourself a free copy of sha...
Last Post: xSicKxBot
Today 09:07 AM
» Replies: 0
» Views: 3
[Tut] Top 3 Freelance Developer Contract...
Last Post: xSicKxBot
Today 04:49 AM
» Replies: 0
» Views: 3
(Indie Deal) Alien Cat Bundle, RIDE 4 re...
Last Post: xSicKxBot
Today 04:48 AM
» Replies: 0
» Views: 5
News - Super Smash Bros. Ultimate 9.0.1...
Last Post: xSicKxBot
Today 04:48 AM
» Replies: 0
» Views: 4

[-]
Twitter

[-]
Sponsored
Get the Deal of the Week at RefurBees.com

Copyright © SickGaming.net 2012-2020