I am preparing Windows Store App with C# & xaml led by online examples.
Many times when I try to use a keyword like:
"File" in
System.IO.File.WriteAllLines()
or
"Frame" in
this.Frame.Navigate(typeof(MyPage));
I took care of adding appropriate "using required_assembly" I get error like:
The type or namespace name 'File' does not exist in the namespace 'System.IO' (are you missing an assembly reference?)
The steps I took to try resolving errors were:
- I did Rebuild & Clean Build after removing & then re-adding using statements.
- I Unload & then Reload the project from solution explorer.
- Browsed the Object-Browser & yes the assemblies were there.
- Checked the "References" in the Solution Explorer, now this is where the
System.IO
was not present & when I tried to manually add the reference it said that "All of the Framework assemblies are already referenced".
Why is Visual Studio producing these errors?