diff --git a/Directory.Build.props b/Directory.Build.props index 1d8f755b342c..919dd11f3337 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -47,9 +47,16 @@ + + + $(NoWarn);NU5104 + <_ProjectReferencesWithVersions Condition="'%(ProjectVersion)' != ''"> - [%(ProjectVersion), $([MSBuild]::Add($([System.Text.RegularExpressions.Regex]::Match('%(ProjectVersion)', '^\d+').Value), 1))) + [%(ProjectVersion), $([MSBuild]::Add($([System.Text.RegularExpressions.Regex]::Match('%(ProjectVersion)', '^\d+').Value), 1))-0)