Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (33 sloc) 1.41 KB

4.x.x to 5.x.x

There are 3 main differences between ExtCore 4.x.x and 5.x.x.

.NET Core 3.0 applications can’t run on top of the full .NET Framework.

Razor runtime compilation is now (starting from .NET Core 3.0) turned off by default. So far (5.0.0), ExtCore does not support Razor runtime compilation at all, so views and pages added as resources won’t be resolved anymore.

To make them work you have to convert all the projects containing Razor files to Razor class libraries.

4.x.x:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.2</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <EmbeddedResource Include="Views\**;Images\**" />
  </ItemGroup>

  ...

</Project>

5.x.x:

<Project Sdk="Microsoft.NET.Sdk.Razor">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <AddRazorSupportForMvc>true</AddRazorSupportForMvc>
  </PropertyGroup>

  <ItemGroup>
    <EmbeddedResource Include="Images\**" />
  </ItemGroup>

  ...

</Project>

Routes are replaced with endpoints, so ExtCore.Mvc.Infrastructure.Actions.IUseMvcAction is replaced with ExtCore.Mvc.Infrastructure.Actions.IUseEndpointsAction.

You can’t perform that action at this time.