Upgrade to .NET Core 3.1
This commit is contained in:
parent
e5c9f5bd9f
commit
edb1f99387
5 changed files with 25 additions and 24 deletions
|
@ -3,9 +3,9 @@ using Microsoft.AspNetCore.Authentication.Cookies;
|
|||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Website.Data;
|
||||
|
||||
namespace Website
|
||||
|
@ -34,7 +34,7 @@ namespace Website
|
|||
|
||||
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie();
|
||||
|
||||
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
|
||||
services.AddMvc(options => options.EnableEndpointRouting = false);
|
||||
}
|
||||
|
||||
private void RegisterRepositories(IServiceCollection services) =>
|
||||
|
@ -44,7 +44,7 @@ namespace Website
|
|||
.AddSingleton(new GitServerApi(new HttpClient(), Configuration["gitDomain"], Configuration["gitToken"]));
|
||||
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
|
||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
{
|
||||
if (env.IsDevelopment() )
|
||||
{
|
||||
|
|
|
@ -1,21 +1,19 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BuildBundlerMinifier" Version="2.9.406" />
|
||||
<PackageReference Include="dapper" Version="1.60.9" />
|
||||
<PackageReference Include="dapper.contrib" Version="1.60.1" />
|
||||
<PackageReference Include="markdig" Version="0.16.0" />
|
||||
<PackageReference Include="BuildBundlerMinifier" Version="3.2.435" />
|
||||
<PackageReference Include="dapper" Version="2.0.30" />
|
||||
<PackageReference Include="dapper.contrib" Version="2.0.30" />
|
||||
<PackageReference Include="markdig" Version="0.18.0" />
|
||||
<PackageReference Include="Markdig.SyntaxHighlighting" Version="1.1.7" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.App" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" />
|
||||
<PackageReference Include="mysqlconnector" Version="0.52.0" />
|
||||
<PackageReference Include="mysqlconnector" Version="0.61.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="BuildCss" BeforeTargets="Build">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue