This is a follow up to https://github.com/dotnet/maui/pull/21505/files/2d4a1bdabf24a22b8df1e32d4535ebc89f6f7308#r1557824040
In BlazorWebView in WPF and WinForms code, we're using Environment.CurrentDirectory as the app root directory in the case when the location of the entry assembly is not known. This is the case when the app is published as a single file. We should use AppContext.BaseDirectory instead.
|
appRootDir = Environment.CurrentDirectory; |
|
appRootDir = Environment.CurrentDirectory; |
This is a follow up to https://github.com/dotnet/maui/pull/21505/files/2d4a1bdabf24a22b8df1e32d4535ebc89f6f7308#r1557824040
In
BlazorWebViewin WPF and WinForms code, we're usingEnvironment.CurrentDirectoryas the app root directory in the case when the location of the entry assembly is not known. This is the case when the app is published as a single file. We should useAppContext.BaseDirectoryinstead.maui/src/BlazorWebView/src/WindowsForms/BlazorWebView.cs
Line 180 in b183cae
maui/src/BlazorWebView/src/Wpf/BlazorWebView.cs
Line 265 in b183cae