Skip to content
Permalink
Browse files

Execute `dotnet-nswag.dll` with `--roll-forward-on-no-candidate-fx 2` (

#2214)

* Ignore _all_ .nupkg files

* Execute `dotnet-nswag.dll` with `--roll-forward-on-no-candidate-fx 2`
- #2195

* Use new name of `swagger2csclient` command
  • Loading branch information...
dougbu authored and RicoSuter committed Jun 6, 2019
1 parent ef16738 commit 62d9d5b5d3300c29ca825221450410fa22495d04
Showing with 4 additions and 5 deletions.
  1. +1 −3 .gitignore
  2. +3 −2 src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.targets
@@ -57,10 +57,8 @@ src/packages/**
/src/NSwag.Integration.TypeScriptWeb/scripts/serviceClientsAngular2.extensions.js.map
/src/NSwag.Integration.TypeScriptWeb/scripts/serviceClientsAngular2.extensions.js
/src/dist
build/*.nupkg
*.nupkg
/src/NSwagStudio.Installer/Generated.wxs
NSwag.MSBuild.*.nupkg
NSwagStudio*.nupkg
/samples/.vs/config
/samples/WithoutMiddleware/Sample.AspNetCore20/.vs/Sample.AspNetCore20/v15/Server/sqlite3
/samples/WithoutMiddleware/Sample.AspNetCore20/.vs/Sample.AspNetCore20/DesignTimeBuild
@@ -2,7 +2,8 @@
<Project>
<PropertyGroup>
<_NSwagCommand>$(NSwagExe)</_NSwagCommand>
<_NSwagCommand Condition="'$(MSBuildRuntimeType)' == 'Core'">$(NSwagExe_Core21)</_NSwagCommand>
<_NSwagCommand
Condition="'$(MSBuildRuntimeType)' == 'Core'">dotnet --roll-forward-on-no-candidate-fx 2 $(NSwagDir_Core21)/dotnet-nswag.dll</_NSwagCommand>
</PropertyGroup>

<!-- OpenApiReference support for C# -->
@@ -11,7 +12,7 @@
<ItemGroup>
<!-- @(CurrentOpenApiReference) item group will never contain more than one item. -->
<CurrentOpenApiReference>
<Command>$(_NSwagCommand) swagger2csclient /className:%(ClassName) /namespace:%(Namespace)</Command>
<Command>$(_NSwagCommand) openapi2csclient /className:%(ClassName) /namespace:%(Namespace)</Command>
</CurrentOpenApiReference>
<CurrentOpenApiReference>
<Command>%(Command) /input:%(FullPath) /output:%(OutputPath) %(Options)</Command>

0 comments on commit 62d9d5b

Please sign in to comment.
You can’t perform that action at this time.