File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ private void StartWebViewCoreIfPossible()
177
177
}
178
178
else
179
179
{
180
- appRootDir = Environment . CurrentDirectory ;
180
+ appRootDir = AppContext . BaseDirectory ;
181
181
}
182
182
var hostPageFullPath = Path . GetFullPath ( Path . Combine ( appRootDir , HostPage ! ) ) ; // HostPage is nonnull because RequiredStartupPropertiesSet is checked above
183
183
var contentRootDirFullPath = Path . GetDirectoryName ( hostPageFullPath ) ! ;
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ private void StartWebViewCoreIfPossible()
262
262
}
263
263
else
264
264
{
265
- appRootDir = Environment . CurrentDirectory ;
265
+ appRootDir = AppContext . BaseDirectory ;
266
266
}
267
267
var hostPageFullPath = Path . GetFullPath ( Path . Combine ( appRootDir , HostPage ) ) ;
268
268
var contentRootDirFullPath = Path . GetDirectoryName ( hostPageFullPath ) ! ;
You can’t perform that action at this time.
0 commit comments