2016-05-24 88 views
1

如何從https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell下載脫機擴展?Visual Studio代碼的脫機擴展

我嘗試這樣的模板

https://${ publisher }.gallery.vsassets.io/_apis/public/gallery/publisher/${ publisher }/extension/${ extension name }/${ version }/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage 

但這個鏈接https://microsoft.gallery.vsassets.io/_apis/public/gallery/publisher/microsoft/extension/PowerShell/0.6.1/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage返回錯誤。

{"$id":"1","innerException":null,"message":"The requested extension doesn't exist.","typeName":"Microsoft.VisualStudio.Services.Gallery.WebApi.ExtensionDoesNotExistException, Microsoft.VisualStudio.Services.Gallery.WebApi","typeKey":"ExtensionDoesNotExistException","errorCode":0,"eventId":3000} 

回答

1

從鏈接https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell可以提取發佈者和擴展名。在頁面上查找最新版本。

publisher = ms-vscode 
extension name = PowerShell 
version = 0.6.1 

工作環節https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/ms-vscode/extension/PowerShell/0.6.1/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage

重命名Microsoft.VisualStudio.Services.VSIXPackageMicrosoft.VisualStudio.Services.VSIX

拖放到VSCore。 VSCore安裝離線這個擴展。

相關問題