UPDATED TO .net5 Tests ok so far, had to edit a package file just click on it and add a ) if necessary
This commit is contained in:
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -11,7 +11,7 @@
|
|||||||
"preLaunchTask": "build",
|
"preLaunchTask": "build",
|
||||||
// If you have changed target frameworks, make sure to update the program path.
|
// If you have changed target frameworks, make sure to update the program path.
|
||||||
//#### THIS MEANS YOU JOHNNY! If the debugger fails this is the issue
|
//#### THIS MEANS YOU JOHNNY! If the debugger fails this is the issue
|
||||||
"program": "${workspaceFolder}/server/AyaNova/bin/Debug/netcoreapp3.1/AyaNova.dll",
|
"program": "${workspaceFolder}/server/AyaNova/bin/Debug/net5.0/AyaNova.dll",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}/server/AyaNova",
|
"cwd": "${workspaceFolder}/server/AyaNova",
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
|
|||||||
@@ -6,6 +6,16 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.net5 migration:
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <PackageReference Include="Microsoft.Extensions.ApiDescription.Server" Version="5.0.0-rc.1.*">
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Created
|
Created
|
||||||
await NotifyEventProcessor.HandlePotentialNotificationEvent(AyaEvent.Created, newObject);
|
await NotifyEventProcessor.HandlePotentialNotificationEvent(AyaEvent.Created, newObject);
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GenerateFullPaths>true</GenerateFullPaths>
|
<GenerateFullPaths>true</GenerateFullPaths>
|
||||||
@@ -20,28 +20,28 @@
|
|||||||
<PackageReference Include="Enums.NET" Version="3.0.3" />
|
<PackageReference Include="Enums.NET" Version="3.0.3" />
|
||||||
<PackageReference Include="jose-jwt" Version="2.5.0" />
|
<PackageReference Include="jose-jwt" Version="2.5.0" />
|
||||||
<PackageReference Include="MailKit" Version="2.9.0" />
|
<PackageReference Include="MailKit" Version="2.9.0" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.8" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="5.0.0-rc.1.*" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.8" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.0-rc.1.*" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="4.1.1" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="4.1.1" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="4.1.1" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="4.1.1" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.8" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.0-rc.1.*" />
|
||||||
<PackageReference Include="Microsoft.Extensions.ApiDescription.Server" Version="3.1.8">
|
<PackageReference Include="Microsoft.Extensions.ApiDescription.Server" Version="5.0.0-rc.1.*">
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="3.1.8" />
|
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="5.0.0-rc.1.*" />
|
||||||
<PackageReference Include="Microsoft.OpenApi" Version="1.2.3" />
|
<PackageReference Include="Microsoft.OpenApi" Version="1.2.3" />
|
||||||
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.2.1" />
|
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.2.1" />
|
||||||
<PackageReference Include="MiniProfiler.EntityFrameworkCore" Version="4.2.1" />
|
<PackageReference Include="MiniProfiler.EntityFrameworkCore" Version="4.2.1" />
|
||||||
<PackageReference Include="NLog" Version="4.7.4" />
|
<PackageReference Include="NLog" Version="4.7.4" />
|
||||||
<PackageReference Include="NLog.Web.AspNetCore" Version="4.9.3" />
|
<PackageReference Include="NLog.Web.AspNetCore" Version="4.9.3" />
|
||||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="3.1.4" />
|
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.0-rc.1.*" />
|
||||||
<PackageReference Include="PuppeteerSharp" Version="2.0.4" />
|
<PackageReference Include="PuppeteerSharp" Version="2.0.4" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.1" />
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.6.1" />
|
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.6.3" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore.Swagger" Version="5.6.1" />
|
<PackageReference Include="Swashbuckle.AspNetCore.Swagger" Version="5.6.3" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="5.6.1" />
|
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="5.6.3" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUi" Version="5.6.1" />
|
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUi" Version="5.6.3" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ namespace AyaNova.Api.ControllerHelpers
|
|||||||
var hasMediaTypeHeader = MediaTypeHeaderValue.TryParse(section.ContentType, out mediaType);
|
var hasMediaTypeHeader = MediaTypeHeaderValue.TryParse(section.ContentType, out mediaType);
|
||||||
// UTF-7 is insecure and should not be honored. UTF-8 will succeed in
|
// UTF-7 is insecure and should not be honored. UTF-8 will succeed in
|
||||||
// most cases.
|
// most cases.
|
||||||
if (!hasMediaTypeHeader || Encoding.UTF7.Equals(mediaType.Encoding))
|
if (!hasMediaTypeHeader || Encoding.UTF8.Equals(mediaType.Encoding))
|
||||||
{
|
{
|
||||||
return Encoding.UTF8;
|
return Encoding.UTF8;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user