How to install WebSharper 2.5alpha using VS 2013 RC? - websharper

I wanted to install the WebSharper 2.5.48 alpha into VS 2013. The Nuget package did load but the vsix file failed with an error indicating there was no product it could extend. Inspecting the manifest showed VS 11 as the highest version supported. I hacked the manifest file adding VS 12 Pro as an option. The install then proceeded but subsequently failed with the following errors. Any ideas?
10/5/2013 1:51:11 PM - The following target products have been selected...
10/5/2013 1:51:11 PM - Microsoft Visual Studio Professional 2013 RC
10/5/2013 1:51:11 PM -
10/5/2013 1:51:11 PM - Beginning to install extension to Microsoft Visual Studio Professional 2013 RC...
10/5/2013 1:51:11 PM - Install Error : Microsoft.VisualStudio.ExtensionManager.MissingReferencesException: This extension cannot be installed because the following references are missing:
- NuGet Package Manager
at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.CheckForInstallBlockers(InstallableExtensionImpl extension, IInstalledExtensionList modifiedInstalledExtensionsList, Boolean isNestedExtension, Boolean& olderVersionInstalled)
at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallInternal(InstallableExtensionImpl extension, Boolean perMachine, Boolean isNestedExtension, IDictionary2 extensionsInstalledSoFar, List1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, UInt64 totalBytesToWrite, UInt64& totalBytesWritten)
at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.BeginInstall(IInstallableExtension installableExtension, Boolean perMachine, AsyncOperation asyncOp)
at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallWorker(IInstallableExtension extension, Boolean perMachine, AsyncOperation asyncOp)

Related

Error during setup of VSix of Microsoft Live share extension in VS2017

Microsoft VSIX Installer is not able to update Microsoft Live share extension.
I obtain the following error:
setup instance 1587ffb2 requires a reboot. Reboot the machine and try again.
Reboot of the PC didn't solve the problem.
This is the log file content:
25/08/2020 12:09:16 - Microsoft VSIX Installer
25/08/2020 12:09:16 - -------------------------------------------
25/08/2020 12:09:16 - vsixinstaller.exe version:
25/08/2020 12:09:16 - 16.7.3069
25/08/2020 12:09:16 - -------------------------------------------
25/08/2020 12:09:16 - Command line parameters:
25/08/2020 12:09:16 - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\vsixinstaller.exe,/appidinstallpath:C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe,/skuName:Pro,/skuVersion:15.0.28307.1234,/appidname:Microsoft Visual Studio Professional 2017,/culture:en-US,/noep,C:\TEMP\VSIXhnphjfgh.vsix
25/08/2020 12:09:16 - -------------------------------------------
25/08/2020 12:09:16 - Microsoft VSIX Installer
25/08/2020 12:09:16 - -------------------------------------------
25/08/2020 12:09:17 - Setup instance 1587ffb2 requires a reboot. Reboot the machine and try again.
25/08/2020 12:09:17 - System.InvalidOperationException: Setup instance 1587ffb2 requires a reboot. Reboot the machine and try again.
in VSIXInstaller.SetupExtensions.GetLaunchableInstances(IQuery query)
in VSIXInstaller.SupportedSKUs.EnumerateIsolatedInstalls(Action`1 callback)
in VSIXInstaller.SupportedSKUs.AddInstalledLocationBasedSKUs(IntPtr userToken)
in VSIXInstaller.SupportedSKUs.InitializeSupportedSKUs(IntPtr userToken)
in VSIXInstaller.ExtensionService.InitializeSupportedSKUs(ICommandLineData cmdLineData, IntPtr duplicatedUserToken)
in VSIXInstaller.App.Initialize(Boolean isRepairSupported)
in VSIXInstaller.App.Initialize()
in System.Threading.Tasks.Task`1.InnerInvoke()
in System.Threading.Tasks.Task.Execute()
Any idea?
I have resolved following this suggestions
Visual Studio 2017 Cannot Modify - Restart Required
Credit goes to Matt Cavallari from this
https://developercommunity.visualstudio.com/content/problem/576720/stuck-in-restart-required.html
and Alter Igel

Missing Microsoft.VisualStudio.Component.CoreEditor when installing Visual Studio extension

I am trying to get scrcpy to run in Visual Studio by using this extension and determine if I can extend its features.
Unable to install a VSIX extension for Visual Studio 2019
Installation fails indicating:
I updated the <InstallationTarget> and <Dependency> as per here,
You need to change InstallationTarget to [15.0,17.0) and Prerequisite
to [15.8.27729.1,).
I unzipped the .vsix file, updated the extension.vsixmanifest file to the following:
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,17.0)" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="[4.5,)" />
<Dependency Id="Microsoft.VisualStudio.MPF.15.0" DisplayName="Visual Studio MPF 15.0" Version="[15.0]" />
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.8.27729.1,)" DisplayName="Visual Studio core editor" />
</Prerequisites>
Zipped the directory, renamed to *.vsix, tried to install again.
The installer now recognizes Visual Studio 2019, begins installing but fails, missing Microsoft.VisualStudio.Component.CoreEditor.
12/11/2019 5:25:00 PM - Beginning to install extension to Visual Studio Enterprise 2019 (2)...
12/11/2019 5:25:02 PM - Install Error : Microsoft.VisualStudio.ExtensionManager.MissingReferencesException: This extension cannot be installed because the following references are missing:
-Microsoft.VisualStudio.Component.CoreEditor (Microsoft.VisualStudio.Component.CoreEditor)
at Microsoft.VisualStudio.ExtensionManager.EngineUtilities.EnsureNoMissingReferences(IEnumerable`1 missingRefs)
at Microsoft.VisualStudio.ExtensionManager.PackageInstaller.PrepareEngineInstall(IDependencyGraph dGraph, IDependencyComparisonSeed seed, Component vsixComponent, Boolean isProductComponent, Int32& totalInstallationSteps)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineInstall(InstallableExtensionImpl extension, Boolean installPerMachine, Boolean isPackComponent, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, IProgress`1 progress, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion, IInstalledExtension& newExtension)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallWorker(IInstallableExtension extension, InstallFlags installFlags, AsyncOperation asyncOp)
Suggestions on next steps please?
Missing Microsoft.VisualStudio.Component.CoreEditor when installing
Visual Studio extension
l think the main issue is that you did not modify the version of Microsoft.VisualStudio.Component.CoreEditorto support Visual Studio 2019 in catalog.json file. So when you run the vsix file, it will monitor and then run the file is missing the corresponding VS2019 Microsoft.VisualStudio.Com ponent. CoreEditor.
Solution
Apart from the changes to extension.vsixmanifest file,
please also change "Microsoft.VisualStudio.Component.CoreEditor":"[15.0,16.0)" in catalog.json file to [15.0,17.0).
Hope it could help you.
Update for VS2022 to enable installation you have to modify
extension.vsixmanifest
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,17.0)">
<ProductArchitecture>x86</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
</Installation>
As Perry Qian-MSFT said when using older vsix packages on newer Visual studio you should update [14.0,16.0] to whatever is the current VS version [14.0,xx.x].
Within files
catalog.json
manifest.json
extension.vsixmanifest
As an alternative, you may want to modify the Visual Studio Installation (with Visual Studio Installer) and include the "Visual Studio extension development". Odds are, this toolset will fix the missing requirement issue.
For VS2022 you need to edit the version string to [17.0,18.0) as in:
"Microsoft.VisualStudio.Component.CoreEditor": "[17.0,18.0)"

