diff --git a/packaging/nuget/tools/init.ps1 b/packaging/nuget/tools/init.ps1 index 6d68f066915..51c53f6bae0 100644 --- a/packaging/nuget/tools/init.ps1 +++ b/packaging/nuget/tools/init.ps1 @@ -18,7 +18,7 @@ Write-Host "" $nserviceBusKeyPath = "HKCU:SOFTWARE\NServiceBus" $machinePreparedKey = "MachinePrepared" $machinePrepared = $false -$versionParts = $package.Version.Split('.') +$versionParts = $package.Version.ToString().Split('.') $nservicebusVersion = $versionParts[0] if($versionParts.Length -gt 1) {