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 rainbow_design · Sep 01, 2015 at 06:06 PM · monodevelopvisualstudio

Visual studio for compile

Hello, i had some trouble with boo and mono so i took an advice in the forum to install visual studio.

Now when i compile my file with vs its working perfectly however when i click on the start play button on unity it throws again mono bug related errors.

test.boo

 import sys
 sys.path.append(UnityEngine.Application.dataPath)
 import pytest
 pytest.tester()

gives

 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 

and

 Assets/test.boo(3,1): BCE0044: expecting "EOF", found 'import'.

Now i heard too much bad about your mono version i would rather replace it altogether than debugging it.

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

3 Replies

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

Answer by BMayne · Sep 02, 2015 at 03:53 PM

Hey there,

Are you making a dll or just editing the code for Unity?

If you are not making a dll (a standalone library) you do not build the project ever. Unity does this for you behind the scenes and takes some special steps to do this.

Cheers,

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 Dave-Carlile · Sep 02, 2015 at 05:39 PM 0
Share

Well, you can compile it in Visual Studio to check for syntax errors, but that isn't the build that counts.

avatar image D3Duck · Sep 02, 2015 at 06:18 PM 0
Share

@Dave Carlile But VS already does that on the go while you're typing. So still wouldn't really make any sense if he is not doing anything with a dll.

avatar image rainbow_design · Sep 13, 2015 at 01:58 PM 0
Share

Well i guess i will not work too much with c# or java anyways since i got python running now so it not important...

avatar image
1

Answer by D3Duck · Sep 01, 2015 at 09:02 PM

Hey,

You need to use this.

Also make very sure you have the correct version of VS (Visual Studio Community 2013, the free one) because I had the wrong one too and it was not working.

When you've installed it, just need to import the little asset that comes with it and click "Generate Project Files" for it to work with that specific project, but you will never have other problems and debugging works perfectly

(Unsupported opinion: VS is endlessly better than Mono)

EDIT:

I just read on the site that they advertise it with VS2015. It wasn't available when I got it some time back but if it works with 2015 you should just go for that I guess.

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 rainbow_design · Sep 02, 2015 at 11:02 AM 0
Share

Hello, i have this already and integrated with unity but unity still compiles with mono. so i would debug with vs and compile for unity with mono.

avatar image
0

Answer by FortisVenaliter · Sep 01, 2015 at 09:13 PM

Another alternative... I hate the mono editor too, so I use Visual Studio to edit my code, but I don't compile it there, I let Unity do so. You can't click directly to the errors that way, but it just works with no extra setup steps.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How do I get set up with a programming language and everything. 2 Answers

Using Team Foundation Server with Unity3D and MonoDevelop 3 Answers

Can I get documentation snippets in addition to intellisense? 2 Answers

Revert script editor to Mono instead of VS? 2 Answers

Keeping Unity 2.6 and MonoDevelop 2.4 running at same time 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