You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingMicrosoft.AspNetCore.SignalR;usingLogic.Hubs;usingDAL.Entities;usingTapper;usingTypedSignalR.Client;namespaceLogic.Hubs;[TranspilationSource]publicclassOrderStatusChangedResponse{publicDateTimeOffsetDateTime{get;set;}publicstringNumber{get;set;}=null!;publicOrderStatusStatus{get;set;}// Defined in another class lib, DAL.publicdecimalTotalExclVat{get;set;}publicDateTimeOffsetOrderDateTime{get;set;}publicdouble?Latitude{get;set;}publicdouble?Longitude{get;set;}publicstring?HouseNumber{get;set;}publicstring?Street{get;set;}publicstring?City{get;set;}publicstring?ZipCode{get;set;}publicstring?Country{get;set;}}publicstaticclassOrderHubGroups{publicconststringOrderStatusChanged=nameof(OrderStatusChanged);}[Hub]publicinterfaceIOrderHub{TaskSendAddToGroup(stringgroupName);TaskSendRemoveFromGroup(stringgroupName);TaskSendOrderStatusChanged(OrderStatusChangedResponseresponse);}[Receiver]publicinterfaceIOrderHubReceiver{TaskReceiveOrderStatusChanged(OrderStatusChangedResponseresponse);}
I then used the following command to generate the appropriate clients. This works in 1.14.0 and in 1.15.0. dotnet tsrts --project C:\Repos\dotnet-api\WebApi\WebApi.csproj --output C:\Repos\Front-End\src\app\shared\services\_generated -asm
In the docs i see:
remove: -asm / --assemblies
replacement: --asm
So i try that: dotnet tsrts --project C:\Repos\dotnet-api\WebApi\WebApi.csproj --output C:\Repos\Front-End\src\app\shared\services\_generated --asm
But it fails to find any hubs.
PS C:\Repos\dotnet-api\webapi> dotnet tsrts --project C:\Repos\dotnet-api\WebApi\WebApi.csproj --output C:\Repos\Front-End\src\app\shared\services\_generated -asm
Start loading the csproj of C:\Repos\dotnet-api\WebApi\WebApi.csproj.
Create Compilation...
Add Header...
Transpile DAL.Entities.OrderStatus...
Add Header...
Transpile Logic.Hubs.JobStateResponse...
Transpile Logic.Hubs.JobStateChangedResponse...
Transpile Logic.Hubs.InDeploymentResponse...
Transpile Logic.Hubs.OrderStatusChangedResponse...
Transpile Logic.Hubs.IJobHub...
Transpile Logic.Hubs.IOrderHub...
Transpile Logic.Hubs.IPingHub...
Transpile Logic.Hubs.IJobHubReceiver...
Transpile Logic.Hubs.IOrderHubReceiver...
Transpile Logic.Hubs.IPingHubClient...
Generate TypedSignalR.Client.TypeScript API script...
Cleanup old files...
======== Transpilation is completed. ========
Please check the output folder: C:\Repos\Front-End\src\app\shared\services\_generated
PS C:\Repos\dotnet-api\webapi> dotnet tsrts --project C:\Repos\dotnet-api\WebApi\WebApi.csproj --output C:\Repos\Front-End\src\app\shared\services\_generated --asm
Start loading the csproj of C:\Repos\dotnet-api\WebApi\WebApi.csproj.
Create Compilation...
Generate TypedSignalR.Client.TypeScript API script...
Cleanup old files...
======== Transpilation is completed. ========
Please check the output folder: C:\Repos\Front-End\src\app\shared\services\_generated
Also note that -asm the old one is still mentioned in the launchprofile:
Hiya @nenoNaninu,
The latest version
--asm
fails for me.It generates an empty index file without any hubs/clients defined.
Setup;
net9 on windows11, tapper latest versions 1.13.1.
WebApi;
Dto's are in a shared project
I then used the following command to generate the appropriate clients. This works in 1.14.0 and in 1.15.0.
dotnet tsrts --project C:\Repos\dotnet-api\WebApi\WebApi.csproj --output C:\Repos\Front-End\src\app\shared\services\_generated -asm
In the docs i see:
So i try that:
dotnet tsrts --project C:\Repos\dotnet-api\WebApi\WebApi.csproj --output C:\Repos\Front-End\src\app\shared\services\_generated --asm
But it fails to find any hubs.
Also note that
-asm
the old one is still mentioned in the launchprofile:TypedSignalR.Client.TypeScript/src/TypedSignalR.Client.TypeScript.Generator/Properties/launchSettings.json
Line 29 in 31d952d
The text was updated successfully, but these errors were encountered: