diff --git a/commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/LoggingTest.cs b/commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/LoggingTest.cs index 27d876d0358..8e45a0d76b3 100644 --- a/commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/LoggingTest.cs +++ b/commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/LoggingTest.cs @@ -17,6 +17,45 @@ namespace commercetools.Api.IntegrationTests; public class LoggingTest { + [Fact] + public async void DefaultLogger() + { + var configuration = new ConfigurationBuilder(). + AddJsonFile("appsettings.test.Development.json", true). + AddEnvironmentVariables(). + AddUserSecrets(). + AddEnvironmentVariables("CTP_"). + Build(); + var clientConfiguration = configuration.GetSection("Client").Get(); + var loggerClientConf = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary() + { + { "LoggerClient:ClientId", clientConfiguration.ClientId}, + { "LoggerClient:ClientSecret", clientConfiguration.ClientSecret}, + { "LoggerClient:ProjectKey", clientConfiguration.ProjectKey}, + }) + .Build(); + var logger = new TestLogger(); + var loggerFactory = LoggerFactory.Create(builder => + { + builder + .AddFilter("System.Net.Http.HttpClient", LogLevel.None) // disable HTTP client default logging + .AddProvider(new TestLoggerProvider(logger)); + }); + var s = new ServiceCollection(); + s.AddSingleton(loggerFactory); + s.UseCommercetoolsApi(loggerClientConf, "LoggerClient"); + var p = s.BuildServiceProvider(); + + var apiRoot = p.GetService(); + + await apiRoot.Get().ExecuteAsync(); + + var messages = logger.GetLogMessages(); + Assert.StartsWith("GET https://api.europe-west1.gcp.commercetools.com/" + clientConfiguration.ProjectKey, messages.TrimEnd()); + } + + [Fact] public async void CustomLogger() { @@ -55,7 +94,7 @@ public async void CustomLogger() var messages = logger.GetLogMessages(); Assert.Equal("GET https://api.europe-west1.gcp.commercetools.com/" + clientConfiguration.ProjectKey, messages.TrimEnd()); } - + public class CustomLoggerHandler : DelegatingHandler { private readonly ILogger logger; diff --git a/commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/ServiceProviderFixture.cs b/commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/ServiceProviderFixture.cs index 638c169ffae..65087d5dcab 100644 --- a/commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/ServiceProviderFixture.cs +++ b/commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/ServiceProviderFixture.cs @@ -1,6 +1,8 @@ using System; +using System.Collections.Generic; using commercetools.Sdk.Api.Models.Errors; using commercetools.Base.Client; +using commercetools.Base.Client.Error; using commercetools.Sdk.Api; using commercetools.Sdk.Api.Serialization; using Microsoft.Extensions.Configuration; @@ -9,7 +11,7 @@ namespace commercetools.Api.IntegrationTests { - public class ServiceProviderFixture + public sealed class ServiceProviderFixture { private readonly ServiceProvider serviceProvider; private readonly IConfiguration configuration; @@ -20,20 +22,44 @@ public ServiceProviderFixture() //services.AddLogging(configure => configure.AddConsole()); this.configuration = new ConfigurationBuilder(). + AddInMemoryCollection( + new Dictionary() + { + { "Logging:LogLevel:commercetoolsLoggerHandler", "Warning"}, + { "Logging:LogLevel:System.Net.Http.HttpClient", "Warning"}, + }). AddJsonFile("appsettings.test.Development.json", true). AddEnvironmentVariables(). AddUserSecrets(). AddEnvironmentVariables("CTP_"). Build(); - var useStreamClient = Enum.Parse(configuration.GetValue("ClientType", "String")) == ClientType.Stream; + var useStreamClient = Enum.Parse(configuration.GetValue("ClientType", "String")) != ClientType.String; services.UseCommercetoolsApi(configuration, "Client", options: new ClientOptions { ReadResponseAsStream = useStreamClient }); + services.AddLogging(c => c.AddConfiguration(configuration.GetSection("Logging"))); services.AddLogging(c => c.AddProvider(new InMemoryLoggerProvider())); + services.AddLogging(c => c.AddSimpleConsole(o => + { + o.UseUtcTimestamp = true; + o.IncludeScopes = true; + o.TimestampFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFK "; + o.SingleLine = true; + })); services.SetupClient( "MeClient", errorTypeMapper => typeof(ErrorResponse), s => s.GetService() ); + services.AddSingleton(new LoggerHandlerOptions() + { + ResponseLogEvent = LogLevel.Information, + DefaultExceptionLogEvent = LogLevel.Warning, + ExceptionLogEvents = new Dictionary() + { + { typeof(NotFoundException), LogLevel.Information }, + { typeof(ConcurrentModificationException), LogLevel.Information} + } + }); this.serviceProvider = services.BuildServiceProvider(); //set default ProjectKey diff --git a/commercetools.Sdk/IntegrationTests/commercetools.GraphQL.Api.IntegrationTests/ServiceProviderFixture.cs b/commercetools.Sdk/IntegrationTests/commercetools.GraphQL.Api.IntegrationTests/ServiceProviderFixture.cs index 968da45207a..a8a54b7a9c1 100644 --- a/commercetools.Sdk/IntegrationTests/commercetools.GraphQL.Api.IntegrationTests/ServiceProviderFixture.cs +++ b/commercetools.Sdk/IntegrationTests/commercetools.GraphQL.Api.IntegrationTests/ServiceProviderFixture.cs @@ -8,7 +8,7 @@ namespace commercetools.GraphQL.Api.IntegrationTests { - public class ServiceProviderFixture + public sealed class ServiceProviderFixture { private readonly ServiceProvider serviceProvider; private readonly IConfiguration configuration; @@ -24,7 +24,7 @@ public ServiceProviderFixture() AddUserSecrets(). AddEnvironmentVariables("CTP_"). Build(); - var useStreamClient = Enum.Parse(configuration.GetValue("ClientType", "String")) == ClientType.Stream; + var useStreamClient = Enum.Parse(configuration.GetValue("ClientType", "String")) != ClientType.String; services.UseCommercetoolsApi(configuration, "Client", options: new ClientOptions { ReadResponseAsStream = useStreamClient }); services.AddLogging(c => c.AddProvider(new InMemoryLoggerProvider())); diff --git a/commercetools.Sdk/IntegrationTests/commercetools.ImportApi.IntegrationTests/ServiceProviderFixture.cs b/commercetools.Sdk/IntegrationTests/commercetools.ImportApi.IntegrationTests/ServiceProviderFixture.cs index 804dcbe858d..370c2fea1aa 100644 --- a/commercetools.Sdk/IntegrationTests/commercetools.ImportApi.IntegrationTests/ServiceProviderFixture.cs +++ b/commercetools.Sdk/IntegrationTests/commercetools.ImportApi.IntegrationTests/ServiceProviderFixture.cs @@ -6,7 +6,7 @@ namespace commercetools.ImportApi.IntegrationTests { - public class ServiceProviderFixture + public sealed class ServiceProviderFixture { private readonly ServiceProvider serviceProvider; private readonly IConfiguration configuration; @@ -22,7 +22,7 @@ public ServiceProviderFixture() AddEnvironmentVariables("CTP_"). Build(); - var useStreamClient = Enum.Parse(configuration.GetValue("ClientType", "String")) == ClientType.Stream; + var useStreamClient = Enum.Parse(configuration.GetValue("ClientType", "String")) != ClientType.String; services.UseCommercetoolsImportApi(configuration, "ImportClient", options: new ClientOptions { ReadResponseAsStream = useStreamClient }); this.serviceProvider = services.BuildServiceProvider(); diff --git a/commercetools.Sdk/commercetools.Base.Client/ApiMethod.cs b/commercetools.Sdk/commercetools.Base.Client/ApiMethod.cs index f75ad5a50fb..8249767798b 100644 --- a/commercetools.Sdk/commercetools.Base.Client/ApiMethod.cs +++ b/commercetools.Sdk/commercetools.Base.Client/ApiMethod.cs @@ -74,7 +74,6 @@ public virtual HttpRequestMessage Build() { var requestPath = new Uri(RequestUrl + ToQueryString(QueryParams), UriKind.Relative); var request = new HttpRequestMessage(); - request.Version = HttpVersion.Version20; request.Method = this.Method; request.RequestUri = requestPath; request.AddHeaders(Headers); diff --git a/commercetools.Sdk/commercetools.Base.Client/ClientOptions.cs b/commercetools.Sdk/commercetools.Base.Client/ClientOptions.cs index 892624aadb5..fcd09b39cf3 100644 --- a/commercetools.Sdk/commercetools.Base.Client/ClientOptions.cs +++ b/commercetools.Sdk/commercetools.Base.Client/ClientOptions.cs @@ -8,8 +8,8 @@ public class ClientOptions public DecompressionMethods DecompressionMethods { get; set; } = DecompressionMethods.Deflate | DecompressionMethods.GZip; - public bool ReadResponseAsStream { get; set; } = false; + public bool ReadResponseAsStream { get; set; } = true; - public Version UseHttpVersion { get; set; } = null; + public Version UseHttpVersion { get; set; } = HttpVersion.Version20; } } \ No newline at end of file diff --git a/commercetools.Sdk/commercetools.Base.Client/DefaultHttpLogger.cs b/commercetools.Sdk/commercetools.Base.Client/DefaultHttpLogger.cs new file mode 100644 index 00000000000..b0aa49e7b51 --- /dev/null +++ b/commercetools.Sdk/commercetools.Base.Client/DefaultHttpLogger.cs @@ -0,0 +1,111 @@ +using System; +using System.Linq; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using Microsoft.Extensions.Logging; + +namespace commercetools.Base.Client +{ + public class DefaultHttpLogger : IHttpLogger + { + public async Task LogRequestBody(ILogger logger, LogLevel logLevel, HttpRequestMessage request) + { + if (logger.IsEnabled(logLevel)) + { + var body = await (request.Content?.ReadAsStringAsync() ?? Task.FromResult("")); + logger.Log(logLevel, "{HttpMethod} {Uri} {Headers} {Body}", request.Method.Method, + request.RequestUri.AbsoluteUri, RedactAuthorizationHeader(request.Headers), SecuredBody(body)); + } + } + + public async Task LogResponseBody(ILogger logger, LogLevel logLevel, HttpRequestMessage request, HttpResponseMessage response, long elapsed) + { + if (logger.IsEnabled(logLevel)) + { + var body = await (response.Content?.ReadAsStringAsync() ?? Task.FromResult("")); + logger.Log(logLevel, "{HttpMethod} {Uri} {StatusCode} {Timing} {Headers} {Body}", request.Method.Method, + request.RequestUri.AbsoluteUri, (int)response.StatusCode, elapsed, RedactAuthorizationHeader(request.Headers), SecuredBody(body)); + } + } + + public void Log(ILogger logger, LogLevel logLevel, HttpRequestMessage request) + { + if (logger.IsEnabled(logLevel)) + { + logger.Log(logLevel, "{HttpMethod} {Uri} {Headers}", request.Method.Method, + request.RequestUri.AbsoluteUri, RedactAuthorizationHeader(request.Headers)); + } + } + + public void Log(ILogger logger, LogLevel level, HttpRequestMessage request, HttpResponseMessage response, long elapsed) + { + if (logger.IsEnabled(level)) + { + logger.Log(level, "{HttpMethod} {Uri} {StatusCode} {Timing} {CorrelationId} {ServerTiming}", request.Method.Method, + request.RequestUri.AbsoluteUri, (int)response.StatusCode, elapsed, GetCorrelationId(response.Headers), GetServerTiming(response.Headers)); + } + } + + public void Log(ILogger logger, LogLevel logLevel, HttpRequestMessage request, ApiHttpException exception, long elapsed) + { + if (logger.IsEnabled(logLevel)) + { + logger.Log(logLevel, "{HttpMethod} {Uri} {StatusCode} {Timing} {CorrelationId} {ServerTiming}", request.Method.Method, + request.RequestUri.AbsoluteUri, exception.StatusCode, elapsed, GetCorrelationId(exception.Headers), GetServerTiming(exception.Headers)); + } + } + + + private static string RedactAuthorizationHeader(HttpRequestHeaders headers) + { + var headString = from header in headers + where header.Key.ToLower() != "authorization" + select header.Key + ": " + string.Join(", ", header.Value); + + return "[" + string.Join(", ", headString) + "]"; + } + + private static string SecuredBody(string body) + { + if (body != null) + return Regex.Replace(body, "(\"\\w*([Pp]ass|access_token|refresh_token)\\w*\"):\\W*\"[^\"]*\"", + "$1:\"**removed from output**\""); + return null; + } + + private static string GetCorrelationId(ApiHttpHeaders headers) + { + return headers.GetFirst("X-Correlation-Id") ?? "-"; + } + + private static string GetCorrelationId(HttpResponseHeaders headers) + { + return GetHeader(headers, "X-Correlation-ID"); + } + + private static string GetHeader(HttpResponseHeaders headers, string headerName) + { + var headerValue = "-"; + + if (headers.TryGetValues(headerName, out var values)) + { + headerValue = values.First(); + } + + return headerValue; + } + + private static string GetServerTiming(HttpResponseHeaders headers) + { + return GetHeader(headers, "Server-Timing"); + } + + private static string GetServerTiming(ApiHttpHeaders headers) + { + return headers.GetFirst("Server-Timing") ?? "-"; + } + + } +} \ No newline at end of file diff --git a/commercetools.Sdk/commercetools.Base.Client/DependencyInjectionSetup.cs b/commercetools.Sdk/commercetools.Base.Client/DependencyInjectionSetup.cs index 114cb3d91da..8cb51324eb6 100644 --- a/commercetools.Sdk/commercetools.Base.Client/DependencyInjectionSetup.cs +++ b/commercetools.Sdk/commercetools.Base.Client/DependencyInjectionSetup.cs @@ -105,6 +105,8 @@ public static IHttpClientBuilder SetupClient(this IServiceCollection services, s options ??= new ClientOptions(); services.AddSingleton(); services.AddSingleton(); + services.AddSingleton(); + services.AddSingleton(); var httpClientBuilder = services.AddHttpClient(clientName) .ConfigureHttpClient((provider, client) => { @@ -112,22 +114,27 @@ public static IHttpClientBuilder SetupClient(this IServiceCollection services, s { client.DefaultRequestHeaders.AcceptEncoding.ParseAdd("gzip"); } + if (options.DecompressionMethods.HasFlag(DecompressionMethods.Deflate)) { client.DefaultRequestHeaders.AcceptEncoding.ParseAdd("deflate"); } + + client.DefaultRequestVersion = options.UseHttpVersion; + var userAgentProvider = provider.GetService() ?? new UserAgentProvider(); client.DefaultRequestHeaders.UserAgent.ParseAdd(userAgentProvider.UserAgent); }) .ConfigureHttpMessageHandlerBuilder(builder => { - builder.PrimaryHandler = new HttpClientHandler + builder.PrimaryHandler = new SocketsHttpHandler() { AutomaticDecompression = options.DecompressionMethods }; }) - .AddHttpMessageHandler(c => new ErrorHandler(message => serializerFactory(c).Deserialize(errorResponseTypeMapper(message), message.ExtractResponseBody()))) - .AddHttpMessageHandler(c => c.GetService().Create()); + .AddHttpMessageHandler(c => c.GetService().Create()) + .AddHttpMessageHandler(c => new ErrorHandler(message => + serializerFactory(c).Deserialize(errorResponseTypeMapper(message), message.ExtractResponseBody()))); return httpClientBuilder; } diff --git a/commercetools.Sdk/commercetools.Base.Client/IHttpLogger.cs b/commercetools.Sdk/commercetools.Base.Client/IHttpLogger.cs new file mode 100644 index 00000000000..8a4297f3ebe --- /dev/null +++ b/commercetools.Sdk/commercetools.Base.Client/IHttpLogger.cs @@ -0,0 +1,18 @@ +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.Extensions.Logging; + +namespace commercetools.Base.Client +{ + public interface IHttpLogger + { + void Log(ILogger logger, LogLevel level, HttpRequestMessage request); + void Log(ILogger logger, LogLevel level, HttpRequestMessage request, HttpResponseMessage response, long elapsed); + void Log(ILogger logger, LogLevel logLevel, HttpRequestMessage request, ApiHttpException exception, long elapsed); + + Task LogRequestBody(ILogger logger, LogLevel logLevel, HttpRequestMessage request); + + Task LogResponseBody(ILogger logger, LogLevel logLevel, HttpRequestMessage request, + HttpResponseMessage response, long elapsed); + } +} \ No newline at end of file diff --git a/commercetools.Sdk/commercetools.Base.Client/ILoggerHandlerOptions.cs b/commercetools.Sdk/commercetools.Base.Client/ILoggerHandlerOptions.cs new file mode 100644 index 00000000000..778b351c5e9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Base.Client/ILoggerHandlerOptions.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Microsoft.Extensions.Logging; + +namespace commercetools.Base.Client +{ + public interface ILoggerHandlerOptions + { + LogLevel ResponseLogEvent { get; } + LogLevel DefaultExceptionLogEvent { get; } + Dictionary ExceptionLogEvents { get; } + } +} \ No newline at end of file diff --git a/commercetools.Sdk/commercetools.Base.Client/LoggerHandler.cs b/commercetools.Sdk/commercetools.Base.Client/LoggerHandler.cs index 42dcaea4f98..3b3f0626fc1 100644 --- a/commercetools.Sdk/commercetools.Base.Client/LoggerHandler.cs +++ b/commercetools.Sdk/commercetools.Base.Client/LoggerHandler.cs @@ -1,4 +1,6 @@ using System; +using System.Diagnostics; +using System.Linq; using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -8,32 +10,54 @@ namespace commercetools.Base.Client { public class LoggerHandler : DelegatingHandler { - private readonly ILoggerFactory loggerFactory; + private readonly ILoggerFactory _loggerFactory; - public LoggerHandler(ILoggerFactory loggerFactory) + private readonly IHttpLogger _httpLogger; + + private readonly ILoggerHandlerOptions _loggerHandlerOptions; + + public LoggerHandler(ILoggerFactory loggerFactory, IHttpLogger httpLogger = null, ILoggerHandlerOptions options = null) { - this.loggerFactory = loggerFactory; + _loggerFactory = loggerFactory; + _httpLogger = httpLogger ?? new DefaultHttpLogger(); + _loggerHandlerOptions = options ?? new LoggerHandlerOptions(); } protected override async Task SendAsync( HttpRequestMessage request, CancellationToken cancellationToken) { - var logger = this.loggerFactory.CreateLogger("commercetoolsLoggerHandler"); + var logger = _loggerFactory.CreateLogger("commercetoolsLoggerHandler"); if (request == null) { throw new ArgumentNullException(nameof(request)); } - using (Log.BeginRequestPipelineScope(logger, request)) + _httpLogger.Log(logger, LogLevel.Debug, request); + await _httpLogger.LogRequestBody(logger, LogLevel.Trace, request).ConfigureAwait(false); + var watch = Stopwatch.StartNew(); + try { - Log.RequestPipelineStart(logger, request); var response = await base.SendAsync(request, cancellationToken).ConfigureAwait(false); - Log.RequestPipelineEnd(logger, response); - + watch.Stop(); + + _httpLogger.Log(logger, (int)response.StatusCode < 400 ? _loggerHandlerOptions.ResponseLogEvent : _loggerHandlerOptions.DefaultExceptionLogEvent, request, response, watch.ElapsedMilliseconds); + await _httpLogger.LogResponseBody(logger, LogLevel.Trace, request, response, watch.ElapsedMilliseconds); + return response; } + catch (ApiHttpException e) + { + watch.Stop(); + var defaultLevel = _loggerHandlerOptions.DefaultExceptionLogEvent; + var exceptionLevel = _loggerHandlerOptions.ExceptionLogEvents + .Where(pair => pair.Key.IsInstanceOfType(e)) + .Select(pair => pair.Value) + .ToArray(); + _httpLogger.Log(logger, exceptionLevel.Any() ? exceptionLevel.First() : defaultLevel, request, e, watch.ElapsedMilliseconds); + throw; + } } } } \ No newline at end of file diff --git a/commercetools.Sdk/commercetools.Base.Client/LoggerHandlerFactory.cs b/commercetools.Sdk/commercetools.Base.Client/LoggerHandlerFactory.cs index aa0543190ab..c78e977813f 100644 --- a/commercetools.Sdk/commercetools.Base.Client/LoggerHandlerFactory.cs +++ b/commercetools.Sdk/commercetools.Base.Client/LoggerHandlerFactory.cs @@ -5,16 +5,22 @@ namespace commercetools.Base.Client { public class LoggerHandlerFactory : ILoggerHandlerFactory { - private readonly ILoggerFactory loggerFactory; + private readonly ILoggerFactory _loggerFactory; - public LoggerHandlerFactory(ILoggerFactory loggerFactory) + private readonly IHttpLogger _httpLogger; + + private readonly ILoggerHandlerOptions _handlerOptions; + + public LoggerHandlerFactory(ILoggerFactory loggerFactory, IHttpLogger httpLogger = null, ILoggerHandlerOptions options = null) { - this.loggerFactory = loggerFactory; + _loggerFactory = loggerFactory; + _httpLogger = httpLogger; + _handlerOptions = options; } public DelegatingHandler Create() { - return new LoggerHandler(loggerFactory); + return new LoggerHandler(_loggerFactory, _httpLogger, _handlerOptions); } } } \ No newline at end of file diff --git a/commercetools.Sdk/commercetools.Base.Client/LoggerHandlerOptions.cs b/commercetools.Sdk/commercetools.Base.Client/LoggerHandlerOptions.cs new file mode 100644 index 00000000000..2d2488e13fc --- /dev/null +++ b/commercetools.Sdk/commercetools.Base.Client/LoggerHandlerOptions.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using commercetools.Base.Client.Error; +using Microsoft.Extensions.Logging; + +namespace commercetools.Base.Client +{ + public class LoggerHandlerOptions : ILoggerHandlerOptions + { + public LogLevel ResponseLogEvent { get; set; } = LogLevel.Information; + public LogLevel DefaultExceptionLogEvent { get; set; } = LogLevel.Error; + public Dictionary ExceptionLogEvents { get; set; } = new Dictionary() + { + { typeof(NotFoundException), LogLevel.Information } + }; + } +} \ No newline at end of file diff --git a/commercetools.Sdk/commercetools.Base.Client/commercetools.Base.Client.csproj b/commercetools.Sdk/commercetools.Base.Client/commercetools.Base.Client.csproj index b9ac765ac2f..bfa83f5e7bd 100644 --- a/commercetools.Sdk/commercetools.Base.Client/commercetools.Base.Client.csproj +++ b/commercetools.Sdk/commercetools.Base.Client/commercetools.Base.Client.csproj @@ -1,7 +1,7 @@ - netstandard2.1 + net6.0 0.1.0 https://github.com/commercetools/commercetools-dotnet-core-sdk-v2 The Composable Commerce SDK allows developers to work effectively by providing typesafe access to commercetools Composable Commerce in their .NET applications. diff --git a/commercetools.Sdk/commercetools.Base.Registration/commercetools.Base.Registration.csproj b/commercetools.Sdk/commercetools.Base.Registration/commercetools.Base.Registration.csproj index 13184c6655a..51f4492abc4 100644 --- a/commercetools.Sdk/commercetools.Base.Registration/commercetools.Base.Registration.csproj +++ b/commercetools.Sdk/commercetools.Base.Registration/commercetools.Base.Registration.csproj @@ -1,7 +1,7 @@ - netstandard2.1 + net6.0 0.1.0 https://github.com/commercetools/commercetools-dotnet-core-sdk-v2 The Composable Commerce SDK allows developers to work effectively by providing typesafe access to commercetools Composable Commerce in their .NET applications. diff --git a/commercetools.Sdk/commercetools.Base.Serialization/commercetools.Base.Serialization.csproj b/commercetools.Sdk/commercetools.Base.Serialization/commercetools.Base.Serialization.csproj index dce8c5d65a5..71f4c4c78b2 100644 --- a/commercetools.Sdk/commercetools.Base.Serialization/commercetools.Base.Serialization.csproj +++ b/commercetools.Sdk/commercetools.Base.Serialization/commercetools.Base.Serialization.csproj @@ -1,7 +1,7 @@ - netstandard2.1 + net6.0 0.1.0 https://github.com/commercetools/commercetools-dotnet-core-sdk-v2 The Composable Commerce SDK allows developers to work effectively by providing typesafe access to commercetools Composable Commerce in their .NET applications. diff --git a/commercetools.Sdk/commercetools.Sdk.Api/commercetools.Sdk.Api.csproj b/commercetools.Sdk/commercetools.Sdk.Api/commercetools.Sdk.Api.csproj index da7f1051be6..ac64e18442f 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/commercetools.Sdk.Api.csproj +++ b/commercetools.Sdk/commercetools.Sdk.Api/commercetools.Sdk.Api.csproj @@ -1,7 +1,7 @@ - netstandard2.1 + net6.0 0.1.0 https://github.com/commercetools/commercetools-dotnet-core-sdk-v2 The Composable Commerce SDK allows developers to work effectively by providing typesafe access to commercetools Composable Commerce in their .NET applications. diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/commercetools.Sdk.HistoryApi.csproj b/commercetools.Sdk/commercetools.Sdk.HistoryApi/commercetools.Sdk.HistoryApi.csproj index 23ae2f9e721..f1f726a1162 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/commercetools.Sdk.HistoryApi.csproj +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/commercetools.Sdk.HistoryApi.csproj @@ -1,7 +1,7 @@ - netstandard2.1 + net6.0 https://github.com/commercetools/commercetools-dotnet-core-sdk-v2 The Composable Commerce SDK allows developers to work effectively by providing typesafe access to commercetools Composable Commerce in their .NET applications. Copyright commercetools 2021 diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/commercetools.Sdk.ImportApi.csproj b/commercetools.Sdk/commercetools.Sdk.ImportApi/commercetools.Sdk.ImportApi.csproj index 23ae2f9e721..f1f726a1162 100644 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/commercetools.Sdk.ImportApi.csproj +++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/commercetools.Sdk.ImportApi.csproj @@ -1,7 +1,7 @@ - netstandard2.1 + net6.0 https://github.com/commercetools/commercetools-dotnet-core-sdk-v2 The Composable Commerce SDK allows developers to work effectively by providing typesafe access to commercetools Composable Commerce in their .NET applications. Copyright commercetools 2021 diff --git a/commercetools.Sdk/compat/commercetools.Sdk.V2Compat/commercetools.Sdk.V2Compat.csproj b/commercetools.Sdk/compat/commercetools.Sdk.V2Compat/commercetools.Sdk.V2Compat.csproj index 27284c67a1e..e6e3b7c2c51 100644 --- a/commercetools.Sdk/compat/commercetools.Sdk.V2Compat/commercetools.Sdk.V2Compat.csproj +++ b/commercetools.Sdk/compat/commercetools.Sdk.V2Compat/commercetools.Sdk.V2Compat.csproj @@ -1,7 +1,7 @@ - netstandard2.1 + net6.0 0.1.0 https://github.com/commercetools/commercetools-dotnet-core-sdk-v2 false