vspackage

How do you get the current solution directory from a VSPackage?

纵然是瞬间 提交于 2019-11-28 08:06:58
Following is how you would get the current solution directory from an add-in: _applicationObject = (DTE2)application; // retrieved from OnConnection method string solutionDir = System.IO.Path.GetDirectoryName(_applicationObject.Solution.FullName); How would you do this via a VSPackage? I'm migrating a visual studio add-in to a VSPackage as I'm intending to add some user controls that require a deeper integration with the IDE. I found some good references on the relative merits of add-ins vs integration packages such as: http://nayyeri.net/visual-studio-addin-vs-integration-package-part-1 And

Visual Studio 2012 error: Package 'Visual C++ package' failed to load

☆樱花仙子☆ 提交于 2019-11-28 04:51:31
When I'm trying to open any solutions that worked fine before in Visual Studio 2012, the error "Package 'Visual C++ package' failed to load" keeps showing up. And the solution can't be opened. I'm not sure what's wrong with my Visual Studio 2012 installation. user1964417 click the TOOLS--->VISUAL STUDIO COMMAND PROMPT to open the command window input the command "devenv /Setup" open the visual studio 2012 again, it will works. Source: http://happyivyli.blogspot.com/2013/07/visual-c-package-failed-to-load.html Yurker Running command prompt from inside Visual Studio. For easier access, you can

VSIX - Cannot load file or assembly of a referenced dll

北城以北 提交于 2019-11-27 19:08:35
My question is very similar to this one , only that the answer and work-around are not working for me. Also I am in Visual Studio 2012. I have a VSPackage which is referencing another project, which is dependent on other dlls. Everytime time I run my package in debug I get an exception that the other dlls cannot be found. They are in the output directory, and they are signed. I tried referencing them directly by the VSPackage project to no avail. Thoughts? Mikhail Shcherbakov This problem exists because Visual Studio is not looking for assemblies in a folder of your extension if your extension

Append item to Add menu of solution- or project node in Solution Explorer

╄→гoц情女王★ 提交于 2019-11-27 19:05:29
问题 How can I add a sub menu for the Add menu item when right click on a visual studio solution explorer? I have to add a single sub menu item which will be displayed n right clicking the visual studio solution and move to the Add option in that menu. I am trying using .vsct (vs package). Please help me with valuable suggestions 回答1: Of course, there are similiar questions, but this seems to be a special case... In general, you need to know the menu´s command- and package id that you want to

Visual Studio 2012 error: Package 'Visual C++ package' failed to load

孤者浪人 提交于 2019-11-27 05:31:44
问题 When I'm trying to open any solutions that worked fine before in Visual Studio 2012, the error "Package 'Visual C++ package' failed to load" keeps showing up. And the solution can't be opened. I'm not sure what's wrong with my Visual Studio 2012 installation. 回答1: click the TOOLS--->VISUAL STUDIO COMMAND PROMPT to open the command window input the command "devenv /Setup" open the visual studio 2012 again, it will works. Source: http://happyivyli.blogspot.com/2013/07/visual-c-package-failed-to

How do you get the current solution directory from a VSPackage?

僤鯓⒐⒋嵵緔 提交于 2019-11-27 02:04:44
问题 Following is how you would get the current solution directory from an add-in: _applicationObject = (DTE2)application; // retrieved from OnConnection method string solutionDir = System.IO.Path.GetDirectoryName(_applicationObject.Solution.FullName); How would you do this via a VSPackage? I'm migrating a visual studio add-in to a VSPackage as I'm intending to add some user controls that require a deeper integration with the IDE. I found some good references on the relative merits of add-ins vs

VSIX - Cannot load file or assembly of a referenced dll

戏子无情 提交于 2019-11-26 22:46:35
问题 My question is very similar to this one, only that the answer and work-around are not working for me. Also I am in Visual Studio 2012. I have a VSPackage which is referencing another project, which is dependent on other dlls. Everytime time I run my package in debug I get an exception that the other dlls cannot be found. They are in the output directory, and they are signed. I tried referencing them directly by the VSPackage project to no avail. Thoughts? 回答1: This problem exists because