Search code examples
windows-8microsoft-metrowindows-runtimeisolatedstorage

Why can't I access IsolatedStorage in the System.IO namespace?


I am Running VisualStudio 2012 RC on Windows 8 Release Preview.

I am logged in to Win8 using my 'live' aka 'outlook' ID.

I created a new Windows Metro Style project. When I try to use System.IO.IsolatedStorage Visual Studio tells me that I am missing a reference. But when I go to references there is nothing to add and it says all references added by default.

Now as far as I can see IsolatedStorage is part of mscorlib.dll so it being 'missing' is unlikely.

What am I missing?

Thanks and Regards, Sumit.


Solution

  • IsolatedStorage is not part of .Net for WinRT. You will have to use Windows.Storage.

    http://msdn.microsoft.com/en-us/library/windows/apps/br230302%28v=vs.110%29.aspx#storage