I am looking to open a CSV file from an application package to do some unit testing. So I really would like some analog File.ReadAllText(string path) , which instead is X.ReadAllText(Uri uri) . I could not find it yet.
Does anyone know if it is possible to read text / bytes (do not pay attention to it) from a file in a package without compiling this file to disk?
Oh and btw, File.ReadAllText(@"pack://application:,,,/SpreadSheetEngine/Tests/Example.csv") didn't work for me .. and I'm already doing the trick var app = new Application() to make sure that I have a package running during my unit test.
source share