问题描述:

I'm working on moving my XNA game to MonoGame. I have finally reached an issue with System.IO.FileMode and System.IO.FileAccess. Both of these are in both mscorlib and monogame.framework. I have tried the following and none of them work. I'm using VS 2015 if that matters.

global::System.IO.FileMode.Open // still gives the same error

using io = gloabal::System.IO;

io.FileMode.Open // still gives teh same error.

Any one know a work around for this issue with monogame?

网友答案:

I had the same issue, my mistake came from a bad reference of MonoGame.Framework.dll. I was using the one in Windows8 folder, instead of the one located in the Windows folder (which does not contains any System.IO reference).

相关阅读:
Top