From 7a028f74b2434d3008038808c6ee9340e295259b Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Wed, 11 Sep 2024 14:40:30 -0400 Subject: [PATCH] Making minimal api stuff work in net6 --- src/Ardalis.Result.AspNetCore/MinimalApiResultExtensions.cs | 2 +- .../MinimalApiResultExtensionsCoverage.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ardalis.Result.AspNetCore/MinimalApiResultExtensions.cs b/src/Ardalis.Result.AspNetCore/MinimalApiResultExtensions.cs index cd97e70..da3f558 100644 --- a/src/Ardalis.Result.AspNetCore/MinimalApiResultExtensions.cs +++ b/src/Ardalis.Result.AspNetCore/MinimalApiResultExtensions.cs @@ -5,7 +5,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -#if NET7_0_OR_GREATER +#if NET6_0_OR_GREATER namespace Ardalis.Result.AspNetCore; public static partial class ResultExtensions diff --git a/tests/Ardalis.Result.AspNetCore.UnitTests/MinimalApiResultExtensionsCoverage.cs b/tests/Ardalis.Result.AspNetCore.UnitTests/MinimalApiResultExtensionsCoverage.cs index 6e37ef3..d36038c 100644 --- a/tests/Ardalis.Result.AspNetCore.UnitTests/MinimalApiResultExtensionsCoverage.cs +++ b/tests/Ardalis.Result.AspNetCore.UnitTests/MinimalApiResultExtensionsCoverage.cs @@ -1,4 +1,4 @@ -#if NET7_0_OR_GREATER +#if NET6_0_OR_GREATER using Ardalis.Result.AspNetCore; using Xunit;