AWS Toolkit for Visual Studio 2017 : Install Failed

Similar with this question but I cannot find the folder which need to delete, but it seems it is different.
Please somebody help me as I am not able to install AWS Toolkit on my Laptop.
I am trying to install AWS Toolkit on Visual Studio Professional 2017 (15.9.9) from MarKetPlace, After double-click and install, it shows an error message as below
After I click Close button
I got another error message as below:
Logfile indicated as
15/03/2019 4:23:06 PM - Found 'C:\USERS\PLH.TASDC\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\15.0_99AE3896\EXTENSIONS\o0tbv1ll.vvf\extension.vsixmanifest'
15/03/2019 4:23:06 PM - Found 'C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\Microsoft\Windows Kits\10\Desktop SDK\extension.vsixmanifest'
15/03/2019 4:23:06 PM - Found 'C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\Microsoft\Windows Kits\10\SDK ARM Additions\extension.vsixmanifest'
15/03/2019 4:23:06 PM - Found 'C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\Microsoft\Windows Kits\10\Windows Store SDK\extension.vsixmanifest'
**15/03/2019 4:23:06 PM - Skipping 'C:\Users\plh.TASDC\AppData\Local\Microsoft SDKs' as it doesn't exist
15/03/2019 4:23:06 PM - Beginning to install extension to Visual Studio Professional 2017...
15/03/2019 4:23:07 PM - VSIX TaskScheduler: VSIX Auto Updatetask already exists.
15/03/2019 4:23:07 PM - Install Error : System.InvalidOperationException: Cannot find setup engine instance.**
at Microsoft.VisualStudio.ExtensionManager.SetupEngineUtility.GetCurrentSetupInstance(IEngineHost engineHost)
at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.CreateEngine(IEngineHost engineHost, IServiceProvider serviceProvider, InstallFlags installFlags)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineInstall(InstallableExtensionImpl extension, Boolean installPerMachine, Boolean isPackComponent, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, IProgress`1 progress, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion, IInstalledExtension& newExtension)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallWorker(IInstallableExtension extension, InstallFlags installFlags, AsyncOperation asyncOp)
You can see it from the picture.
You need to install this plugin on your computer from the panel.

VSIX Installer - 'Microsoft Analysis Services Projects' fails to install

The latest Microsoft VS2017 VSIX installer cannot install SSAS project template (Microsoft Analysis Services Projects). I can replicate this issue consistently with the installer.
**Note: I already followed the instructions mentioned in similar questions on Stack Overflow including downloading the SSDT installer and running each mini-installer manually from C:\Temp**
I can replicate this issue consistently with the Microsoft offline SSDT installer as well as the SSAS project template installer from Nuget.
They both install the same component named 'Microsoft Analysis Services Projects'
This is the error:
The file 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Business Intelligence Semantic Model\1.0\Microsoft.AnalysisServices.AppLocal.Core.dll' already exists.
I have tried deleting all the files under:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Business Intelligence Semantic Model\1.0\
and rerun the installer. However, the installer creates the file and then a moment later fails to install because the file already exists....
I need to get an installer that works without tripping over itself ;) LOL
I'm using Visual Studio 2017 trying to install Analysis Services project templates.
Here is the log file from the failed installation:
11/27/2018 4:07:16 PM - System restore is not supported on this system
11/27/2018 4:07:16 PM - Failed to create system restore point: 0x80131524
11/27/2018 4:08:20 PM - Package '04a86fc2-dbd5-4222-848e-911638e487fe,version=2.2' failed to install. System.IO.IOException: The file 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Business Intelligence Semantic Model\1.0\Microsoft.AnalysisServices.AppLocal.Core.dll' already exists.
at Microsoft.VisualStudio.Setup.Installer.VsixInstaller.<InstallCoreInternal>g__install|27_1(PackagePart part, Boolean saveExtensionManifest, <>c__DisplayClass27_0& , <>c__DisplayClass27_1& , <>c__DisplayClass27_2& , <>c__DisplayClass27_3& , <>c__DisplayClass27_4& )
at Microsoft.VisualStudio.Setup.Installer.VsixInstaller.InstallCoreInternal(String localPath, String installDir, InstallablePackage pkg)
at Microsoft.VisualStudio.Setup.Installer.FileInstaller.<>c__DisplayClass7_0.<InstallCore>b__0()
at Microsoft.VisualStudio.Setup.Installer.FileInstaller.DoAction(Func`1 action)
at Microsoft.VisualStudio.Setup.Installer.FileInstaller.InstallCore(String localPath, String installDir, InstallablePackage pkg)
at Microsoft.VisualStudio.Setup.Installer.InstallerBase.InstallHelper(InstallData installData)
11/27/2018 4:08:20 PM - Skipping cache of package 'Component.04a86fc2-dbd5-4222-848e-911638e487fe,version=2.2' since the package or a parent package had a vital failure.
11/27/2018 4:08:52 PM - Install Error : Microsoft.VisualStudio.Setup.PackageFailureException: Package '04a86fc2-dbd5-4222-848e-911638e487fe' failed to install
at Microsoft.VisualStudio.Setup.InstallOperation.Run(CancellationToken token)
at Microsoft.VisualStudio.Setup.Engine.RunOperation(InstallOperation installOperation, CancellationToken token, ExecuteAction action, ITelemetryOperation telemetryOperation)
at Microsoft.VisualStudio.Setup.Engine.RunCoreOperation(InstallOperation coreOperation, ExecuteAction action, ITelemetryOperation telemetryOperation, CancellationToken token)
at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineInstall(InstallableExtensionImpl extension, Boolean installPerMachine, Boolean isPackComponent, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, IProgress`1 progress, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion, IInstalledExtension& newExtension)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallWorker(IInstallableExtension extension, InstallFlags installFlags, AsyncOperation asyncOp)
After uninstalling VS2017 and reinstalling it works fine. Hope this helps someone ;)

Cannot install Microsoft Visual Studio 2017 Installer Projects due to invalid certificate

I've been trying to install the Microsoft Visual Studio 2017 Installer Projects for VS 2017 Professional for some time now without success. First, I tried through the Extensions and Updates wizard within VS2017. It downloads correctly, but when I close VS to kick off the install if fails immediately with the following:
I then grabbed the VSIX from the Visual Studio Marketplace and tried to install it via the following command line:
VSIXInstaller InstallerProjects.vsix
This seemed to get me further, but also clued me into the certificates being the issue. Not how it says Digital Signature: Invalid Certificate:
After clicking through to continue the install, it fails and allows me to see the logs:
The logs seem to echo the certificate issue here:
10/17/2017 1:11:21 PM - Signature Details...
10/17/2017 1:11:21 PM - Extension is signed with an invalid certificate
10/17/2017 1:11:21 PM - (PartialChain) : A certificate chain could not be built to a trusted root authority.
10/17/2017 1:11:21 PM - (RevocationStatusUnknown): The revocation function was unable to check revocation for the certificate.
10/17/2017 1:11:21 PM - (OfflineRevocation) : The revocation function was unable to check revocation because the revocation server was offline.
And here:
10/17/2017 1:15:30 PM - Certificate is invalid: InstallerProjects.vsix
10/17/2017 1:15:36 PM - Skipping Install of 'VSInstallerProjects,version=0.8.4' since downloading it failed.
10/17/2017 1:15:36 PM - Skipping cache of package 'VSInstallerProjects,version=0.8.4' since the package or a parent package had a vital failure.
10/17/2017 1:15:36 PM - Skipping cache of package 'Component.VSInstallerProjects,version=0.8.4' since the package or a parent package had a vital failure.
10/17/2017 1:15:47 PM - Install Error : Microsoft.VisualStudio.Setup.PackageFailureException: Package 'VSInstallerProjects' failed to download
at Microsoft.VisualStudio.Setup.InstallOperation.Run(CancellationToken token)
at Microsoft.VisualStudio.Setup.Engine.RunOperation(InstallOperation installOperation, CancellationToken token, ExecuteAction action, ITelemetryOperation telemetryOperation)
at Microsoft.VisualStudio.Setup.Engine.RunCoreOperation(InstallOperation coreOperation, ExecuteAction action, ITelemetryOperation telemetryOperation, CancellationToken token)
at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineInstall(InstallableExtensionImpl extension, Boolean installPerMachine, Boolean isPackComponent, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, IProgress`1 progress, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion, IInstalledExtension& newExtension)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallWorker(IInstallableExtension extension, InstallFlags installFlags, AsyncOperation asyncOp)
Any thoughts on what could be happening?
...because the revocation server was offline
It is not offline, it couldn't be contacted. Before a certificate can be trusted, the installer must first contact the CRL server. It is maintained by the certificate authority, one of the services you pay for when you buy a certificate yourself. The Certificate Revocation List server keeps a list of certificates that turned out to be bogus. That is not happening, a pretty serious problem that long-term can compromise the security of the machine. And fatal when first contacted, the VSIX installer appropriately fails the install.
A TechNet article with troubleshooting hints is here. Do make this a problem for IT staff, they need to know that they are maintaining insecure machines. And are probably responsible for this issue in the first place.
After a lot of effort to resolve this,
we installed this package on an internet-connected computer to see what gets installed.
anyways, please follow the article
https://learn.microsoft.com/en-us/visualstudio/install/install-certificates-for-visual-studio-offline
to install the needed certificates.
after doing so, we realized that one more certificate is missing !
Microsoft Code Signing PCA 2010
after installing everything, export the certificates and install them on the offline computer.
this solution worked out for us.
In windows 10 I believe there is app settings that dictate whether or not you can install apps that are signed by an unknown signature, etc. Have you checked to make sure that these aren't locked down to only allow installs from the Microsoft App Store?
I think this applies:
https://technet.microsoft.com/en-us/library/ee619754%28v=ws.10%29.aspx
I have also seen issues where I have old certificate chains stuck on a specific AD user and was able to resolve them by clearing some of the certs and trying again.
I would also try installing it with any antivirus disabled etc.
This thread seems relevant, I would not use the first suggestion of disabling CRLF revcheck without trying some of the later comments first.
https://social.technet.microsoft.com/Forums/windowsserver/en-US/348a9b8d-8583-488c-9a96-42b892c4ae77/revocation-server-offline?forum=winserversecurity
For problems with Certificate validation for Visual Studio, it is possible that certificates has gone stale.
Here is how you can synchronize your certificates with Windows 10 using Windows Update and certutil. The commands are to be run with Powershell.
mkdir c:\certs #temporary folder where the certificates will be installed/updated
cd c:\certs
certutil.exe -generateSSTFromWU roots.sst
$sstStore = ( Get-ChildItem -Path C:\certs\roots.sst )
$sstStore | Import-Certificate -CertStoreLocation Cert:\LocalMachine\Root
I got a crash installing Votive (Windows Installer XML / Wix Visual Studio Extension) because of certificate did not validate on my computer. The reason was one certificate had gone stale (out of date). The SST file can be opened in MMC if you want to install just a single certificate for example.

Resources