Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with latest Uniject #8

Open
TTimo opened this issue Oct 22, 2013 · 1 comment
Open

Problems with latest Uniject #8

TTimo opened this issue Oct 22, 2013 · 1 comment

Comments

@TTimo
Copy link

TTimo commented Oct 22, 2013

Hello,

I'm trying to assess Uniject and run the examples running in a few problems that I hope you can help with.

MacOS X 10.8.5
Unity pro 4.2.2f1
Xamarin Studio 4.0.13 (formerly known as MonoDevelop)
Latest Uniject out of github

After I load in Unity (which upgrades the project) and do a sync, the project appears in Xamarin. I can compile 'Assembly-Csharp-firstpass', but 'Assembly-CSharp' fails in box.cs on 'using Uniject;' : 'The type or namespace could not be found ..'

When I try to run the example script in Unity, I get a different error:
Assets/Plugins/Uniject/Interface/IResourceLoader.cs(11,17): error CS0433: The imported type `System.Xml.Linq.XDocument' is defined multiple times

Any tips appreciated,
TTimo

@jondhumphreys
Copy link

It looks like Uniject includes System.Xml.Linq.dll in its distribution. Older versions of Unity didn't include this dll, but the newer versions do. So we're ending up with multiple System.Xml.Linq.dlls.

I was able to fix things by deleting Uniject's System.Xml.Linq.dll. You can find it in: Assets\Plugins\Uniject\Assembly.

I deleted both System.Xml.Linq.dll and System.Xml.Linq.dll.meta, launched Unity, opened my project, and everything worked again.

For reference, I'm running Unity 4.2.2f1.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants