diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java index 759aa4c1480..9d36f8ce115 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java @@ -785,17 +785,23 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen { if (HTTPCLIENT.equals(getLibrary())) { supportingFiles.add(new SupportingFile("FileParameter.mustache", clientPackageDir, "FileParameter.cs")); typeMapping.put("file", "FileParameter"); - addRestSharpSupportingFiles(clientPackageDir, packageFolder, excludeTests, testPackageFolder, testPackageName, modelPackageDir, authPackageDir); + addSupportingFiles(clientPackageDir, packageFolder, excludeTests, testPackageFolder, testPackageName, modelPackageDir, authPackageDir); additionalProperties.put("apiDocPath", apiDocPath); additionalProperties.put("modelDocPath", modelDocPath); } else if (GENERICHOST.equals(getLibrary())) { addGenericHostSupportingFiles(clientPackageDir, packageFolder, excludeTests, testPackageFolder, testPackageName, modelPackageDir); additionalProperties.put("apiDocPath", apiDocPath + File.separatorChar + "apis"); additionalProperties.put("modelDocPath", modelDocPath + File.separatorChar + "models"); - } else { - addRestSharpSupportingFiles(clientPackageDir, packageFolder, excludeTests, testPackageFolder, testPackageName, modelPackageDir, authPackageDir); + } else { //restsharp + addSupportingFiles(clientPackageDir, packageFolder, excludeTests, testPackageFolder, testPackageName, modelPackageDir, authPackageDir); additionalProperties.put("apiDocPath", apiDocPath); additionalProperties.put("modelDocPath", modelDocPath); + + if (ProcessUtils.hasOAuthMethods(openAPI)) { + supportingFiles.add(new SupportingFile("auth/OAuthAuthenticator.mustache", authPackageDir, "OAuthAuthenticator.cs")); + supportingFiles.add(new SupportingFile("auth/TokenResponse.mustache", authPackageDir, "TokenResponse.cs")); + supportingFiles.add(new SupportingFile("auth/OAuthFlow.mustache", authPackageDir, "OAuthFlow.cs")); + } } addTestInstructions(); @@ -851,8 +857,8 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen { } } - public void addRestSharpSupportingFiles(final String clientPackageDir, final String packageFolder, - final AtomicReference excludeTests, final String testPackageFolder, final String testPackageName, final String modelPackageDir, final String authPackageDir) { + public void addSupportingFiles(final String clientPackageDir, final String packageFolder, + final AtomicReference excludeTests, final String testPackageFolder, final String testPackageName, final String modelPackageDir, final String authPackageDir) { supportingFiles.add(new SupportingFile("IApiAccessor.mustache", clientPackageDir, "IApiAccessor.cs")); supportingFiles.add(new SupportingFile("Configuration.mustache", clientPackageDir, "Configuration.cs")); supportingFiles.add(new SupportingFile("ApiClient.mustache", clientPackageDir, "ApiClient.cs")); @@ -899,12 +905,6 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen { supportingFiles.add(new SupportingFile("appveyor.mustache", "", "appveyor.yml")); supportingFiles.add(new SupportingFile("AbstractOpenAPISchema.mustache", modelPackageDir, "AbstractOpenAPISchema.cs")); - - if (ProcessUtils.hasOAuthMethods(openAPI)) { - supportingFiles.add(new SupportingFile("auth/OAuthAuthenticator.mustache", authPackageDir, "OAuthAuthenticator.cs")); - supportingFiles.add(new SupportingFile("auth/TokenResponse.mustache", authPackageDir, "TokenResponse.cs")); - supportingFiles.add(new SupportingFile("auth/OAuthFlow.mustache", authPackageDir, "OAuthFlow.cs")); - } } public void addGenericHostSupportingFiles(final String clientPackageDir, final String packageFolder, diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache index fc6e7fb21a3..7f43f567b32 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache @@ -12,8 +12,10 @@ using System.Reflection; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Net.Http; +{{#useRestSharp}} {{#hasOAuthMethods}}using {{packageName}}.Client.Auth; {{/hasOAuthMethods}} +{{/useRestSharp}} namespace {{packageName}}.Client { @@ -331,6 +333,7 @@ namespace {{packageName}}.Client /// The access token. public virtual string AccessToken { get; set; } + {{#useRestSharp}} {{#hasOAuthMethods}} /// /// Gets or sets the token URL for OAuth2 authentication. @@ -357,6 +360,7 @@ namespace {{packageName}}.Client public virtual OAuthFlow? OAuthFlow { get; set; } {{/hasOAuthMethods}} + {{/useRestSharp}} /// /// Gets or sets the temporary folder path to store the files downloaded from the server. /// @@ -684,12 +688,14 @@ namespace {{packageName}}.Client Username = second.Username ?? first.Username, Password = second.Password ?? first.Password, AccessToken = second.AccessToken ?? first.AccessToken, + {{#useRestSharp}} {{#hasOAuthMethods}} OAuthTokenUrl = second.OAuthTokenUrl ?? first.OAuthTokenUrl, OAuthClientId = second.OAuthClientId ?? first.OAuthClientId, OAuthClientSecret = second.OAuthClientSecret ?? first.OAuthClientSecret, OAuthFlow = second.OAuthFlow ?? first.OAuthFlow, {{/hasOAuthMethods}} + {{/useRestSharp}} {{#hasHttpSignatureMethods}} HttpSigningConfiguration = second.HttpSigningConfiguration ?? first.HttpSigningConfiguration, {{/hasHttpSignatureMethods}} diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache index ce8c1576956..3d364834a62 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache @@ -4,8 +4,10 @@ using System; using System.Collections.Generic; using System.Net; using System.Security.Cryptography.X509Certificates; +{{#useRestSharp}} {{#hasOAuthMethods}}using {{packageName}}.Client.Auth; {{/hasOAuthMethods}} +{{/useRestSharp}} namespace {{packageName}}.Client { @@ -20,6 +22,7 @@ namespace {{packageName}}.Client /// Access token. string AccessToken { get; } + {{#useRestSharp}} {{#hasOAuthMethods}} /// /// Gets the OAuth token URL. @@ -46,6 +49,7 @@ namespace {{packageName}}.Client OAuthFlow? OAuthFlow { get; } {{/hasOAuthMethods}} + {{/useRestSharp}} /// /// Gets the API key. /// diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/netcore_project.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/netcore_project.mustache index 850d293a1ac..814cce5c205 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/netcore_project.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/netcore_project.mustache @@ -49,4 +49,10 @@ {{/validatable}} + + + + + + diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Org.OpenAPITools.csproj index ac6b075281e..9ddd23b5606 100644 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -28,4 +28,10 @@ + + + + + + diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Org.OpenAPITools.csproj index ac6b075281e..9ddd23b5606 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -28,4 +28,10 @@ + + + + + + diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 1531b2ee02b..63301d32951 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -29,4 +29,10 @@ + + + + + + diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Org.OpenAPITools.csproj index a14df8ce387..20de1a9f247 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -28,4 +28,10 @@ + + + + + + diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 5cbefcd8fba..6fe89418c30 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -28,4 +28,10 @@ + + + + + + diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/.openapi-generator/FILES b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/.openapi-generator/FILES index 8a59f56a862..3b9f8295454 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/.openapi-generator/FILES +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/.openapi-generator/FILES @@ -97,9 +97,6 @@ src/Org.OpenAPITools/Api/UserApi.cs src/Org.OpenAPITools/Client/ApiClient.cs src/Org.OpenAPITools/Client/ApiException.cs src/Org.OpenAPITools/Client/ApiResponse.cs -src/Org.OpenAPITools/Client/Auth/OAuthAuthenticator.cs -src/Org.OpenAPITools/Client/Auth/OAuthFlow.cs -src/Org.OpenAPITools/Client/Auth/TokenResponse.cs src/Org.OpenAPITools/Client/ClientUtils.cs src/Org.OpenAPITools/Client/Configuration.cs src/Org.OpenAPITools/Client/ExceptionFactory.cs diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Auth/OAuthAuthenticator.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Auth/OAuthAuthenticator.cs deleted file mode 100644 index 8b0ba33499b..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Auth/OAuthAuthenticator.cs +++ /dev/null @@ -1,95 +0,0 @@ -/* - * OpenAPI Petstore - * - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Threading.Tasks; -using Newtonsoft.Json; -using RestSharp; -using RestSharp.Authenticators; - -namespace Org.OpenAPITools.Client.Auth -{ - /// - /// An authenticator for OAuth2 authentication flows - /// - public class OAuthAuthenticator : AuthenticatorBase - { - readonly string _tokenUrl; - readonly string _clientId; - readonly string _clientSecret; - readonly string _grantType; - readonly JsonSerializerSettings _serializerSettings; - readonly IReadableConfiguration _configuration; - - /// - /// Initialize the OAuth2 Authenticator - /// - public OAuthAuthenticator( - string tokenUrl, - string clientId, - string clientSecret, - OAuthFlow? flow, - JsonSerializerSettings serializerSettings, - IReadableConfiguration configuration) : base("") - { - _tokenUrl = tokenUrl; - _clientId = clientId; - _clientSecret = clientSecret; - _serializerSettings = serializerSettings; - _configuration = configuration; - - switch (flow) - { - /*case OAuthFlow.ACCESS_CODE: - _grantType = "authorization_code"; - break; - case OAuthFlow.IMPLICIT: - _grantType = "implicit"; - break; - case OAuthFlow.PASSWORD: - _grantType = "password"; - break;*/ - case OAuthFlow.APPLICATION: - _grantType = "client_credentials"; - break; - default: - break; - } - } - - /// - /// Creates an authentication parameter from an access token. - /// - /// Access token to create a parameter from. - /// An authentication parameter. - protected override async ValueTask GetAuthenticationParameter(string accessToken) - { - var token = string.IsNullOrEmpty(Token) ? await GetToken() : Token; - return new HeaderParameter(KnownHeaders.Authorization, token); - } - - /// - /// Gets the token from the OAuth2 server. - /// - /// An authentication token. - async Task GetToken() - { - var client = new RestClient(_tokenUrl) - .UseSerializer(() => new CustomJsonCodec(_serializerSettings, _configuration)); - - var request = new RestRequest() - .AddParameter("grant_type", _grantType) - .AddParameter("client_id", _clientId) - .AddParameter("client_secret", _clientSecret); - var response = await client.PostAsync(request); - return $"{response.TokenType} {response.AccessToken}"; - } - } -} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Auth/OAuthFlow.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Auth/OAuthFlow.cs deleted file mode 100644 index e2257409258..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Auth/OAuthFlow.cs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * OpenAPI Petstore - * - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -namespace Org.OpenAPITools.Client.Auth -{ - /// - /// Available flows for OAuth2 authentication - /// - public enum OAuthFlow - { - /// Authorization code flow - ACCESS_CODE, - /// Implicit flow - IMPLICIT, - /// Password flow - PASSWORD, - /// Client credentials flow - APPLICATION - } -} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Auth/TokenResponse.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Auth/TokenResponse.cs deleted file mode 100644 index 0a94e17e122..00000000000 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Auth/TokenResponse.cs +++ /dev/null @@ -1,22 +0,0 @@ -/* - * OpenAPI Petstore - * - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Newtonsoft.Json; - -namespace Org.OpenAPITools.Client.Auth -{ - class TokenResponse - { - [JsonProperty("token_type")] - public string TokenType { get; set; } - [JsonProperty("access_token")] - public string AccessToken { get; set; } - } -} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Configuration.cs index 9f9385b5e2d..5c018577557 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Configuration.cs @@ -18,7 +18,6 @@ using System.Reflection; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Net.Http; -using Org.OpenAPITools.Client.Auth; namespace Org.OpenAPITools.Client { @@ -363,30 +362,6 @@ namespace Org.OpenAPITools.Client /// The access token. public virtual string AccessToken { get; set; } - /// - /// Gets or sets the token URL for OAuth2 authentication. - /// - /// The OAuth Token URL. - public virtual string OAuthTokenUrl { get; set; } - - /// - /// Gets or sets the client ID for OAuth2 authentication. - /// - /// The OAuth Client ID. - public virtual string OAuthClientId { get; set; } - - /// - /// Gets or sets the client secret for OAuth2 authentication. - /// - /// The OAuth Client Secret. - public virtual string OAuthClientSecret { get; set; } - - /// - /// Gets or sets the flow for OAuth2 authentication. - /// - /// The OAuth Flow. - public virtual OAuthFlow? OAuthFlow { get; set; } - /// /// Gets or sets the temporary folder path to store the files downloaded from the server. /// @@ -710,10 +685,6 @@ namespace Org.OpenAPITools.Client Username = second.Username ?? first.Username, Password = second.Password ?? first.Password, AccessToken = second.AccessToken ?? first.AccessToken, - OAuthTokenUrl = second.OAuthTokenUrl ?? first.OAuthTokenUrl, - OAuthClientId = second.OAuthClientId ?? first.OAuthClientId, - OAuthClientSecret = second.OAuthClientSecret ?? first.OAuthClientSecret, - OAuthFlow = second.OAuthFlow ?? first.OAuthFlow, HttpSigningConfiguration = second.HttpSigningConfiguration ?? first.HttpSigningConfiguration, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/IReadableConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/IReadableConfiguration.cs index c9615dc5aa7..b99a151e5bb 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/IReadableConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/IReadableConfiguration.cs @@ -12,7 +12,6 @@ using System; using System.Collections.Generic; using System.Net; using System.Security.Cryptography.X509Certificates; -using Org.OpenAPITools.Client.Auth; namespace Org.OpenAPITools.Client { @@ -27,30 +26,6 @@ namespace Org.OpenAPITools.Client /// Access token. string AccessToken { get; } - /// - /// Gets the OAuth token URL. - /// - /// OAuth Token URL. - string OAuthTokenUrl { get; } - - /// - /// Gets the OAuth client ID. - /// - /// OAuth Client ID. - string OAuthClientId { get; } - - /// - /// Gets the OAuth client secret. - /// - /// OAuth Client Secret. - string OAuthClientSecret { get; } - - /// - /// Gets the OAuth flow. - /// - /// OAuth Flow. - OAuthFlow? OAuthFlow { get; } - /// /// Gets the API key. /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 44ff20b74a6..a0275e0ac51 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -27,4 +27,10 @@ + + + + + + diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Org.OpenAPITools.csproj index a4c5da4f9cf..a54b54ab80b 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -28,4 +28,10 @@ + + + + + + diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 0adee207df0..5a884c20706 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -28,4 +28,10 @@ + + + + + + diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Org.OpenAPITools.csproj index ac6b075281e..9ddd23b5606 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -28,4 +28,10 @@ + + + + + + diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 6e3e86a087e..296062f8edf 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -28,4 +28,10 @@ + + + + + + diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Org.OpenAPITools.csproj index 88d4bb1a5bd..8e9c62891fc 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Org.OpenAPITools.csproj +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Org.OpenAPITools.csproj @@ -28,4 +28,10 @@ + + + + + +