none
Extensibility Menu Item not working after upgrading from 2015 to 2017

    Question

  • I have a working VSIX Package that adds a Menu Item under the tools menu in VS2015, I ported to Extension to VS2017 and the menu Item does not appear. I don't even know where to start trying to find out what might be wrong. I don't get any errors.
    • Edited by Paul M Cohen Sunday, March 12, 2017 8:50 AM spelling error
    Sunday, March 12, 2017 8:50 AM

All replies

  • Hi, 

    I assume that you are using VS 2017 and the Microsoft.VSSDK.BuildTools 15.0 Nuget package to create your VS extension targeting VS 2015 and VS 2017. It is possible to use VS 2015, but it's better to use VS 2017.

    Review the steps to migrate on my post It’s time to change the VSIX manifest of your extension to v3 for Visual Studio 2017 compatibility

    And try the following: 

    - Double click the .vsix file to install it directly, not using the Visual Studio project to deploy and debug.

    - Does VS 2017 appear in the list of target VS versions? It should. If not, it means that your source.extension.vsixmanifest hasn't been upgraded to target version 15.0. Notice that you need also to add a prerequisite for the Visual Studio Core Editor at least. See the post above.

    - Does the menu item appear? If so, it means that your .vsix is correct and what is failing is the VS project deploying it to debug.

    - Go to Extensions and updates and uninstall it.

    - To fix the problem of VS 2017 not deploying to the experimental instance to debug, go to the project properties, Debug tab, and set the correct location of the devenv.exe of VS 2017, for example:

    C:\Program Files (x86)\Microsoft Visual Studio\2017\<edition>\Common7\IDE\devenv.exe

    instead of the devenv.exe of VS 2015 that you may have:

    C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe


    My portal and blog about VSX: http://www.visualstudioextensibility.com<br/> Twitter: https://twitter.com/VSExtensibility<br/> MZ-Tools productivity extension for Visual Studio: https://www.mztools.com


    Sunday, March 12, 2017 6:08 PM
  • Yes I am using VSSD.BuildTools 15.0.26201

    Target = Community [15.] and Professional/Enterprise [15.0,16.0]

    Debug Start external program =C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe.

    And the Code Fixes and Analyzers (mostly) work.

    It is only the Menu Item that don't show up. The first line below is what you recommend, the second is what I have for Prerequisite.

        <Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0.25904.2,16.0)" DisplayName="Visual Studio core editor" />
        <Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />


    • Edited by Paul M Cohen Monday, March 13, 2017 1:54 AM formating
    Monday, March 13, 2017 1:52 AM