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);