Skip to content

Commit

Permalink
Merge branch 'main' into ref/subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
belav authored Nov 11, 2024
2 parents 9415156 + cfb0a03 commit 0d6c739
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.29.0",
"version": "0.29.2",
"commands": [
"dotnet-csharpier"
]
Expand Down
6 changes: 6 additions & 0 deletions Src/CSharpier.Cli/HasMismatchedCliAndMsBuildVersions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0d6c739

Please sign in to comment.