We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bb9855 commit 315059fCopy full SHA for 315059f
src/common/FilePreviewCommon/MonacoHelper.cs
@@ -38,7 +38,11 @@ private static string GetRuntimeMonacoDirectory()
38
{
39
string baseDirectory = AppContext.BaseDirectory ?? string.Empty;
40
41
+ // AppContext.BaseDirectory returns a stray \\ so we want to remove that.
42
+ baseDirectory = Path.TrimEndingDirectorySeparator(baseDirectory);
43
+
44
// If the executable is within "WinUI3Apps", correct the path first.
45
+ // The idea of GetFileName here is getting the last directory in the path.
46
if (Path.GetFileName(baseDirectory) == "WinUI3Apps")
47
48
baseDirectory = Path.Combine(baseDirectory, "..");
0 commit comments