ProcessNSwagClient 1.0.7
dotnet tool install --global ProcessNSwagClient --version 1.0.7
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local ProcessNSwagClient --version 1.0.7
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ProcessNSwagClient&version=1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package ProcessNSwagClient --version 1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ProcessNSwagClient
This tool is for processing C# clients generated with NSWag to re-introduce generic types.
It turns FooOfBar
into Foo<Bar>
. It also turns FooOfBarAndBaz
into Foo<Bar, Baz>
. It will
get confused with things that should turn into Foo<Bar<Baz>, Qux<Quux, Corge>>
, which would be
FooOfBarOfBazAndQuxOfQuuxAndCorge
which would likely get turned into Foo<Bar<Baz, Qux<Quux, Corge>>>
.
In this case you can use an --overrides
file to override:
{
"FooOfBarOfBazAndQuxOfQuuxAndCorge": "Foo<Bar<Baz>, Qux<Quux, Corge>>"
}
If you are generating the client as part of your project file, you can add this tool with something like:
<Target Name="ProcessNSwagClient" AfterTargets="NSwag" Condition="'$(Configuration)' == 'Debug'">
<Exec IgnoreExitCode="true" Command="dotnet tool update --g --no-cache --ignore-failed-sources ProcessNSwagClient" />
<Exec Command="ProcessNSwagClient $(SolutionDir)src\SDK\Net\v1\Client.Generated.cs" />
</Target>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.