From 72a9539c2cdff935512218567aeb4bd92528d352 Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 2 Mar 2020 22:03:20 +0100 Subject: [PATCH] Fix tsconfig, Fix Startup.cs Warning --- ReallifeGamemode.Client/tsconfig.json | 8 +++----- ReallifeGamemode.DataService/Startup.cs | 2 ++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ReallifeGamemode.Client/tsconfig.json b/ReallifeGamemode.Client/tsconfig.json index cb1c3ab0..da32fe78 100644 --- a/ReallifeGamemode.Client/tsconfig.json +++ b/ReallifeGamemode.Client/tsconfig.json @@ -16,12 +16,10 @@ }, "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" ] -} +} \ No newline at end of file diff --git a/ReallifeGamemode.DataService/Startup.cs b/ReallifeGamemode.DataService/Startup.cs index ce5d120e..27b9ffba 100644 --- a/ReallifeGamemode.DataService/Startup.cs +++ b/ReallifeGamemode.DataService/Startup.cs @@ -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().GetDebugToken(tokenKey); +#pragma warning restore ASP0000 // Do not call 'IServiceCollection.BuildServiceProvider' in 'ConfigureServices' #endif services.AddSwaggerGen(c =>