Fix tsconfig, Fix Startup.cs Warning
This commit is contained in:
@@ -16,10 +16,8 @@
|
||||
},
|
||||
"include": [
|
||||
"**/*",
|
||||
"node_modules/NativeUI/index.ts", "../ReallifeGamemode.Server/Inventory/Items/Cannabis.cs", "../ReallifeGamemode.Server/Business/BoatDealerBusiness.cs"
|
||||
],
|
||||
"files": [
|
||||
"node_modules/NativeUI/index.ts"
|
||||
"../ReallifeGamemode.Server/Inventory/Items/Cannabis.cs",
|
||||
"../ReallifeGamemode.Server/Business/BoatDealerBusiness.cs"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
|
||||
@@ -79,7 +79,9 @@ namespace ReallifeGamemode.DataService
|
||||
string debugToken = null;
|
||||
|
||||
#if DEBUG
|
||||
#pragma warning disable ASP0000 // Do not call 'IServiceCollection.BuildServiceProvider' in 'ConfigureServices'
|
||||
debugToken = services.BuildServiceProvider().GetService<JwtTokenGenerator>().GetDebugToken(tokenKey);
|
||||
#pragma warning restore ASP0000 // Do not call 'IServiceCollection.BuildServiceProvider' in 'ConfigureServices'
|
||||
#endif
|
||||
|
||||
services.AddSwaggerGen(c =>
|
||||
|
||||
Reference in New Issue
Block a user