diff --git a/src/N-Tier.Application/N-Tier.Application.csproj b/src/N-Tier.Application/N-Tier.Application.csproj index 627893f..2fe5a38 100644 --- a/src/N-Tier.Application/N-Tier.Application.csproj +++ b/src/N-Tier.Application/N-Tier.Application.csproj @@ -1,4 +1,4 @@ - + net6.0 @@ -7,15 +7,22 @@ - - - - - + + + + + - + + + + + + + PreserveNewest + diff --git a/src/N-Tier.Application/Services/Impl/TemplateService.cs b/src/N-Tier.Application/Services/Impl/TemplateService.cs index 49475d5..a103993 100644 --- a/src/N-Tier.Application/Services/Impl/TemplateService.cs +++ b/src/N-Tier.Application/Services/Impl/TemplateService.cs @@ -1,6 +1,4 @@ -using System.Reflection; - -namespace N_Tier.Application.Services.Impl; +namespace N_Tier.Application.Services.Impl; public class TemplateService : ITemplateService { @@ -8,10 +6,7 @@ public class TemplateService : ITemplateService public TemplateService() { - var projectPath = Directory.GetParent(Directory.GetCurrentDirectory()).FullName; - var templateProject = Assembly.GetExecutingAssembly().GetName().Name; - - _templatesPath = Path.Combine(projectPath, templateProject, "Templates"); + _templatesPath = Path.Combine(AppContext.BaseDirectory, "Templates"); } public async Task GetTemplateAsync(string templateName)