Giter Club home page Giter Club logo

Comments (13)

karl- avatar karl- commented on July 22, 2024

Are you compiling with the complete .NET profile and not subset?

from giles.

AIIX avatar AIIX commented on July 22, 2024

Yes using .Net 2.0 and not the subset. I even reInstalled the final release of Unity 5.5 the error is still the same. Also tried changing the project settings in Visual Studio to .Net 4.0 the error remains.

Additionally I'm using unity3d 64bit on Windows10. Also tried the above in Unity 5.4 beta release on the Linux editor the error is the same.

from giles.

tomaszzackiewicz avatar tomaszzackiewicz commented on July 22, 2024

The same problem. I tried to add:
using System.Runtime.CompilerServices.DynamicAttribute;

But I get the error:
Assets/GILES/Code/Classes/Serialization/Converters/pb_ObjectContainerConverter.cs(5,39): error CS0234: The type or namespace name DynamicAttribute' does not exist in the namespace System.Runtime.CompilerServices'. Are you missing an assembly reference?

from giles.

karl- avatar karl- commented on July 22, 2024

What platform are you targeting?

from giles.

tomaszzackiewicz avatar tomaszzackiewicz commented on July 22, 2024

Now, PC, 64bit on Windows10, but later I would like to use it on mobile too.

from giles.

karl- avatar karl- commented on July 22, 2024

Looking at the code again I think you could safely just comment out then entirety of pb_ObjectContainerConverter.

from giles.

tomaszzackiewicz avatar tomaszzackiewicz commented on July 22, 2024

I have commented out all the code in the file. No errors and I can run the project, but I'm not sure if it won't prevent me from suing serialisation.

from giles.

karl- avatar karl- commented on July 22, 2024

If I recall correctly that path was never actually used - I abandoned it for some reason, or at the least didn't find time to finish it. So you should be able to serialize and deserialize without issue.

from giles.

tomaszzackiewicz avatar tomaszzackiewicz commented on July 22, 2024

Ok, thank you.

from giles.

SamuelTulach avatar SamuelTulach commented on July 22, 2024

Hello!
.NET 2.0 native not support DynamicAttribute, so download this beta Unity build with .NET 4.6. For me is working!

from giles.

SavedByZero avatar SavedByZero commented on July 22, 2024

I'm confused, what's the exact solution here? I never had an issue using the dynamic keyword with .net 2.0 or .net 2.0 subset until recent 5.X releases, so why is a basic variable type suddenly breaking Unity and looking for a class from 4.6?

from giles.

kevinw avatar kevinw commented on July 22, 2024

I'm running into this issue as well, with Unity 5.6.0f3, under both .NET 2.0 and .NET 2.0 Subset.

from giles.

SavedByZero avatar SavedByZero commented on July 22, 2024

The only thing that worked for me was replacing dynamic with object, and that's only because I'm a weird case with an xml reader that reads variable types as attributes and puts them into a dictionary. In most cases, I would think dynamic and object are fairly different.

from giles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.