File tree Expand file tree Collapse file tree 5 files changed +17
-7
lines changed
DynamicAuthorization.Mvc.Core
DynamicAuthorization.Mvc.JsonStore
DynamicAuthorization.Mvc.Ui Expand file tree Collapse file tree 5 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFrameworks >netstandard2.0;netcoreapp3.0;netcoreapp3.1</TargetFrameworks >
4+ <TargetFrameworks >netstandard2.0;netcoreapp3.0;netcoreapp3.1;net5.0 </TargetFrameworks >
55 </PropertyGroup >
66
77 <PropertyGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
1212 <DefineConstants >NETCORE3;NETSTANDARD;NETSTANDARD2_1</DefineConstants >
1313 </PropertyGroup >
1414
15+ <PropertyGroup Condition =" '$(TargetFramework)' == 'net5.0'" >
16+ <DefineConstants >NET5;</DefineConstants >
17+ </PropertyGroup >
18+
19+ <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
20+ <PackageReference Include =" Microsoft.AspNetCore.Mvc" Version =" 2.2.0" />
21+ <PackageReference Include =" Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version =" 2.2.0" />
22+ </ItemGroup >
23+
1524 <ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp3.0'" >
1625 <FrameworkReference Include =" Microsoft.AspNetCore.App" />
1726 <PackageReference Include =" Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version =" 3.0.0" />
2231 <PackageReference Include =" Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version =" 3.1.0" />
2332 </ItemGroup >
2433
25- <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2 .0'" >
26- <PackageReference Include =" Microsoft.AspNetCore.Mvc " Version = " 2.2.0 " />
27- <PackageReference Include =" Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version =" 2.2 .0" />
34+ <ItemGroup Condition =" '$(TargetFramework)' == 'net5 .0'" >
35+ <FrameworkReference Include =" Microsoft.AspNetCore.App " />
36+ <PackageReference Include =" Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version =" 5.0 .0" />
2837 </ItemGroup >
2938</Project >
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ select role.Id.ToString()
9292 context . Result = new ForbidResult ( ) ;
9393 }
9494
95- #if NETCORE3
95+ #if NETCORE3 || NET5
9696
9797 private static bool IsProtectedAction ( AuthorizationFilterContext context )
9898 {
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >netstandard2.0</ TargetFramework >
4+ <TargetFrameworks >netstandard2.0;net5.0</ TargetFrameworks >
55 </PropertyGroup >
66
77 <ItemGroup >
Original file line number Diff line number Diff line change 99using System ;
1010using System . Collections . Generic ;
1111using System . ComponentModel ;
12+ using System . Linq ;
1213using System . Threading . Tasks ;
1314
1415namespace DynamicAuthorization . Mvc . Ui . Controllers
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Razor" >
22
33 <PropertyGroup >
4- <TargetFramework >netcoreapp3.1</ TargetFramework >
4+ <TargetFrameworks >netcoreapp3.1;net5.0</ TargetFrameworks >
55 <AddRazorSupportForMvc >true</AddRazorSupportForMvc >
66 <RazorCompileOnBuild >true</RazorCompileOnBuild >
77 </PropertyGroup >
You can’t perform that action at this time.
0 commit comments