add version to prject
parent
0249727d32
commit
4e2aec8e2c
|
@ -6,8 +6,8 @@
|
|||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<InvariantGlobalization>true</InvariantGlobalization>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<AssemblyVersion>0.22.25.45</AssemblyVersion>
|
||||
<FileVersion>0.22.25.45</FileVersion>
|
||||
<AssemblyVersion>0.23.26.46</AssemblyVersion>
|
||||
<FileVersion>0.23.26.46</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -6,9 +6,11 @@ builder.Host.UseSerilog();
|
|||
LoggerConfig.ConfigureSerilog();
|
||||
string env = builder.Environment.IsDevelopment() == true ? "Development" : "Production";
|
||||
builder.Host.UseContentRoot(Directory.GetCurrentDirectory());
|
||||
string projectName = "Vesmeh";
|
||||
if (builder.Environment.IsDevelopment())
|
||||
{
|
||||
string projectName = "Hamyan";
|
||||
builder.Configuration.AddJsonFile($"AppSettings/appsettings.json").AddJsonFile($"AppSettings/appsettings.{env}{projectName}.json");
|
||||
}
|
||||
|
||||
if (builder.Environment.IsProduction())
|
||||
builder.Configuration.AddJsonFile($"AppSettings/Production/appsettings.{env}.json");
|
||||
|
|
Loading…
Reference in New Issue