Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 Defcon44 · Jul 07, 2015 at 04:05 PM · build-errorerror-building-player

Error building Player because scripts had compiler errors

Hello,

I use Unity 5.0.2 and i have a probleme when i want build my game (standalone) :

Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.

at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)

at System.Reflection.Assembly.GetTypes () [0x00000] in :0

at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in :0

at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in :0

at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in :0

at Mono.CSharp.Driver.LoadReferences () [0x00000] in :0

at Mono.CSharp.Driver.Compile () [0x00000] in :0

at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in :0

I have made :

Api = .Net 2.0

How i can fix this probleme ?

Thank you

Comment
Add comment · Show 13
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 Defcon44 · Jul 07, 2015 at 05:24 PM 0
Share

I have already deleted the library forlder. (last weeks for another probleme).

Where i can find the temp & bin folders ?

avatar image Defcon44 · Jul 08, 2015 at 01:55 PM 0
Share

Anyone ? ... please

avatar image Hellium · Jul 08, 2015 at 01:59 PM 0
Share

Why do you need .NET 2.0 as Api compatibility level ?

avatar image NinjaISV · Jul 08, 2015 at 03:42 PM 0
Share

It looks like you're using an imported DLL. Is that the case?

avatar image Defcon44 · Jul 08, 2015 at 05:00 PM 0
Share

Why do you need .NET 2.0 as Api compatibility level ?

I don't know, this .Net 2.0 or .Net 2.0 Subset, Net 2.0 is by default (for me)

What do you mean by imported DLL ?

This is DLL of plugin or asset ?

Show more comments

2 Replies

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

Answer by NinjaISV · Jul 09, 2015 at 04:17 PM

I believe the you're using a dll that is incompatible with .Net 2.0. I also did this once when I was trying to use System.Windows.Forums, but I was accidentally using a dll that was for .Net 4.0. You'll have to either remove that dll or get one that is compatible with your .Net version. (Unity only supports 2.0 at this time.)

Comment
Add comment · Show 33 · 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 Defcon44 · Jul 09, 2015 at 05:59 PM 0
Share

Thanks for you'r help, how i can know if the dll use .Net 4.0 or 4.5 ?

avatar image NinjaISV · Jul 09, 2015 at 06:54 PM 0
Share

Right click on the dll and open the properties menu. (Not in Unity.) Go to the details tab and look at the "product Version" label. The first two digits should be 2 and 0 (The rest of the digits don't matter. At least as far as I know.) anything higher is not compatible with .Net 2.0.

Also, I'm not sure, but I may have found one compatible with .Net 2.0. Let me know if it works. Paste this in a folder explorers' address bar: "C:\Windows\$$anonymous$$icrosoft.NET\Framework\v2.0.50727" Then copy the file: "mscorlib.dll" into your "Plugins" folder in Unity.

avatar image Defcon44 · Jul 09, 2015 at 09:10 PM 0
Share

I have check all the DLL of my project and i have found one DLL with version product "6.3".

This is "D3DCompiler-47_x86" (and x64)

I have make what you ask me (with mscorlib.dll) and that doesn't work :(

I have test to move the D3DCompiler.dll (x86 & x64) out of the project but i can't always build.

avatar image NinjaISV · Jul 09, 2015 at 09:44 PM 0
Share

Okay, that dll is the problem. You'll have to find a way to work around the one that is 6.3. Also, sorry about that dll I gave you, I wasn't sure if it would work or not, I just thought it was worth a shot.

avatar image Defcon44 · Jul 09, 2015 at 11:05 PM 0
Share

Yes but if i delete or move this dll the probleme is still here :(

Show more comments
avatar image
0

Answer by MarxentAnthony · Jul 07, 2015 at 10:16 PM

Are you building to Mac or IOS? Because there is not support for Reflections on those platforms

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 Defcon44 · Jul 07, 2015 at 10:59 PM 0
Share

No, i build for Windows.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

unity not building 1 Answer

Error when i'm building with unity3d 3.5 not beta 1 Answer

Build error [0x00242] 0 Answers

Why using UnityEditor.SceneManagement; is gray like not in use and give error when building my game ? 2 Answers

I am getting a Gradle build error while building a game App bundle made with Unity 3D 2019.2. , 0 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