Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
4.3.4 fix #51
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverdimond committed Nov 7, 2022
1 parent ce4b6f9 commit 952828f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion SilverAudioPlayer.Avalonia/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,14 @@ public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
var confdir = Path.Combine(AppContext.BaseDirectory, "Configs");
if (!Directory.Exists(confdir))
{
Directory.CreateDirectory(confdir);
}
var configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile(Path.Combine(AppContext.BaseDirectory, "Configs", "appsettings.json"), true)
.AddJsonFile(Path.Combine(confdir, "appsettings.json"), true)
.Build();
var logger = new LoggerConfiguration()
.ReadFrom.Configuration(configuration)
Expand Down
2 changes: 1 addition & 1 deletion SilverAudioPlayer.targets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>4.3.3</VersionPrefix>
<VersionPrefix>4.3.4</VersionPrefix>
<Optimize>True</Optimize>
<DebugType>Portable</DebugType>
</PropertyGroup>
Expand Down

0 comments on commit 952828f

Please sign in to comment.