Skip to content

Commit

Permalink
fix: dotnet version check filter non version output
Browse files Browse the repository at this point in the history
  • Loading branch information
tnc1997 authored Nov 14, 2023
1 parent 6472e31 commit 6796563
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</Exec>

<PropertyGroup>
<DotNetVersion>%(DotNetVersion.Identity)</DotNetVersion>
<DotNetVersion Condition="$([System.Text.RegularExpressions.Regex]::Match(%(Identity),'^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$').Success)">@(DotNetVersion)</DotNetVersion>
</PropertyGroup>
</Target>

Expand Down

0 comments on commit 6796563

Please sign in to comment.