Comments (7)
I think I solved it by referencing the SignalR DLLs in Unity:
from typedsignalr.client.
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.
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.
Fix Directory.Packages.props#L10 and build.
from typedsignalr.client.
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.
Can you use classes such as HubConnection in your own code?
from typedsignalr.client.
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)
- Registering from a razor page HOT 2
- CancellationToken per request HOT 3
- Source code not generated HOT 4
- Generated types are ignoring nullable option for arguments HOT 2
- Escaped reserved identifiers cause issues in generated code HOT 2
- Add ClientFactory Functionality HOT 1
- Nullable as parameter gives CS8639 HOT 6
- Support streaming
- Support client results (.NET 7) HOT 4
- Rethinking accessibility
- Add a streaming section to the README.md
- CreateHubProxy: using the generic parameter instead of interface HOT 1
- IHub does not inherit methods HOT 3
- CreateHubProxy does not support generic HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typedsignalr.client.