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 infernobirdy · Jul 21, 2017 at 12:43 PM · dlldll error

C# .DLL not recognized on only one unity installation

Hi Guys. This is a real headscratcher to me. I have a dll file in Unity (of the YamlDotNet library). It works fine on about 7 different machines, all running Unity 2017.1.0f3 or the previous version (Unity 5.something). Now I have a new MacbookPro running OSX 10.12.5 and the same Unity version and Unity throws this error:

Assets/Scripts/steelCircus/Editor/InputEditor.cs(4,7): error CS0246: The type or namespace name `UnityInputConverter' could not be found. Are you missing an assembly reference? (UnityInputConverter is the namespace of the .dll)

To reiterate: There is absolutely no Problem on my other MacbookPro running OSX 10.11.6 and Unity 2017.1.0f3 (the same Unity version).

Both installations seem to be 64 bit. Using Terminal and running "file" command on the "Unity" file inside the MacOS folder of the package yields: "Mach-O 64-bit executable x86_64" in both cases. I tried moving the dll into the root "Asset" folder into the "Asset/Plugins" folder into the folder with the c# file that uses it, out of the folder. Nothing has any effect. Trying to manually add the DLL to the ".NET Assembly" tab of MonoDevelop yields the message: "File: 'Blah/Blah/UnityInputConverter.dll' is not a valid .NET Assembly"

If anyone has any ideas what I can try, I'm happy to hear them. Thanks.

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
0

Answer by Bunny83 · Jul 21, 2017 at 02:05 PM

I guess you talk about this DLL? Have you compiled the DLL yourself or have you downloaded it somewhere? When MonoDevelop complains that it's not a valid .NET assembly the file might be corrupted.

Also note that the DLL seems to be an editor extension (as it references the UnityEditor.dll) so the DLL must be inside an editor folder.

Comment
Add comment · Show 3 · 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 Glurth · Jul 21, 2017 at 07:01 PM 1
Share

Just to clarify: putting the file in the appropriate folder in your unity project's Assets folder, will automatically adjust the c# project to include the reference to the DLL. (The c# "solution" consists of both an editor and non-editor projects. if you put the DLL in an editor folder, the reference will be added to the editor project, otherwise the reference is added to the non-editor project.) Any references you add to the c# project manually will be automatically overwritten/deleted.

I feel like sometimes I've had to close and reopen the c# IDE, after adding a DLL, to refresh the c# project references.

avatar image Bunny83 Glurth · Jul 21, 2017 at 09:05 PM 0
Share

Yes sometimes that's necessary. However for me VS actually wants to reload the solution even too often which is kinda annoying.

avatar image Glurth Bunny83 · Jul 22, 2017 at 01:17 AM 0
Share

"However for me VS actually wants to reload the solution even too often which is kinda annoying." That never happens to me: only when I intentionally make some kind of change to the files or directory structure of the open project, does it happen. This makes me suspect some process is changing a file/folder without your intent. If that's indeed the case, you could use process monitor, and with some filters, see what process is actually doing the modifying. (If it's annoying enough to troubleshoot.) https://technet.microsoft.com/en-us/sysinternals/bb896645

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

70 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

Unity Cloud Build error with .dll 3 Answers

Include iDirect.dll in Unity 2017.1,The Assembly UnityEditor is referenced by iDirect ('Assets/IonGFX/iDirect.dll'). But the dll is not allowed to be included or could not be found. 0 Answers

The program can't start because UnityPlayer.dll is missing from your computer. 2 Answers

Unable to resolve reference 'office' in Microsoft.Office.Interop.Excel.dll 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