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
I have a solution with an API .Api project with all the DTOs within, with [TranspilationSource] on them.
It works well.
I have put all my DTOs within another project, .Core (with relevant package refs relating tapper and typedsignalr) which .Api projects references to.
Now when I run the transpilation process I get an error :
> npx cross-var dotnet tsrts --project ../backend/src/Acme.project.Api/Acme.project.Api.csproj --output $npm_package_config_projectWebApiOutputDirectory/socket/
Start loading the csproj of C:\code\Acme\project-i6\backend\src\Acme.project.Api\Acme.project.Api.csproj.
__________________________________________________
Projet "C:\code\Acme\project-i6\backend\src\Acme.project.Core\Acme.project.Core.csproj" (Compile;CoreCompile cibles) :
C:\code\Acme\project-i6\backend\src\Acme.project.Core\Acme.project.Core.csproj : warning NU1903: Package 'Npgsql' 8.0.2 has a known high severity vulnerability, https://github.com/advisories/GHSA-x9vc-6hfv-hg8c
Génération du projet "Acme.project.Core.csproj" terminée.
__________________________________________________
Projet "C:\code\Acme\project-i6\backend\src\Acme.project.Infrastructure\Acme.project.Infrastructure.csproj" (Compile;CoreCompile cibles) :
C:\code\Acme\project-i6\backend\src\Acme.project.Infrastructure\Acme.project.Infrastructure.csproj : warning NU1903: Package 'Npgsql' 8.0.2 has a known high severity vulnerability, https://github.com/advisories/GHSA-x9vc-6hfv-hg8c
Génération du projet "Acme.project.Infrastructure.csproj" terminée.
Create Compilation...
Add Header...
Transpile Acme.project.Api.Hubs.ConnectedUser...
Transpile Acme.project.Api.Hubs.User...
Transpile Acme.project.Api.Hubs.UserMove...
Transpile Acme.project.Api.Hubs.WithGuidRequest...
Transpile Acme.project.Api.Hubs.Abstractions.IprojectTableHub...
======== Exception ========
System.InvalidOperationException: Acme.project.Core.ApplicationServices.Commits.Abstractions.Columns.Dtos.DisplayColumnCommitRequestDto is not supported.
at Tapper.DefaultTypeMapperProvider.GetTypeMapper(ITypeSymbol type)
at Tapper.TypeMappers.TypeMapper.MapTo(ITypeSymbol typeSymbol, ITranspilationOptions options)
at TypedSignalR.Client.TypeScript.InterfaceTranspiler.WriteParameters(IMethodSymbol methodSymbol, ITranspilationOptions options, SpecialSymbols specialSymbols, CodeWriter& codeWriter) in /home/runner/work/TypedSignalR.Client.TypeScript/TypedSignalR.Client.TypeScript/src/TypedSignalR.Client.TypeScript/InterfaceTranspiler.cs:line 266
at TypedSignalR.Client.TypeScript.InterfaceTranspiler.AddInterface(INamedTypeSymbol interfaceSymbol, SpecialSymbols specialSymbols, ITypedSignalRTranspilationOptions options, CodeWriter& codeWriter) in /home/runner/work/TypedSignalR.Client.TypeScript/TypedSignalR.Client.TypeScript/src/TypedSignalR.Client.TypeScript/InterfaceTranspiler.cs:line 104
at TypedSignalR.Client.TypeScript.InterfaceTranspiler.Transpile(IEnumerable`1 interfaceTypes) in /home/runner/work/TypedSignalR.Client.TypeScript/TypedSignalR.Client.TypeScript/src/TypedSignalR.Client.TypeScript/InterfaceTranspiler.cs:line 42
at TypedSignalR.Client.TypeScript.TypedSignalRCodeGenerator.Generate() in /home/runner/work/TypedSignalR.Client.TypeScript/TypedSignalR.Client.TypeScript/src/TypedSignalR.Client.TypeScript/TypedSignalRCodeGenerator.cs:line 38
at TypedSignalR.Client.TypeScript.App.TranspileCore(Compilation compilation, String outputDir, NewLineOption newLine, Int32 indent, Boolean referencedAssembliesTranspilation, SerializerOption serializerOption, NamingStyle namingStyle, EnumStyle enumStyle, MethodStyle methodStyle, Boolean enableAttributeReference) in /home/runner/work/TypedSignalR.Client.TypeScript/TypedSignalR.Client.TypeScript/src/TypedSignalR.Client.TypeScript.Generator/App.cs:line 138
at TypedSignalR.Client.TypeScript.App.Transpile(String project, String output, NewLineOption newLine, Boolean assemblies, SerializerOption serializer, NamingStyle namingStyle, EnumStyle enum, MethodStyle method, Boolean attribute) in /home/runner/work/TypedSignalR.Client.TypeScript/TypedSignalR.Client.TypeScript/src/TypedSignalR.Client.TypeScript.Generator/App.cs:line 55
It looks like it doesnt know about the DisplayColumnCommitRequestDto class which comes from the (here) .Core project
When I look at the working project, I get this output which shows that DisplayColumnCommitRequestDto has been found and generated before the IprojectTableHub:
Hello,
.net 8
I have a solution with an API .Api project with all the DTOs within, with [TranspilationSource] on them.
It works well.
I have put all my DTOs within another project, .Core (with relevant package refs relating tapper and typedsignalr) which .Api projects references to.
Now when I run the transpilation process I get an error :
It looks like it doesnt know about the
DisplayColumnCommitRequestDto
class which comes from the (here) .Core projectWhen I look at the working project, I get this output which shows that DisplayColumnCommitRequestDto has been found and generated before the IprojectTableHub:
Can anyone think about what could be the problem ?
Thanks
The text was updated successfully, but these errors were encountered: