aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Error installing Microsoft.VisualStudio.BlazorExtension VSIX

Open dlr1 opened this issue 8 years ago • 9 comments

I have VS2017 community preview and when I tried to install Microsoft.VisualStudio.BlazorExtension.VSIX,. I get the following even after installing I installed Razor Language services VSIX Install Error : Microsoft.VisualStudio.ExtensionManager.MissingReferencesException: This extension cannot be installed because the following references are missing: -Microsoft.VisualStudio.RazorExtension (Razor Language Services) at Microsoft.VisualStudio.ExtensionManager.EngineUtilities.EnsureNoMissingReferences(IEnumerable1 missingRefs) at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.ExtensionRequiresAdditionalOperationForInstall(InstallableExtensionImpl extension, IInstalledExtensionList modifiedInstalledExtensionsList, Boolean isNestedExtension, InstallFlags flags, Boolean& performExtensionUpdate) at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary2 extensionsInstalledSoFar, List1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress1 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)

dlr1 avatar Mar 23 '18 00:03 dlr1

Do you have VS 2015 15.7-preview1 with the Web Workload?

If that's the case could you please provide the log file (should be linked from the error dialog).

I get the following even after installing I installed Razor Language services VSIX

This should be included by the Web Workload, you don't need to do any extra steps to install the Razor tools

rynowak avatar Mar 23 '18 00:03 rynowak

yes, I have installed web workload. Here is the log file. VSIXInstaller_0ed3da71-55a0-4572-a1c0-1babcdcec624.log

dlr1 avatar Mar 23 '18 00:03 dlr1

The logs definitely don't show the Razor extension as present. Can you check whether or not the Razor extension is present at:

C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\PREVIEW\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\Microsoft\RazorLanguageServices\

Just to triple-check, I'm talking about the "ASP.NET and Web Development" workload, seen here: image

You can see this from clicking Modify on the Visual Studio Installer

rynowak avatar Mar 23 '18 01:03 rynowak

I don't see the Razor extension in the directory you mentioned. Here is what I have installed in VS capture

Here is what I found everything regarding Razor in Common folder razor extn

dlr1 avatar Mar 23 '18 02:03 dlr1

If you went to the VS gallery and installed this I think you will have to repair. That extension is for an ancient version of VS and will break things.

You should definitely see the Razor extension at C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\PREVIEW\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\Microsoft\RazorLanguageServices\

rynowak avatar Mar 23 '18 02:03 rynowak

It says This extension is already installed to all applicable products. Let me repair and see

dlr1 avatar Mar 23 '18 02:03 dlr1

Yes, and to clarify, after repair you should be able to install the Blazor extension. You SHOULD NOT need to install anything extra for Razor.

rynowak avatar Mar 23 '18 02:03 rynowak

Thankyou. After Repairing VS. install of Blazor extension worked.

dlr1 avatar Mar 23 '18 10:03 dlr1

Great!

rynowak avatar Mar 23 '18 14:03 rynowak