diff --git a/PictureFixer/Client/PictureFixer.Client.csproj b/PictureFixer/Client/PictureFixer.Client.csproj index f6fc30f..7b2d8e8 100644 --- a/PictureFixer/Client/PictureFixer.Client.csproj +++ b/PictureFixer/Client/PictureFixer.Client.csproj @@ -8,15 +8,18 @@ - + + All + All + Primary + @(JavaScriptModules->'%(Identity)')) + - - - + + + diff --git a/PictureFixer/Server/PictureFixer.Server.csproj b/PictureFixer/Server/PictureFixer.Server.csproj index e8a7e13..9a9081e 100644 --- a/PictureFixer/Server/PictureFixer.Server.csproj +++ b/PictureFixer/Server/PictureFixer.Server.csproj @@ -5,12 +5,12 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + diff --git a/PictureFixer/Server/Startup.cs b/PictureFixer/Server/Startup.cs index 3e32b96..3012ffe 100644 --- a/PictureFixer/Server/Startup.cs +++ b/PictureFixer/Server/Startup.cs @@ -39,7 +39,9 @@ public void ConfigureServices(IServiceCollection services) { var server = serviceProvider.GetRequiredService(); var addressFeature = server.Features.Get(); - return new HttpClient { BaseAddress = new Uri(addressFeature.Addresses.First()) }; + var client = new HttpClient { BaseAddress = new Uri(addressFeature.Addresses.First()) }; + client.DefaultRequestHeaders.Add("User-Agent", "PictureFixer/1.0"); + return client; }); } diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..752242d --- /dev/null +++ b/nuget.config @@ -0,0 +1,6 @@ + + + + + +