x


Why does Boo not see namespaces from dlls?

I'm trying to use protobuf-net but am getting the following error when I try to import it in a Boo script:

BCE0021: Namespace 'ProtoBuf' not found, maybe you forgot to add an assembly reference?

I have the assembly in the Plugins folder, and Unity doesn't complain if I use it from a C# script. Is there something special I need to do?

more ▼

asked May 22 '11 at 01:35 AM

Daniel Brauer gravatar image

Daniel Brauer
1.4k 12 19 38

I'm not yet sure why this is, but using the .NET 2.0 version of the assembly appears to make it compatible with Boo.

May 22 '11 at 02:12 AM Daniel Brauer
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

A plain .Net/mono dll is not a plugin. Plugins (from Unity's view) are only native code dlls. Just place your dll somewhere else in your assets.

more ▼

answered May 22 '11 at 03:28 AM

Bunny83 gravatar image

Bunny83
45.5k 11 49 207

I don't use Boo because i don't know python ;) As far as i know Unity still use .Net 2.0 (you can see the option in your Player-settings where you can choose .Net 2.0 or .Net 2.0 Subset). That could be the problem. For which platform do you build? web, standalone or iPhone...

May 22 '11 at 03:54 AM Bunny83
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x234
x70
x67
x46
x2

asked: May 22 '11 at 01:35 AM

Seen: 1314 times

Last Updated: May 22 '11 at 03:54 AM