codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.91k stars 360 forks source link

Issue installing from PowerShell script #468

Open dialupwizard opened 7 years ago

dialupwizard commented 7 years ago

Environment

Description

When installing from a PowerShell script, the script will run, and finish without error, but CodeMaid will not be installed.

Steps to recreate

  1. Tools --> Export Extensions
  2. Save extensions .CMD somewhere accessible.
  3. Tools --> Extensions and Updates --> Select CodeMaid from the list --> Uninstall, and close window.
  4. Exit Visual Studio.
  5. Optional: Edit the .CMD to remove the non-CodeMaid installer packages to save time. Save file.
  6. Run the extensions .CMD to re-install CodeMaid.
  7. Open Visual Studio.

Current behavior

CodeMaid does not get installed. It does not show up in the top menu bar, nor in the list of extensions when you browse to Tools --> Extensions and Updates. My own uninformed theory is that the popup (to select which version of Visual Studio to install to) you receive when installing manually is what's halting the operation. Most other install packages do not have this, and upon visiting their links manually, the install completes without human interaction. Example: CodeRush:

https://visualstudiogallery.msdn.microsoft.com/8a8390ae-1f71-4659-9d8d-5dd56fd8a72e/file/163212/25/DevExpress.CodeRush.Roslyn-16.2.6.vsix?SRC=VSIDE^&UPDATE=TRUE

Expected behavior

It should install normally, and behave as though it was installed manually.

codecadwallader commented 7 years ago

Thanks for reporting the issue. I don't see Tools->Export Extensions as a native Visual Studio feature (using Community edition). Does that come from another extension or ..?

If you theory is correct, then it seems like the workflow above would fail for any extension that can install to more than one version of Visual Studio. There's quite a few in the marketplace that target multiple versions of Visual Studio, here's an example if you want to try: https://marketplace.visualstudio.com/items?itemName=JaredParMSFT.VsVim