diff --git a/dotnet/test/ProjectHealthTest/PackageVersionsConsistency.cs b/dotnet/test/ProjectHealthTest/PackageVersionsConsistency.cs index ad395603d..29be3c9ad 100644 --- a/dotnet/test/ProjectHealthTest/PackageVersionsConsistency.cs +++ b/dotnet/test/ProjectHealthTest/PackageVersionsConsistency.cs @@ -19,7 +19,7 @@ public class PackageVersionTest private const string PACKAGE_VERSION_ATTRIBUTE_NAME = "Version"; private const string TARGET_FRAMEWORK = "Project/PropertyGroup/TargetFramework"; private const string TARGET_FRAMEWORKS = "Project/PropertyGroup/TargetFrameworks"; - private const string NET6 = "net6.0"; + private const string NET8 = "net8.0"; private const string NET_FRAMEWORK = "net462"; private static HashSet ExcludedFromTransitiveDependenciesControl = new HashSet {"runtime"}; private static HashSet ProjectTemporaryExcludedFromDependenciesControl = new HashSet { "GeneXus.Deploy.AzureFunctions.Handlers.csproj", "AzureFunctionsTest.csproj" }; @@ -35,7 +35,7 @@ public class PackageVersionTest [Fact] public void TestPackageVersionConsistencyAcrossNETProjectsAndTransitives() { - TestPackageVersionConsistencyAcrossProjects(NET6, true); + TestPackageVersionConsistencyAcrossProjects(NET8, true); } /// /// Tests that all referenced packages have the same version by doing: @@ -47,7 +47,7 @@ public void TestPackageVersionConsistencyAcrossNETProjectsAndTransitives() [Fact] public void TestPackageVersionConsistencyAcrossNETProjects() { - TestPackageVersionConsistencyAcrossProjects(NET6, false); + TestPackageVersionConsistencyAcrossProjects(NET8, false); } [Fact] public void TestPackageVersionConsistencyAcrossNETFrameworkProjects() @@ -100,9 +100,9 @@ private void TestPackageVersionConsistencyAcrossProjects(string targetFramework, { XmlAttribute condition = packageNode.ParentNode.Attributes["Condition"]; if (condition != null) { - if (targetFramework == NET6 && condition.Value.Contains($"=='{NET_FRAMEWORK}'", StringComparison.OrdinalIgnoreCase)) + if (targetFramework == NET8 && condition.Value.Contains($"=='{NET_FRAMEWORK}'", StringComparison.OrdinalIgnoreCase)) continue; - else if (targetFramework == NET_FRAMEWORK && condition.Value.Contains($"=='{NET6}'", StringComparison.OrdinalIgnoreCase)) + else if (targetFramework == NET_FRAMEWORK && condition.Value.Contains($"=='{NET8}'", StringComparison.OrdinalIgnoreCase)) { continue; }