locked
VSpackage different behaviours RRS feed

  • Question

  • I developed a VSPackage, for some reason when i'm running in debug mode everything works just fine.
    I now tried to instal the VSIX to my VS2010, and for some reason the Background worker inside my package was not launched.

    Any reasons why this kind of thing may be happen?

    Sunday, May 11, 2014 5:39 PM

Answers

  • Hi,

    Thank you for posting here!

    >>I now tried to instal the VSIX to my VS2010, and for some reason the Background worker inside my package was not launched.

    Could you please clarify the "Background worker" you mentioned? Do the other functions of this package work?

    What version of visual studio you use to create your VSPackage? And how you create the VSIX project?

    According to your description, your VSPackage can run ok. I think there may something wrong with your VSIX. Please check the following information.

    To package an extension by using a VSIX project

    1. Build the projects that make up your extension.

    2. Create a VSIX project by using the VSIX Project template.

      Source.extension.vsixmanifest opens in Manifest Designer.

    3. On the Assets tab, choose the New button.

      The Add New Asset dialog box appears.

    4. In the Type list, choose the type of extension to add.

    5. To add an extension or content element that's included in the current solution (for example, an item template or a compiled assembly), perform the following steps:

      1. In the Source list, choose A project in current solution.

      2. In the Project list, choose the name of the extension.

      3. In the Embed in this folder box, enter the name of a folder in which to embed the asset, and then choose the OK button.

    6. To add an extension or content element that isn't included in the current solution, perform the following steps:

      1. In the Source list box, choose File on filesystem.

      2. In the Path field, enter the full path to the compiled or compressed extension file, or use the Browse button to browse to the file.

      3. In the Embed in this folder box, enter the name of a folder in which to embed the asset, and then choose the OK button.

    7. If you want your package to include additional extensions, add them in the same manner.

    8. Build the solution.

    I suggest you create the VSIX project in the current solution, in other words, your VSPackage and the VSIX project are in the same solution.

    Let me know if they help or anything else I can provide.

    Best regards,

    Sunny

    • Marked as answer by Anna Cc Sunday, May 18, 2014 4:43 PM
    Tuesday, May 13, 2014 5:46 AM

All replies

  • Hi YogevNisim,

    I think this thread is specific to Visual Studio Integrate forum. So I am helping you to move this thread directly into that forum. Thank you for your understanding.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, May 12, 2014 8:03 AM
  • Hi,

    Thank you for posting here!

    >>I now tried to instal the VSIX to my VS2010, and for some reason the Background worker inside my package was not launched.

    Could you please clarify the "Background worker" you mentioned? Do the other functions of this package work?

    What version of visual studio you use to create your VSPackage? And how you create the VSIX project?

    According to your description, your VSPackage can run ok. I think there may something wrong with your VSIX. Please check the following information.

    To package an extension by using a VSIX project

    1. Build the projects that make up your extension.

    2. Create a VSIX project by using the VSIX Project template.

      Source.extension.vsixmanifest opens in Manifest Designer.

    3. On the Assets tab, choose the New button.

      The Add New Asset dialog box appears.

    4. In the Type list, choose the type of extension to add.

    5. To add an extension or content element that's included in the current solution (for example, an item template or a compiled assembly), perform the following steps:

      1. In the Source list, choose A project in current solution.

      2. In the Project list, choose the name of the extension.

      3. In the Embed in this folder box, enter the name of a folder in which to embed the asset, and then choose the OK button.

    6. To add an extension or content element that isn't included in the current solution, perform the following steps:

      1. In the Source list box, choose File on filesystem.

      2. In the Path field, enter the full path to the compiled or compressed extension file, or use the Browse button to browse to the file.

      3. In the Embed in this folder box, enter the name of a folder in which to embed the asset, and then choose the OK button.

    7. If you want your package to include additional extensions, add them in the same manner.

    8. Build the solution.

    I suggest you create the VSIX project in the current solution, in other words, your VSPackage and the VSIX project are in the same solution.

    Let me know if they help or anything else I can provide.

    Best regards,

    Sunny

    • Marked as answer by Anna Cc Sunday, May 18, 2014 4:43 PM
    Tuesday, May 13, 2014 5:46 AM