肝心のtext3をどのように得ているのかが書かれていないので推測ですが、System.Environment.CurrentDirectory
かSystem.IO.Directory.GetCurrentDirectory
をプログラムが配置されている場所として使用していませんか?
MSIXでパッケージした既存アプリは、カレントディレクトリの初期値がシステムディレクトリになるので、これを使うと想定されていない場所になります。
また、CurrentDirectoryは System.IO.Directory.SetCurrentDirectoryなどで変更されるので、固定された場所とはなりません。
WindowsFormsを使っているなら、System.Windows.Forms.Application.StartupPathを使えばよいです。
Console.WriteLine($"System.Environment.CurrentDirectory = {System.Environment.CurrentDirectory}");
Console.WriteLine($"System.IO.Directory.GetCurrentDirectory = {System.IO.Directory.GetCurrentDirectory()}");
Console.WriteLine($"System.Windows.Forms.Application.StartupPath = {System.Windows.Forms.Application.StartupPath}");
Console.WriteLine($"typeof(Program).Assembly.Location = {System.IO.Path.GetDirectoryName(typeof(Program).Assembly.Location)}");
Console.WriteLine($"System.Reflection.Assembly.GetExecutingAssemblye().Location = {System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)}");
Console.WriteLine($"System.Reflection.Assembly.GetEntryAssembly().Location = {System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location)}");