Skip to content

Commit

Permalink
Fix OpenApiReference for MSBuildRuntimeType=Core (RicoSuter#4555)
Browse files Browse the repository at this point in the history
Use .Net 6.0 version of dotnet-nswag.dll when building with dotnet CLI.
.Net 3.1 version is no longer provided in NSwag.MSBuild package.
  • Loading branch information
olegd-superoffice authored and lahma committed Jan 20, 2024
1 parent d766d33 commit 49adb2e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
<PropertyGroup>
<_NSwagCommand>$(NSwagExe)</_NSwagCommand>
<_NSwagCommand
Condition="'$(MSBuildRuntimeType)' == 'Core'">dotnet --roll-forward-on-no-candidate-fx 2 "$(NSwagDir_Core31)/dotnet-nswag.dll"</_NSwagCommand>
<_NSwagCommand
Condition="'$(TargetFramework)' == 'net6.0'">dotnet --roll-forward-on-no-candidate-fx 2 "$(NSwagDir_Net60)/dotnet-nswag.dll"</_NSwagCommand>
Condition="'$(MSBuildRuntimeType)' == 'Core'">dotnet --roll-forward-on-no-candidate-fx 2 "$(NSwagDir_Net60)/dotnet-nswag.dll"</_NSwagCommand>
<_NSwagCommand
Condition="'$(TargetFramework)' == 'net7.0'">dotnet --roll-forward-on-no-candidate-fx 2 "$(NSwagDir_Net70)/dotnet-nswag.dll"</_NSwagCommand>
<_NSwagCommand
Expand Down

0 comments on commit 49adb2e

Please sign in to comment.