From cfb0a039cac99189390e2567805f74f2873427b5 Mon Sep 17 00:00:00 2001 From: Bela VanderVoort Date: Mon, 11 Nov 2024 10:32:01 -0600 Subject: [PATCH] use 0.29.2 and fix the 0.0.1 warning --- .config/dotnet-tools.json | 2 +- Src/CSharpier.Cli/HasMismatchedCliAndMsBuildVersions.cs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 8cd9d9f72..b439c8ade 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "csharpier": { - "version": "0.29.0", + "version": "0.29.2", "commands": [ "dotnet-csharpier" ] diff --git a/Src/CSharpier.Cli/HasMismatchedCliAndMsBuildVersions.cs b/Src/CSharpier.Cli/HasMismatchedCliAndMsBuildVersions.cs index 3d3c8c54e..c509b7a0d 100644 --- a/Src/CSharpier.Cli/HasMismatchedCliAndMsBuildVersions.cs +++ b/Src/CSharpier.Cli/HasMismatchedCliAndMsBuildVersions.cs @@ -78,6 +78,12 @@ public static bool Check(string directoryName, IFileSystem fileSystem, ILogger l } var versionOfMsBuildPackage = csharpierMsBuildElement.Attribute("Version")?.Value; + if (versionOfMsBuildPackage == "0.0.1") + { + // csharpier uses 0.0.1 as a placeholder in some tests, just ignore it + continue; + } + if (versionOfMsBuildPackage == null) { versionOfMsBuildPackage = GetPackagesVersion(pathToCsProj);