AliAzin
1
Hi,
I have a strange problem with unity compiler. After weeks of work suddenly it shows this error :
Assets/_script/MainMenu.cs(58,42):
error CS0117: `System.IO.File’ does
not contain a definition for
ReadAllText
I can reimport my project but it takes a lot of time.
Does anyone knows why it shows this error and how should I fix it?
Thanks in advance.
Make sure your build settings are targeting the correct platform. ‘System.IO’ is not fully supported on all platforms to get this you will need to target the standalone Mac or Windows players for your build. Maybe some others support that but I am not sure.
I posted and submitted a bug on the wiki last year. Not sure if this scenario fits what you are doing but we started getting the same junk when we started building bundles.
Hope this helps.