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
0
Question by Sin_y · Feb 20, 2013 at 02:47 PM · errordlllibrarycompile

Cannot compile .exe with specific .dll. (but with other .dlls created the same way)

Hey guys,

I have a problem in Unity which I cannot resolve on my own. In the "past" (~ 2 weeks ago) I created different libraries for all kinds of Unity games. (e.g. an Input Handler which allows rebinding of keys at runtime) They are all build in form of a .dll which was compiled in VS 2012 with mostly standard build configuration.

For the past few days I have been working on a Network Handler which handles creating of servers, connecting to servers, player synching and so on. I created the scripts in Unity and I also developed them in Unity. I'm just porting the scripts into a new VS 2012 project and then I build the .dll.

All previous .dll's worked just fine but with the new .dll i get the following error when I try to compile the "game" in Unity with the .dll:

Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.TypeLoadException: Could not load type 'System.Reflection.AssemblyConfigurationAttribute' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

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

I tried many different things to solve the problem but none of them seem to be working:

  • changed the .NET framework from 2.0 up to 4.5 and back

  • changed assembly configuration

  • recreated the project

  • tried to sort out dependencies

  • changed used .NET framework in Unity to 2.0 and also back to the 2.0 Subset

  • deleted all code in the project, recompiled .dll and imported it into the Unity project

  • took the project files from another working .dll and replaced the code with the NetworkHandler

Am I just missing something? By the way: the NetworkHandler scripts are just working fine when i place them inside any Unity folder.

Any help would be appreciated.

Thanks in advance!

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

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

9 People are following this question.

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

Related Questions

Acessing Scripts in Assets folder using .dll 1 Answer

Obfuscating DLL classes from the users 1 Answer

"The associated script cannot be loaded" on every Script in every GameObject in the project. Corrupted Project. 15 Answers

How do you compile a managed dll with mono/mcs targeting .net 2.0 or 3.5 for Unity? 1 Answer

Zombie Round Script Help 1 Answer


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