Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 5.3 - XCMod.cs: system.IO.FileInfo' does not contain a definition for `OpenText' ??

Discussion in 'Editor & General Support' started by larku, Dec 16, 2015.

  1. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
    I've just installed Unity 5.3 and now the XCMod.cs script has stopped compiling due to this error:

    Assets/Skillz/Build/XCodeEditor-for-Unity/XCMod.cs(86,59): error CS1061: Type `System.IO.FileInfo' does not contain a definition for `OpenText' and no extension method `OpenText' of type `System.IO.FileInfo' could be found (are you missing a using directive or an assembly reference?)

    Any ideas what could be wrong? (works fine in all previous version of Unity).
     
  2. Yowling-Cat-Games

    Yowling-Cat-Games

    Joined:
    Dec 11, 2014
    Posts:
    37
    Check your compiler settings...Build Settings -> Player Settings -> Publishing Settings -> your .NET settings try
    different 'API Compatibility Level'...

    These types of errors are usually .NET related...(last resort I had to completely uninstall Unity
    and ReInstall)...It's been awhile since tho... ;) may have to update/reinstall .NET...

    Lar
     
    Last edited: Dec 16, 2015
  3. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
    Thanks!

    Ahh seems they've removed these from ".NET 2.0 Subset" - a bit annoying to need to bring in the rest of .NET just to get these bits now :(

    First world problems :)
     
  4. Yowling-Cat-Games

    Yowling-Cat-Games

    Joined:
    Dec 11, 2014
    Posts:
    37
    Your Welcome..price of progress I guess.. ;)

    Lar
     
    Last edited: Dec 16, 2015