Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by Mike-B · Jan 24, 2017 at 01:44 AM · windows 10windows store appbuilds

Don't manage to build for windows UWP

hi

I am using Unity 5.5 and I am trying to build for UWP with .NET scripting backend a project that runs fine in the editor. When I do a change in code though (like adding a line), and return to Unity, the console throws a whole bunch of errors, the first one being

 Loading script assembly "Library/ScriptAssemblies/Assembly-UnityScript-Editor-firstpass.dll" failed!

and then

 FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

and then dozens of

 TypeLoadException: Could not load type 'LTDescr' from assembly 'Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Why/when do these errors occur since I can run in the editor? How can I find more info about them?

When I press "clear", the errors don't stay in the console and the project runs fine in the editor, so they're not code errors.

Then when I try to build, I get errors about the Hashtable type:

 Reference to type 'Hashtable' claims it is defined in 'mscorlib', but it could not be found.

So I have added WinRTLegacy.dll and set it for UWP SDK and .net. If I write

 #if NETFX_CORE
 using Hashtable = WinRTLegacy.System.Collections.Hashtable;
 #endif

I am told there is no "System" namespace in "WinRTLegacy". If I write

 #if NETFX_CORE
 using Hashtable = WinRTLegacy.Collections.Hashtable;
 #endif

I am told there is no "Collections" namespace in "WinRTLegacy". And if I don't use any #if instruction, I am told the Hashtable exists in both places.

Any help appreciated. Many thanks.

Comment
Add comment · Show 1
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 Jukuon · Aug 15, 2017 at 06:45 AM 0
Share

Hi, did you manage to resolve the Hastable problem?

0 Replies

· Add your reply
  • Sort: 

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

62 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Universal Windows Platform - Huuuuuuuge Build Error 0 Answers

UnityPurchasing is not initializing on UWP 0 Answers

WACK test failed APPCONTAINER 1 Answer

Build Settings for Windows Store - Module Not Available Unity 5.3.2 2 Answers

Vuforia "Could not initialize the tracker" UWP - Microsoft Surface Pro 2 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