Dmitry Tabakerov
Dmitry Tabakerov

Reputation: 441

No "Directory" or "File" in System.IO

I've just started to use new VS2012 and Windows 8 and create C# Metro-style project. I want to get list of files in directory, but string "Directory.GetFiles(path)" invoke an error saying it doesn't exist in current context. But I use System.IO. The only useful thing I have in System.IO is "Path" - no "Directory" or "File" there. Where is the problem?

Upvotes: 3

Views: 1913

Answers (1)

SLaks
SLaks

Reputation: 887451

Windows 8 Metro-Style apps do not support the filesystem.

Instead, use the new Metro APIs.

Upvotes: 5

Related Questions