Reference to event handlers for...
I have written the following code in my VS2008 addinpublic void OnConnection(object application, ext_ConnectMode connectMode, object addInInst, ref Array custom) { _applicationObject =...
View ArticleProgrammatically Import/Export Visual Studio settings
Hi, I'm thinking about making a small "Visual Studio Theme Explorer" utility for quickly changing the font/color settings. The idea is to gather as many of the themes that are constantly being...
View ArticleDirect DTE access: should we try to limit its use?
Hi to all, I started some days ago, for the first time, the exploration of VS extensibility world through packages. On a recent thread I've been suggested for the most part to try to avoid DTE due to...
View ArticleSample to create an MSI to put dlls into GAC in Visual Studio 2012?
Hello,I recently installed Visual Studio 2012. Before that i was using Visual studio 2005. In my old version I had a set up and deployment project which creates an MSI to put the dlls into the GAC. In...
View ArticleHow can I programmatically disable IntelliTrace in VS2012?
Hi,I am authoring a VS Extension that, like IntelliTrace, launches the debugee under a profiler. This means that the user will not be able to use IntelliTrace and my extension in the same debugging...
View ArticleUsage of DTE.ItemsOperation.AddExistingItem
Hello All,We are using visual studio 2010 environment.we have created a VS package to create our own project type with the steps mentiond...
View ArticleAbout shell load key
I have created a isolated shell using Visual studio 2008.I tried to generate a SLK on the Visual Studio Developer Center. After I fill the blanks and click the Generate Key button, IE just told me...
View ArticleDebugging IWizard takes too much time.
Hi,I have an IWizard implementation for my project template. I install my project template by using Vsix. Then, for debugging the IWizard I attach the debugger to a new instance of Visual Studio and...
View ArticleXAML Designer: Retrieve source code index of selected element
Hi all,I am currently working on a VS extension that entails the application of various modifications to a XAML element (such as a Control or a Panel) being selected in XAML Designer. Therefore, I...
View ArticleVSPackage Foreground Event?
I need to determine when the IDE becomes the foreground process from a VSPackage. Right now I have a timer set up that calls into the user32.dll's GetForegroundWindow function after acquiring the main...
View ArticleIVsSolutionBuildManager.FindActiveProjectCfg fails with a thread pool call
Hi AllOur project works well on VS2010 and now we start to port it to VS2012.In our package, we implemented our own language project type and we are quering current configuration via...
View ArticleXML schema validation in XML editor ?
I create new item project contains xml and I put schema file in appropriate folder in VS-schema folder. The intellisense works fine. The problem when I test by making an error, it just put the error in...
View ArticleProgrammatically add snk file to Solution Items using DTE object
Hi Folks,How can I programmatically add snk file to solution items(at solution level) using DTE object.var solution = this.dteObject.Solution as EnvDTE100.Solution4; solution.AddFromFile(snkFilePath,...
View ArticleCustom project templates without assembly Gacing
Hi Folks. I am working on VS 2012 Multi project solution template with Custom wizard(WPF Form) which takes input from user and creates the solution structure. As per the below link :...
View ArticleVS2012 -> Custom editor and Dirty state
Hi,I am implementing a custom editor for an own file extension. For the dirty handling I am implementing the IPersistFileFormat.IsDirty method. This method gets periodically called by VS and updates...
View ArticleShip Code Analysis Ruleset and styleCop part of custom project templates
Hi Folks,I am working on custom multi project solution template.I have my own custom stylecop settings and code analysis rule set.I want to refer them in my project templates and ship it along it.Any...
View ArticleAdd a new item to the Server Explorer windows using VS 2010 Package
Hello, how can I add an item into SE window? I have added a button into SE toolbar that opens a window which should add an item into SE Now I have to add this new item - "tree" with sub-options to the...
View ArticleRestart functionality code in c# -Don't want to use process start
HiI am implementing Visual studio 2012 Set up project. Which will install some Extensions. I should run below command from visual studio command prompt, after I ran our custom installer to view...
View ArticleNew ProvideEditorExtension for opening a PropertyPage
Hi,I have added a Property Page to my VSIX, so that it is right now accessible from Project Properties" via right button menu.The data represented in this PropertyTab/Page is related to the project...
View ArticleVS2012 not recognizing my VSIX packages installed by MSI
Hi,I am putting together a VS Package and given its complexity, I need to use MSI to 'lay down' the VSIX contents.However, when I do this for All Users - as outlined here Visual Studio does not find...
View Article