getting issues in vs 2022 while generating api #5103
sriravi-hm-87
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Rico,
HOpe you are doing good!
We are planning to upgrade as below:
all runtime; build; native; contentfiles; analyzers; buildtransitive all runtime; build; native; contentfiles; analyzers; buildtransitive all runtime; build; native; contentfiles; analyzers; buildtransitivewhile using 14.2.0 we are getting below error:
The command "dotnet --roll-forward-on-no-candidate-fx 2 "C:\Users\Admin.nuget\packages\nswag.msbuild\14.2.0\buildTransitive../tools/Net80//dotnet-nswag.dll" openapi2csclient /className:AllocatedAssortmentApi /namespace:z /GenerateExceptionClasses:false /input:"C:\Users\Admin\Source\Repos\x\net8\Core\x\Schema\x.json" /output:"obj\x.cs" /UseBaseUrl:false /GenerateClientInterfaces:true /DisposeHttpClient:false /GenerateExceptionClasses:false /WrapDtoExceptions:false /AdditionalNamespaceUsages:x" exited with code -1.
when i try the above settings in cmd the file is generating and saved successfuly
when i just clean and rebuild the solution in vs 2022 professional, we are getting the above error. the file is not getting generated. please help.
below is the target info: tried to add net 8.0. WE ARE UPGRADING OUR SOLUTION TO .NET 8 FYKI
<_NSwagCommand>$(NSwagExe) <_NSwagCommand Condition="'$(MSBuildRuntimeType)' == 'Core'">dotnet --roll-forward-on-no-candidate-fx 2 "$(NSwagDir_Core31)/dotnet-nswag.dll" <_NSwagCommand Condition="'$(TargetFramework)' == 'net5.0'">dotnet --roll-forward-on-no-candidate-fx 2 "$(NSwagDir_Net50)/dotnet-nswag.dll" <_NSwagCommand Condition="'$(TargetFramework)' == 'net6.0'">dotnet --roll-forward-on-no-candidate-fx 2 "$(NSwagDir_Net60)/dotnet-nswag.dll" <_NSwagCommand Condition="'$(TargetFramework)' == 'net7.0'">dotnet --roll-forward-on-no-candidate-fx 2 "$(NSwagDir_Net70)/dotnet-nswag.dll" <_NSwagCommand Condition="'$(TargetFramework)' == 'net8.0'">dotnet --roll-forward-on-no-candidate-fx 2 "$(NSwagDir_Net80)/dotnet-nswag.dll" $(_NSwagCommand) openapi2csclient /className:%(ClassName) /namespace:%(Namespace) %(Command) /GenerateExceptionClasses:false %(Command) /input:"%(FullPath)" /output:"%(OutputPath)" %(Options)Beta Was this translation helpful? Give feedback.
All reactions