提交 ec6df265 编写于 作者: J Jared Parsons

Fix the publish step for VSIX packages

上级 0b7e2ae6
......@@ -4,6 +4,6 @@
we run after every signed build uploads all shipped extensions in the VSIX folder to myget.org
-->
<extensions>
<extension id="Roslyn.Deployment.Full" />
<extension id="Roslyn.Deployment.Full.Next" />
<extension id="Roslyn.Deployment.Full" path="Vsix\Roslyn.Deployment.Full" />
<extension id="Roslyn.Deployment.Full.Next" path="Vsix\Roslyn.Deployment.Full.Next" />
</extensions>
......@@ -98,6 +98,11 @@ try
{
$nupkg = $package.id + "." + $package.version + ".nupkg"
Write-Host " Uploading '$nupkg' to '$sourceUrl'"
if (-not (test-path $nupkg))
{
Write-Error "NuGet $nupkg does not exist"
$exitCode = 6
}
if (-not $test)
{
......@@ -124,11 +129,11 @@ try
pushd $vsixPath
foreach ($extension in $extensions.extensions.extension)
{
$vsix = $extension.id + ".vsix"
$vsix = join-path $extension.path ($extension.id + ".vsix")
if (-not (test-path $vsix))
{
Write-Error "VSIX $vsix does not exist"
$extiCode = 5
$exitCode = 6
}
$requestUrl = "https://dotnet.myget.org/F/roslyn/vsix/upload"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册