envdte Questions

1

Solved

Is it possible to modify a solution, and use envdte tools, from a command-line project ? I have an add-in that modifies a solution. But... the changes are required for over a hundred projects... S...
Waistband asked 8/6, 2013 at 0:50

2

Solved

I'm scripting inside VisualStudio and am trying to get the contents of the currently ActiveDocument. This is my current solution: var visualStudio = new API_VisualStudio_2010(); var vsDTE = visu...
Uncritical asked 15/5, 2012 at 17:59

2

Solved

I'd like to get notified whenever the caret position changed in the active text view. The only thing EnvDTE seems to offer is the LineChanged event, which of-course does not get raised when moving ...
Goldschmidt asked 15/5, 2013 at 6:3

1

Solved

I am looking for an event/interface to use that notifies me once all projects have loaded in a solution after opening a solution. I have implemented OnAfterOpenSolution in IVsSolutionEvents2 inter...

3

Solved

I'm writing a nuget package for a windows service, the idea is that my colleagues can create a windows service install the package and all of the default logging settings, entlib libraries and othe...
Ataraxia asked 31/5, 2012 at 23:23

1

Solved

I create a new solution and add some projects to it via the Solution2.AddFromTemplate. Now before I can build my solution successfully, I need to add a project reference from one of the projects to...
Pronator asked 10/5, 2013 at 18:4

1

Solved

I'd like to get a list of all public methods in my project that are decorated using MyAttribute using T4/EnvDTE. I know this can be done with reflection, but I don't want to load the assembly and ...
Suicide asked 24/4, 2013 at 16:32

2

how do I check if a project is up-to-date? I'm basically trying to programmatically build each project in a list but only if they have changed. So does anyone know of a way (using EnvDTE maybe) t...
Panier asked 5/11, 2009 at 21:9

2

Solved

I am having a problem creating a way to list all the classes in my project using EnvDTE for templating interfaces using T4 (based on naming conventions), and none of the documentation out there see...
Auxin asked 15/1, 2013 at 20:35

2

Solved

I used the "Add-In for Visual Studio" wizard to create a new Addin project and now, I'm trying to add some event handlers: public void OnConnection(object application, ext_ConnectMode connectMode,...
Catkin asked 4/1, 2013 at 22:16

1

Solved

I have listed all the projects in my solution, using EnvDTE, but I found a bug in my code: I can't get the projects that are Unloaded. I found a way to skip the Unloaded projects: if (string.Comp...
Buttons asked 7/12, 2012 at 20:21

1

Solved

I want to programmatically add a function (a TestMethod) to an existing C#-file. After some googling I have found the library EnvDTE and CodeModel.AddFunction-Method, but I can't find a good exampl...
Directrix asked 14/11, 2012 at 10:21

2

Solved

Until now, I have been successfully using EnvDTE to manage Visual Studio Toolbox. There are customized DLLs to deal with different Visual Studio versions: EnvDTE.dll - common VS automation (proba...
Domenicadomenico asked 25/8, 2012 at 6:10

1

Solved

My organization has extremely restrictive and rigid rules our code must comply with in order to obtain certification and accreditation. For the last decade or so we have developed nearly a hundred ...
Vagrancy asked 19/10, 2012 at 12:27

1

Solved

I am following the instructions here: http://msdn.microsoft.com/en-us/library/ms228772(v=vs.80).aspx for .net 3.5 visual studio 2008 to fix this issue: call was rejected by callee for this line...
Porpoise asked 18/10, 2012 at 19:41

2

Solved

I'm currently trying to iterate over all of my projects (sharepoint) to get all feature guids into an file. there i want to prefix them with the projects name. My problem is DTE.Solution.Item and D...
Cranmer asked 18/10, 2012 at 10:5

1

Solved

I'm writing a T4 template in Visual Studio 2010 and am generating code based on existing classes in a project. The code I need to generate depends on the generic type arguments of the interface tha...
Breastfeed asked 30/9, 2012 at 15:37

5

Solved

Summary: We need to duplicate the behaviour of the Add Reference dialog, using DTE, when you add a specific DLL (it adds a Hint path entry to the reference in the CSProj file). **Note: There is a...
Mukund asked 13/7, 2011 at 15:20

1

Solved

I'm writing my own Visual Studio 2010 Extension that should help me navigating a rather large solution. I already have a dialog based VS Extension that shows me a class name and a function name dep...

1

I am using DTE in Visual Studio 2010 to examine C# classes and automatically generate code. When I encounter a class that implements a generic interface, I want to access the type constraint as a ...
Arnaud asked 13/6, 2012 at 23:54

1

Solved

I wanted to know how to use the template for an Empty Visual C++ project to programmatically create a new solution with this empty project. The code (C#) I have right now is: string VSProgID = "Vi...

1

Solved

Under Solution->Properties, I can set multiple start-up projects: I know that I can get the list of projects marked with "Start" (by using EnvDTE: solution.SolutionBuild.StartupProjects), but how...
Rectus asked 11/1, 2012 at 10:24

1

Solved

I've developed an IntelliSense-like Dialog, which should appear on a specific key-stroke. (My project is a VS-Package, my dialog will be opened as a command) The problem is, I don't know how to dis...
Uncanny asked 23/12, 2011 at 9:29

1

Solved

I have a managed syntax highlighter using the new VS extensibility API's and it gives me an ITextBuffer, which is great. In another part of my extension I am getting a DTE object and attaching to ...
Silverfish asked 25/8, 2011 at 3:33

2

I'm trying to create a VS2010 solution and add a project from a stand-alone app (not an add-in). I can create an instance of VS2010, but I'm not able to determine how to create a project properly.....
Setter asked 26/7, 2011 at 16:8

© 2022 - 2024 — McMap. All rights reserved.