Giter Club home page Giter Club logo

Comments (7)

biosmanager avatar biosmanager commented on May 30, 2024 1

I think I solved it by referencing the SignalR DLLs in Unity:

image

from typedsignalr.client.

nenoNaninu avatar nenoNaninu commented on May 30, 2024

TypedSignalR.Client uses Roslyn v4.4.0. I don't know what version of Unity is available for Roslyn v4.4.0. Please try it with the latest Unity version, 2023.2.

from typedsignalr.client.

biosmanager avatar biosmanager commented on May 30, 2024

I tried it with the latest Unity version 2023.2.7. Appears that it still uses v4.3.0:

warning CS9057: The analyzer assembly 'D:\Repos\PostureControlLab\Balance XR\Anaropia\anaropia\anaropia-unity\Assets\Packages\TypedSignalR.Client.3.4.3\analyzers\dotnet\cs\TypedSignalR.Client.dll' references version '4.4.0.0' of the compiler, which is newer than the currently running version '4.3.0.0'.

How could I modify TypedSignalR.Client to "downgrade" to 4.3.0?

from typedsignalr.client.

nenoNaninu avatar nenoNaninu commented on May 30, 2024

Fix Directory.Packages.props#L10 and build.

from typedsignalr.client.

biosmanager avatar biosmanager commented on May 30, 2024

This certainly helped to get further. However, now I have the following problem:

TypedSignalR.Client\TypedSignalR.Client.SourceGenerator\TypedSignalR.Client.Components.Generated.cs(34,59): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

However, I have the Microsoft.AspNetCore.SignalR.Client package installed using NuGet for Unity.
What is the problem here?

from typedsignalr.client.

nenoNaninu avatar nenoNaninu commented on May 30, 2024

Can you use classes such as HubConnection in your own code?

from typedsignalr.client.

biosmanager avatar biosmanager commented on May 30, 2024

Yeah, so that's the strange thing. It works in my own code but apparently not in the generated code.

from typedsignalr.client.

Related Issues (15)

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.