diff --git a/src/CSharp/EasyMicroservices.IdentityMicroservice.ConsoleApp/EasyMicroservices.IdentityMicroservice.ConsoleApp.csproj b/src/CSharp/EasyMicroservices.IdentityMicroservice.ConsoleApp/EasyMicroservices.IdentityMicroservice.ConsoleApp.csproj index 3b94e2c..bfa54bc 100644 --- a/src/CSharp/EasyMicroservices.IdentityMicroservice.ConsoleApp/EasyMicroservices.IdentityMicroservice.ConsoleApp.csproj +++ b/src/CSharp/EasyMicroservices.IdentityMicroservice.ConsoleApp/EasyMicroservices.IdentityMicroservice.ConsoleApp.csproj @@ -1,10 +1,21 @@ - + + + + + $(SolutionFileName.Split('-')[1].Replace('.sln','')) + + + + + net6.0;net7.0;net8.0 + + + + Exe - net7.0 enable - enable false diff --git a/src/CSharp/EasyMicroservices.IdentityMicroservice.Database/EasyMicroservices.IdentityMicroservice.Database.csproj b/src/CSharp/EasyMicroservices.IdentityMicroservice.Database/EasyMicroservices.IdentityMicroservice.Database.csproj index b90cf4d..75ff041 100644 --- a/src/CSharp/EasyMicroservices.IdentityMicroservice.Database/EasyMicroservices.IdentityMicroservice.Database.csproj +++ b/src/CSharp/EasyMicroservices.IdentityMicroservice.Database/EasyMicroservices.IdentityMicroservice.Database.csproj @@ -1,8 +1,20 @@  - + + + + + $(SolutionFileName.Split('-')[1].Replace('.sln','')) + + + + + net6.0;net7.0;net8.0 + + + + EasyMicroservices.IdentityMicroservice - net6.0;net7.0;net8.0 enable true diff --git a/src/CSharp/EasyMicroservices.IdentityMicroservice.Domain/EasyMicroservices.IdentityMicroservice.Domain.csproj b/src/CSharp/EasyMicroservices.IdentityMicroservice.Domain/EasyMicroservices.IdentityMicroservice.Domain.csproj index 2ee2356..daf1057 100644 --- a/src/CSharp/EasyMicroservices.IdentityMicroservice.Domain/EasyMicroservices.IdentityMicroservice.Domain.csproj +++ b/src/CSharp/EasyMicroservices.IdentityMicroservice.Domain/EasyMicroservices.IdentityMicroservice.Domain.csproj @@ -1,8 +1,20 @@  - + + + + + $(SolutionFileName.Split('-')[1].Replace('.sln','')) + + + + + net6.0;net7.0;net8.0 + + + + EasyMicroservices.IdentityMicroservice - net6.0;net7.0;net8.0 enable true diff --git a/src/CSharp/EasyMicroservices.IdentityMicroservice.Logics/EasyMicroservices.IdentityMicroservice.Logics.csproj b/src/CSharp/EasyMicroservices.IdentityMicroservice.Logics/EasyMicroservices.IdentityMicroservice.Logics.csproj index e81fde6..422497c 100644 --- a/src/CSharp/EasyMicroservices.IdentityMicroservice.Logics/EasyMicroservices.IdentityMicroservice.Logics.csproj +++ b/src/CSharp/EasyMicroservices.IdentityMicroservice.Logics/EasyMicroservices.IdentityMicroservice.Logics.csproj @@ -1,8 +1,20 @@  - + + + + + $(SolutionFileName.Split('-')[1].Replace('.sln','')) + + + + + net6.0;net7.0;net8.0 + + + + EasyMicroservices.IdentityMicroservice - net6.0;net7.0;net8.0 enable true diff --git a/src/CSharp/EasyMicroservices.IdentityMicroservice.Tests/Fixtures/AuthenticationTestFixture.cs b/src/CSharp/EasyMicroservices.IdentityMicroservice.Tests/Fixtures/AuthenticationTestFixture.cs index aea5420..e6641a9 100644 --- a/src/CSharp/EasyMicroservices.IdentityMicroservice.Tests/Fixtures/AuthenticationTestFixture.cs +++ b/src/CSharp/EasyMicroservices.IdentityMicroservice.Tests/Fixtures/AuthenticationTestFixture.cs @@ -7,6 +7,7 @@ using Identity.GeneratedServices; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace EasyMicroservices.IdentityMicroservice.Tests.Fixtures; @@ -20,8 +21,11 @@ public Task DisposeAsync() public async Task InitializeAsync() { + IConfiguration config = new ConfigurationBuilder() + .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) + .Build(); var app = Program.CreateBuilder(null); - string baseUrl = $"http://localhost:{2007}"; + string baseUrl = config.GetSection("Urls").Get().Replace("*", "localhost"); app.Services.AddSingleton(s => new HttpClient()); app.Services.AddTransient(s => new AuthenticationClient(baseUrl, s.GetService())); app.Services.AddMvc().AddApplicationPart(typeof(AuthenticationController).Assembly); diff --git a/src/CSharp/EasyMicroservices.IdentityMicroservice.WebApi/EasyMicroservices.IdentityMicroservice.WebApi.csproj b/src/CSharp/EasyMicroservices.IdentityMicroservice.WebApi/EasyMicroservices.IdentityMicroservice.WebApi.csproj index 20876f6..58827d9 100644 --- a/src/CSharp/EasyMicroservices.IdentityMicroservice.WebApi/EasyMicroservices.IdentityMicroservice.WebApi.csproj +++ b/src/CSharp/EasyMicroservices.IdentityMicroservice.WebApi/EasyMicroservices.IdentityMicroservice.WebApi.csproj @@ -1,7 +1,19 @@  - + + + + + $(SolutionFileName.Split('-')[1].Replace('.sln','')) + + + + + net6.0;net7.0;net8.0 + + + + - net6.0;net7.0;net8.0 enable true @@ -18,16 +30,37 @@ + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + +