Refitter.Core
1.1.1-preview.48
This is a prerelease version of Refitter.Core.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Refitter.Core --version 1.1.1-preview.48
NuGet\Install-Package Refitter.Core -Version 1.1.1-preview.48
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Refitter.Core" Version="1.1.1-preview.48" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Refitter.Core --version 1.1.1-preview.48
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Refitter.Core, 1.1.1-preview.48"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Refitter.Core as a Cake Addin #addin nuget:?package=Refitter.Core&version=1.1.1-preview.48&prerelease // Install Refitter.Core as a Cake Tool #tool nuget:?package=Refitter.Core&version=1.1.1-preview.48&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
To use the RefitGenerator
class, you need to follow these steps:
- Install the
Refitter.Core
NuGet package in your project. - Create an instance of the
RefitGeneratorSettings
class, which contains the settings used to configure the generator. You need to set theOpenApiPath
property to the path of your OpenAPI specification file or a URL. - Create an instance of the
RefitGenerator
class by calling theCreateAsync
method and passing in theRefitGeneratorSettings
instance. - Call the
Generate()
method on theRefitGenerator
instance to generate the Refit clients and interfaces based on the OpenAPI specification. This method returns the generated code as a string.
Here's an example of how to use the RefitGenerator
class:
using Refit;
using Refitter.Core;
// Create an instance of the RefitGeneratorSettings class
var settings = new RefitGeneratorSettings
{
OpenApiPath = "Relative or absolute path to .json or .yaml local file or a URL to a .json or .yaml file"
};
// Create an instance of the RefitGenerator class
var generator = await RefitGenerator.CreateAsync(settings);
// Generate the Refit clients and interfaces and get the generated code as a string
var generatedCode = await generator.Generate();
// Use the generated code in your project
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- NSwag.CodeGeneration.CSharp (>= 14.0.8)
- NSwag.Core.Yaml (>= 14.0.8)
- OasReader (>= 1.6.11.14)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Refitter.Core:
Package | Downloads |
---|---|
Minicon.GetMyInvoices.Client
Core functionality for the GetMyInvoices Client. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Refitter.Core:
Repository | Stars |
---|---|
christianhelle/apiclientcodegen
A collection of Visual Studio custom tool code generators for Swagger / OpenAPI specification files
|
Version | Downloads | Last updated |
---|---|---|
1.4.1-preview.62 | 42 | 11/4/2024 |
1.4.0 | 5,444 | 10/14/2024 |
1.4.0-preview.61 | 40 | 10/7/2024 |
1.3.2 | 3,396 | 9/23/2024 |
1.3.2-preview.60 | 43 | 9/23/2024 |
1.3.1 | 173 | 9/20/2024 |
1.3.0 | 3,772 | 9/14/2024 |
1.2.1-preview.59 | 54 | 9/13/2024 |
1.2.1-preview.58 | 58 | 9/11/2024 |
1.2.1-preview.57 | 49 | 9/11/2024 |
1.2.1-preview.56 | 49 | 9/9/2024 |
1.2.1-preview.55 | 45 | 9/2/2024 |
1.2.1-preview.54 | 44 | 8/29/2024 |
1.2.0 | 4,212 | 8/12/2024 |
1.2.0-preview.53 | 33 | 8/4/2024 |
1.2.0-preview.52 | 52 | 7/29/2024 |
1.1.3 | 3,962 | 7/19/2024 |
1.1.3-preview.51 | 43 | 7/19/2024 |
1.1.2 | 524 | 7/17/2024 |
1.1.2-preview.50 | 44 | 7/16/2024 |
1.1.2-preview.49 | 45 | 7/11/2024 |
1.1.1 | 1,512 | 7/6/2024 |
1.1.1-preview.48 | 58 | 7/4/2024 |
1.1.1-preview.47 | 52 | 7/1/2024 |
1.1.1-preview.46 | 54 | 6/28/2024 |
1.1.0.45-preview | 92 | 6/25/2024 |
1.0.2 | 4,229 | 6/13/2024 |
1.0.1 | 989 | 6/7/2024 |
1.0.0 | 10,010 | 5/3/2024 |
0.9.9.44-preview | 103 | 4/29/2024 |
0.9.9 | 9,618 | 3/7/2024 |
0.9.8 | 4,449 | 2/27/2024 |
0.9.7 | 3,536 | 2/7/2024 |
0.9.6 | 3,199 | 1/29/2024 |
0.9.5 | 2,342 | 1/15/2024 |
0.9.4.43-preview | 96 | 1/15/2024 |
0.9.4 | 812 | 1/12/2024 |
0.9.3.42-preview | 89 | 1/10/2024 |
0.9.2 | 169 | 1/10/2024 |
0.9.1 | 1,437 | 1/9/2024 |
0.9.0 | 701 | 1/9/2024 |
0.8.7.41-preview | 101 | 1/3/2024 |
0.8.7.40-preview | 117 | 12/20/2023 |
0.8.7 | 2,597 | 12/18/2023 |
0.8.6.39-preview | 142 | 12/14/2023 |
0.8.6.38-preview | 107 | 12/14/2023 |
0.8.6 | 2,592 | 12/11/2023 |
0.8.5 | 3,482 | 11/23/2023 |
0.8.4 | 4,429 | 11/7/2023 |
0.8.3 | 2,115 | 10/31/2023 |
0.8.2 | 4,436 | 10/9/2023 |
0.8.1 | 1,112 | 10/4/2023 |
0.8.0 | 1,433 | 9/23/2023 |
0.7.5 | 2,869 | 9/7/2023 |
0.7.4 | 214 | 9/6/2023 |
0.7.3.37-preview | 157 | 8/25/2023 |
0.7.3.36-preview | 116 | 8/25/2023 |
0.7.3.35-preview | 154 | 8/21/2023 |
0.7.3.34-preview | 133 | 8/15/2023 |
0.7.3.33-preview | 132 | 8/12/2023 |
0.7.3 | 2,329 | 8/26/2023 |
0.7.2.32-preview | 134 | 8/7/2023 |
0.7.2 | 4,037 | 8/7/2023 |
0.7.1.31-preview | 155 | 8/2/2023 |
0.7.1.30-preview | 143 | 8/2/2023 |
0.7.1.29-preview | 147 | 8/1/2023 |
0.7.1 | 1,208 | 8/3/2023 |
0.7.0.28-preview | 131 | 7/28/2023 |
0.7.0.27-preview | 133 | 7/28/2023 |
0.7.0.26-preview | 142 | 7/27/2023 |
0.7.0.23-preview | 126 | 7/27/2023 |
0.7.0.22-preview | 122 | 7/27/2023 |
0.7.0.21-preview | 130 | 7/27/2023 |
0.7.0.20-preview | 126 | 7/27/2023 |
0.7.0 | 843 | 7/31/2023 |
0.6.3 | 305 | 7/22/2023 |
0.6.2 | 6,750 | 6/22/2023 |
0.6.1 | 554 | 6/20/2023 |
0.6.0 | 804 | 6/15/2023 |
0.5.30 | 1,048 | 6/12/2023 |
0.5.29 | 155 | 6/12/2023 |
0.5.28 | 554 | 6/10/2023 |
0.5.27 | 2,378 | 5/24/2023 |
0.5.26 | 2,128 | 5/11/2023 |
0.5.25 | 227 | 5/10/2023 |
0.5.3 | 1,078 | 5/5/2023 |
0.5.2 | 1,389 | 5/2/2023 |
0.5.1 | 178 | 5/2/2023 |
0.5.0 | 1,050 | 4/28/2023 |
0.4.2 | 1,222 | 4/24/2023 |
0.4.1 | 4,890 | 4/3/2023 |
0.4.0 | 1,391 | 3/24/2023 |
0.3.17 | 243 | 3/24/2023 |
0.3.16 | 901 | 3/22/2023 |
0.3.4 | 217 | 3/22/2023 |
0.3.3 | 966 | 3/17/2023 |
0.3.2 | 455 | 3/16/2023 |
0.3.1 | 489 | 3/14/2023 |
0.3.0 | 236 | 3/14/2023 |
0.2.4-alpha | 2,213 | 3/1/2023 |
0.2.3-alpha | 390 | 2/27/2023 |
0.2.2-alpha | 876 | 2/25/2023 |
0.2.1-alpha | 152 | 2/25/2023 |