Skip to content

Commit

Permalink
use 0.29.2 and fix the 0.0.1 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Nov 11, 2024
1 parent 91bbafb commit cfb0a03
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 cfb0a03

Please sign in to comment.