Coder Social home page Coder Social logo

compatibility with Unity about c5 HOT 7 CLOSED

sestoft avatar sestoft commented on August 19, 2024
compatibility with Unity

from c5.

Comments (7)

ondfisk avatar ondfisk commented on August 19, 2024

Can you provide some more context. Are you using the latest 3.0-beta?
No one on the team has any skills in Unity. Can you share a sample project which shows the issue?

from c5.

christougher avatar christougher commented on August 19, 2024

actually I used an older version and it works fine. Thanks. I believe it stopped being compatible in February when:

  • Retarget to .NET Standard 2.0 only

from c5.

ondfisk avatar ondfisk commented on August 19, 2024

According to this: https://docs.microsoft.com/en-us/dotnet/standard/net-standard, Unity should be fine with .NET Standard 2.0.

from c5.

Ryan-M3 avatar Ryan-M3 commented on August 19, 2024

I can confirm that C5 throws "999+" errors, at that changing to a commit vaguely around February fixes it. To reproduce: download Unity; start a new project; clone C5 into Assets folder; wait for Unity to automatically compile; check in-engine console for errors. I'm not proficient enough in C# to comment on the why.

from c5.

ondfisk avatar ondfisk commented on August 19, 2024

@Ryan-M3 dumping the .cs files directly in Unity will not work as C5 compiles using C# 8.0.
It is targetting .NET Standard 2.0 which Unity supports.
Can you get the NuGet package instead?
I read somewhere that you could use https://github.com/GlitchEnzo/NuGetForUnity and then use https://www.nuget.org/packages/C5/3.0.0-beta

from c5.

Ryan-M3 avatar Ryan-M3 commented on August 19, 2024

@Ryan-M3 dumping the .cs files directly in Unity will not work as C5 compiles using C# 8.0.
It is targetting .NET Standard 2.0 which Unity supports.
Can you get the NuGet package instead?
I read somewhere that you could use https://github.com/GlitchEnzo/NuGetForUnity and then use https://www.nuget.org/packages/C5/3.0.0-beta

Worked like a charm. The only gotcha was that I had to make sure I clicked "include pre-release" in order to get the exact version you specified. Using an older version led me to waste a little time troubleshooting my own error. :)

from c5.

ondfisk avatar ondfisk commented on August 19, 2024

Great.
Will close the issue then.
We will hopefully be able to release a 3.0 version without pre very soon.

from c5.

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.