Skip to content

Commit

Permalink
Merge pull request #506 from Aybex/development
Browse files Browse the repository at this point in the history
Fixed app published as singleFile not running (issue #483)
  • Loading branch information
pomianowski authored Jan 23, 2023
2 parents af500a9 + be96638 commit 7021685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Wpf.Ui.Demo.Mvvm/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public partial class App
// https://docs.microsoft.com/dotnet/core/extensions/logging
private static readonly IHost _host = Host
.CreateDefaultBuilder()
.ConfigureAppConfiguration(c => { c.SetBasePath(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)); })
.ConfigureAppConfiguration(c => { c.SetBasePath(Path.GetDirectoryName(AppContext.BaseDirectory)); })
.ConfigureServices((context, services) =>
{
// App Host
Expand Down

0 comments on commit 7021685

Please sign in to comment.