Intellisense documents GetFile but the compiler can't find it.

Update2: Removing the third parameter of the Directory.GetFiles function allows it to work how I want, but it doesn’t make any sense that part of it exists but part of it half exists. I’d still like to know why this happens.
Update: I tried a different function that is supposed to do the same thing and ran into the same problem, intellisense recognizes that the function exists in the System.IO library, but as soon as I try to run my game the compiler says it doesn’t exist. You can clearly see the documentation for a Directory.GetFiles overload with 3 arguments, followed by Unity’s denial of it.

5524-wat2.png

EDIT: When the function is completely written out there is no error highlight underneath and no compiler errors until I try and run the game.
EDIT2: fileInfo is an array of type FileInfo and I’ve written the calls based off of a functional example.

The problem is exactly what the title says. When I write FileInfo functions intellisense recommends them and provides documentation, but the compiler claims it doesn’t exist.

The documentation for FileInfo from our good friends at MSDN says the functions exist in the System.IO library, which I am have included in the script this error occurs in.

I’d really like to use this function…

alt text

According to the Mono-Compatibility list, the 3-argument GetFiles method is not supported for the “micro” and “webplayer” profiles.

If you create a standalone project and want to use the full power of Mono, use the “2.0” API-profile in your player-settings.

It is a long standing issue that MonoDevelop always compiles against the full “2.0” API profile. Only the compiler inside Unity3D gives you the correct results.