$([MSBuild]::Add($(MicrosoftNETCoreAppPackageVersion.IndexOf('.')), 1)) $(MicrosoftNETCoreAppPackageVersion.IndexOf('.', $(MicrosoftNETCoreAppPatchSeparatorIndex))) $(MicrosoftNETCoreAppPackageVersion.Substring(0, $(MicrosoftNETCoreAppPatchSeparatorIndex))) $(MicrosoftNETCoreAppPackageVersion.IndexOf('-')) $(MicrosoftNETCoreAppPackageVersion) $(MicrosoftNETCoreAppPackageVersion.Substring(0, $(MicrosoftNETCoreAppVersionPreReleaseSeparator))) $([MSBuild]::Add($(AspNetCoreVersion.IndexOf('.')), 1)) $(AspNetCoreVersion.IndexOf('.', $(AspNetCoreVersionPatchSeparatorIndex))) $(AspNetCoreVersion.Substring(0, $(AspNetCoreVersionPatchSeparatorIndex))) $(AspNetCoreVersion.IndexOf('-')) $(AspNetCoreVersion) $(AspNetCoreVersion.Substring(0, $(AspNetCoreVersionPreReleaseSeparator)))