Migration guide:
MODIFY
WalletWasabi.Backend/Startup.cs
WalletWasabi.Backend/Startup.cs
@@ -7,7 +7,6 @@ using Microsoft.Extensions.Logging;
using NBitcoin;
using Swashbuckle.AspNetCore.Swagger;
using System;
-using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using WalletWasabi.Backend.Middlewares;
@@ -63,7 +62,7 @@ namespace WalletWasabi.Backend
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
#pragma warning disable IDE0060 // Remove unused parameter
- public void Configure(IApplicationBuilder app, IHostingEnvironment env, Global global)
+ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, Global global)
#pragma warning restore IDE0060 // Remove unused parameter
{
app.UseStaticFiles();
@@ -81,7 +80,9 @@ namespace WalletWasabi.Backend
app.UseResponseCompression();
- app.UseMvc();
+ app.UseRouting();
+
+ app.UseAuthorization();
var applicationLifetime = app.ApplicationServices.GetRequiredService<IApplicationLifetime>();
applicationLifetime.ApplicationStopping.Register(() => OnShutdown(global)); // Don't register async, that won't hold up the shutdown

MODIFY
WalletWasabi.Backend/WalletWasabi.Backend.csproj
WalletWasabi.Backend/WalletWasabi.Backend.csproj
<PropertyGroup>
<PlatformTarget>x64</PlatformTarget>
- <TargetFramework>netcoreapp2.2</TargetFramework>
+ <TargetFramework>netcoreapp3.0</TargetFramework>
<LangVersion>latest</LangVersion>
<NoWarn>1701;1702;1705;1591;1573;CA1031</NoWarn>
<Version>3.0</Version>
</ItemGroup>
<ItemGroup>
- <PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" />
</ItemGroup>

MODIFY
WalletWasabi.Gui/WalletWasabi.Gui.csproj
WalletWasabi.Gui/WalletWasabi.Gui.csproj
<PropertyGroup>
<PlatformTarget>x64</PlatformTarget>
<OutputType>Exe</OutputType>
- <TargetFramework>netcoreapp2.2</TargetFramework>
+ <TargetFramework>netcoreapp3.0</TargetFramework>
<LangVersion>latest</LangVersion>
<NoWarn>1701;1702;1705;1591;1573;CA1031</NoWarn>
</PropertyGroup>

MODIFY
WalletWasabi.Tests/WalletWasabi.Tests.csproj
WalletWasabi.Tests/WalletWasabi.Tests.csproj
<PropertyGroup>
<PlatformTarget>x64</PlatformTarget>
- <TargetFramework>netcoreapp2.2</TargetFramework>
+ <TargetFramework>netcoreapp3.0</TargetFramework>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
<NoWarn>1701;1702;1705;1591;CA1031</NoWarn>
<ItemGroup>
<PackageReference Include="AltCover" Version="6.2.719" />
- <PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">

MODIFY
WalletWasabi/WalletWasabi.csproj
WalletWasabi/WalletWasabi.csproj
<PropertyGroup>
<PlatformTarget>x64</PlatformTarget>
- <TargetFramework>netcoreapp2.2</TargetFramework>
+ <TargetFramework>netcoreapp3.0</TargetFramework>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
<LangVersion>latest</LangVersion>
<NoWarn>1701;1702;1705;1591;1573;CA1031</NoWarn>

Migration guide: https://docs.microsoft.com/en-us/aspnet/core/migration/22-to-30?view=aspnetcore-3.0&tabs=visual-studio#startup-changes