feat: Sentry 支持 NETCore 3.0

This commit is contained in:
Argo Zhang 2019-09-29 11:17:00 +08:00
parent b02205c054
commit 42a1c16bbb
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="3.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="Sentry.AspNetCore" Version="2.0.0-beta4" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.0.0-rc3" />
</ItemGroup>

View File

@ -23,6 +23,6 @@ namespace Bootstrap.Admin
/// <returns></returns>
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(builder => builder.UseStartup<Startup>());
.ConfigureWebHostDefaults(builder => builder.UseSentry().UseStartup<Startup>());
}
}