Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by J0tave · Jul 23, 2014 at 02:24 PM · errorwindows phone 8error-building-playerfmod

Build for Windows Phone 8 problem

Hi Everybody!

resume: This error ocorres when I build for Windows Phone 8 on Unity

Error building Player: Exception: Error: method 'System.String[] System.IO.File::ReadAllLines(System.String)' doesn't exist in target framework. It is referenced from Assembly-CSharp-firstpass.dll at System.Void FMOD_Listener::Initialize().

Error: method 'System.String System.Text.Encoding::GetString(System.Byte[])' doesn't exist in target framework. It is referenced from Assembly-CSharp-firstpass.dll at System.String FMOD.Studio.SOUND_INFO::get_name().

Error: method 'System.String System.Text.Encoding::GetString(System.Byte[])' doesn't exist in target framework. It is referenced from Assembly-CSharp-firstpass.dll at System.String FMOD.Studio.MarshallingHelper::stringFromNativeUtf8(System.IntPtr).


details: I have a trouble when I build my game to Windows Phone 8. I use FMOD to implement the audio in the game. In an classe named FMOD_Listener have a call to System.IO.File.ReadAllLines. The console say than this method don't exist but it work very well in the Android build.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Graham-Dunnett · Jul 23, 2014 at 02:30 PM

a. Visit the docs.
b. Read the first line of the page, which tells you more about the error you get.
c. Visit the linked Microsoft site.
d. Dive into the System.IO namespace.
e. Drill down into the File class.
f. Observe that ReadAllLines doesn't exist on the WP8 version of .Net.
g. Re-write this part of your code to work on WP8 using the classes and functions it has available.
h. Repeat.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image J0tave · Jul 23, 2014 at 07:17 PM 0
Share

That solution works but the F$$anonymous$$OD is very incompatible with winphone 8. Thanks a lot Graham.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Resource compilation failed! Failed to recompile android resource files. See the Console for details. 3 Answers

Unity Cloud Build: [Unity] Error: Cannot create FMOD::Sound instance for resource library/metadata/__/________.resource, (File not found. ) 1 Answer

WSA System.IO.Directory Error Referenced from Assembly-UnityScript at System.Void ScreenshotMovie::Start() 1 Answer

Error: Cannot create FMOD 2 Answers

Error: FMOD failed to initialize 8 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges