From 48d96fcbedec348dd7fdd84d77526ffcf9d0388a Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Wed, 19 Apr 2017 19:16:35 -0500 Subject: [PATCH] Fix MissingMethodException thrown (internally) when loading projects --- build/Targets/Settings.props | 2 +- build/Targets/Versions.props | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/Targets/Settings.props b/build/Targets/Settings.props index a702d4dd750..64a23bbab2d 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 53e90e3c8d5..0c59a60ea26 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) -- GitLab