Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 MvanDoorn · Sep 20, 2015 at 06:46 PM · dllbuild errordll errorunity cloud buildmanaged

Unity Cloud Build error with .dll

I have multiple projects I want to add to Unity Cloud Build. When I setup a "normal" project without a managed .dll-file, everything builds fine. But in most of our product we have a managed .Dll with monobehaviour classes which we can't work without. When Unity Cloud Build builds these projects, we get build errors saying that it can't find the classes and methods inside the .dll-file.

Note: with a manual Unity Build everything works fine.

 [Unity] Initialize engine version: 5.2.0f3 (e7947df39b5c)
 [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp.dll
 [Unity] Compilation failed: 1 error(s), 0 warnings
 [Unity] Assets/Scripts/TempScript.cs(9,9): error CS0103: The name `Kinemoto' does not exist in the current context
 [Unity] Assets/Scripts/TempScript.cs(9,9): error CS0103: The name `Kinemoto' does not exist in the current context
 [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp.dll
 [Unity] Compilation failed: 3 error(s), 0 warnings
 [Unity] Assets/KinemotoSDK/Example/Scripts/CoordinateMapperExample.cs(3,7): error CS0246: The type or namespace name `KinemotoSDK' could not be found. Are you missing a using directive or an assembly reference?
 [Unity] Assets/KinemotoSDK/Example/Scripts/CoordinateMapperExample.cs(4,7): error CS0246: The type or namespace name `KinemotoSDK' could not be found. Are you missing a using directive or an assembly reference?
 [Unity] Assets/KinemotoSDK/Example/Scripts/EngagementInfo.cs(1,7): error CS0246: The type or namespace name `KinemotoSDK' could not be found. Are you missing a using directive or an assembly reference?
 [Unity] Assets/KinemotoSDK/Example/Scripts/CoordinateMapperExample.cs(3,7): error CS0246: The type or namespace name `KinemotoSDK' could not be found. Are you missing a using directive or an assembly reference?
 [Unity] Assets/KinemotoSDK/Example/Scripts/CoordinateMapperExample.cs(4,7): error CS0246: The type or namespace name `KinemotoSDK' could not be found. Are you missing a using directive or an assembly reference?
 [Unity] Assets/KinemotoSDK/Example/Scripts/EngagementInfo.cs(1,7): error CS0246: The type or namespace name `KinemotoSDK' could not be found. Are you missing a using directive or an assembly reference?
 [Unity] Scripts have compiler errors.
 [Unity] Scripts have compiler errors.
 

Is this a known problem and will it be resolved soon? Or will cloud build never support this?

Thanks in advance!

~Mark

Comment
Add comment · Show 2
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 MvanDoorn · Oct 15, 2015 at 10:08 AM 0
Share

Thanks for your replies. I'm using SVN (with tortoiseSVN) ins$$anonymous$$d of Git so unfortunately these solutions don't work for me.

avatar image TonyLi MvanDoorn · Oct 15, 2015 at 01:23 PM 0
Share

Here's the manual page for TortoiseSVN's ignore files: http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-ignore.html

3 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by TonyLi · Sep 30, 2015 at 08:25 PM

Is your gitignore file excluding DLLs when uploading to Cloud? Check .gitignore in the project as well as your global gitignore.

Windows: [user]/.gitignore_global

Mac: ~/.gitignore_global

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 TonyLi · Oct 15, 2015 at 01:22 PM 0
Share

If you're using Subversion, check your ignore files and the global ignore list. $$anonymous$$ake sure SVN isn't ignoring DLLs.

avatar image
1

Answer by Lisurc · Oct 15, 2015 at 01:09 AM

Adding some input here, the advice from @TonyLi was excellent.

I was having the same kind of problems with the Cloud Build although I was quite sure I had added the whole asset directory to the repository. Turns out I'm not used to GIT (using SVN most of the time) and was not aware of the global git ignore file. And there was indeed a bunch of excluded file extensions, including *.dll.

Just for information, on Windows and with my configuration (using TortoiseGit, if that matters), the actual ignore file was at %userprofile%\documents\gitignore_global.txt

Comment
Add comment · Show 2 · 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 MvanDoorn · Oct 15, 2015 at 01:47 PM 0
Share

@TonyLi, In SVN everything is set just fine. Before Unity Cloud build, I have been using my custom self configured build server (Windows 2008 Server with Unity, Repo Server and Bamboo) for building of my Unity projects.

I just wanted to give Unity Cloud build a try, but until that won't seem to work for me I'll keep using my own Unity Build Server.

Any other ideas regarding the Cloud Build service part?

Thanks!

avatar image TonyLi MvanDoorn · Oct 15, 2015 at 02:08 PM 0
Share

The issue is still almost certainly the same -- that .DLLs are being excluded from the repository. If you can address this, Unity Cloud Build should work. If you've confirmed that Cloud has access to the DLLs but it's still not working, submit a bug report.

avatar image
0

Answer by OnatKorucu · Feb 15 at 11:21 PM

In my case, I generated .gitignore via gitignore.io and I typed "VisualStudio" and "Csharp" along with "Unity" to generate. However, in the generated file .meta files were being ignored. Not ignoring meta files in Assets folder as I answered in stackoverflow let me push .meta files into cloud and solved the issue.

The easiest way to test these kind of things is is pulling your project from cloud into another empty folder in your device and see if it builds or if it has all the files you need.

Comment
Add comment · 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

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

8 People are following this question.

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

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

Cant link PLUGIN.DLL with PLUGIN-EDITOR.DLL 1 Answer

Using dll's from C#? 4 Answers

Include two of the same DLLs in one solution and Visual Studio 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