I'm having some trouble reading an embedded resource (text file) in windows-8, usually I use Assembly.GetExecutingAssembly()
but I can't seem to do it in this one. I'm referencing the System.Reflection namespace but it says cannot find, thinking it was possibly removed.
Any ideas?
Currently using Windows 8 Consumer Preview
Code:
Assembly readAssembly = Assembly.GetExecutingAssembly();
StreamReader streamReader = new StreamReader(readAssembly.GetManifestResourceStream("Test.txt"));
Error: System.Reflection.Assembly' does not contain a definition for 'GetExecutingAssembly'