diff --git a/build/Targets/Settings.props b/build/Targets/Settings.props index a702d4dd7508d0b750deae80ce422e0dfa77ee06..64a23bbab2d25fe79069003327338ca55e1e72a2 100644 --- a/build/Targets/Settings.props +++ b/build/Targets/Settings.props @@ -41,7 +41,7 @@ $(NuGetPackageRoot)\RoslynTools.ReferenceAssemblies\$(RoslynToolsReferenceAssembliesVersion)\tools\Framework 15.0 - $(VisualStudioVersion.Substring(0, $(VisualStudioVersion.IndexOf('.')))) + $(VisualStudioVersion.Substring($([System.Convert]::ToInt32(0)), $(VisualStudioVersion.IndexOf('.')))) $(VisualStudioReferenceMajorVersion).0.0.0 Dev$(VisualStudioReferenceMajorVersion) $(VisualStudioVersion) diff --git a/build/Targets/Versions.props b/build/Targets/Versions.props index 53e90e3c8d5da4d384b86b5c9e25d65b18f855fc..0c59a60ea265ce6597b18847b7d1a274e96c8197 100644 --- a/build/Targets/Versions.props +++ b/build/Targets/Versions.props @@ -28,7 +28,7 @@ can still be deployed to VS and override the version that is globally installed. --> 00065535.0 - BuildNumber should have two parts (in the form of 'x.y') + BuildNumber should have two parts (in the form of 'x.y') - $([MSBuild]::Subtract($(BuildNumber.Split('.').GetValue($([System.Convert]::ToInt32(0))).Substring(3).Trim()), 8800)) - $(BuildNumber.Split('.').GetValue($([System.Convert]::ToInt32(1))).PadLeft(2,'0')) + $([MSBuild]::Subtract($([System.Convert]::ToInt32($(BuildNumber.Split($([System.Convert]::ToString(`.`).ToCharArray())).GetValue($([System.Convert]::ToInt32(0))).Substring($([System.Convert]::ToInt32(3))).Trim())), $([System.Convert]::ToInt32(8800)))) + $(BuildNumber.Split($([System.Convert]::ToString(`.`).ToCharArray())).GetValue($([System.Convert]::ToInt32(1))).PadLeft($([System.Convert]::ToInt32(2)), $([System.Convert]::ToChar(`0`)))) $(RoslynFileVersionBase)