Questions tagged [envdte]

EnvDTE is an assembly-wrapped COM library containing the objects and members for Visual Studio core automation.

The MSDN Documentation for EnvDTE says

EnvDTE is an assembly-wrapped COM library containing the objects and members for Visual Studio core automation.

572 questions
0
votes
1 answer

Get list of AdditionalIncludeDirectories through EnvDTE

How can I get a list of the AdditionalIncludeDirectories from a c++ project ? I am writing an Add-in, in c#, that looks at a C++ solution/ project, and it requires this type of information, as well as the "INCLUDE" directories from Visual Studio…
Thalia
  • 13,637
  • 22
  • 96
  • 190
0
votes
2 answers

Are there differences between EnvDTE or CodeDom when generating Code

I have the requirement to generate and read some CS classes with a DSL, I have adopted one method for reading the CS files using EnvDTE and my colleague has used CodeDom to produce the CS files. Is it just sugar or is there a big difference…
Phill Duffy
  • 2,805
  • 3
  • 33
  • 45
0
votes
1 answer

how to properly GetTypeFromProgID for visual studio 2008

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 of code: t =…
Alex Gordon
  • 57,446
  • 287
  • 670
  • 1,062
0
votes
1 answer

Get Imports of a Project in Addin VS2008

I need get a list "Imports" of project in Addin VS 2008 - .NET 3.5. In VS2010 - .NET 4.0, I use: EnvDTE.Project project = GetProject(); var project1 = new Microsoft.Build.Evaluation.Project(project.FullName); project1.Xml.Imports.ForEach(i => { …
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
0
votes
1 answer

DTE2 _applicationObject reading filename in folder

below is the current codes i have. what it does is basically loop thru project solution project file and detect if it is a C# file. however it can't detect files that are put in a folder , how can i modify it to read a C# file in a solution folder.…
Andy
  • 11
  • 3
0
votes
1 answer

Attaching to Specific Instances of the IDE

when I do: // Get an instance of the currently running Visual Studio IDE. EnvDTE80.DTE2 dte2; dte2 = (EnvDTE80.DTE2)System.Runtime.InteropServices.Marshal. GetActiveObject("VisualStudio.DTE.10.0"); var solution = dte2.Solution; // get…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
0
votes
2 answers

Create visual studio macro in console application

I will like to create visual studio macros in c#. What am I doing now is to create the macros in a class library then execute them from vba. the problem is that I cannot debug the macros because I cannot step into the dll from vba. Anyways I will…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
0
votes
1 answer

DTE: detect autogen code

I have a small Visual studio add-in that walks down active project and insert code to every method. My target project has web service reference and it created a bunch of auto-generated refenrece files that I do not care about. Is there a way to…
user156144
  • 2,215
  • 4
  • 29
  • 40
-1
votes
1 answer

Attached Debugger to all open visual studio instances

How can I programmatically open multiple solutions in Visual Studio and start debugging them simultaneously?
-1
votes
1 answer

Suggest materials about generation visual studio 2015 diagram (cd) xml source

I need some diagrams (cd) with enums and classes, which can be filtered by attributes or so on. It seems that cd file structure is not so complex. I think cd generation could be done automaticaly based on t4 templates. Please suggest materials (or…
Igor
  • 310
  • 1
  • 14
-1
votes
1 answer

How do I open Visual Studio in "Open Web Site Mode" programmatically with C#?

I am developed a Win Forms application with C#. The user browses for .NET Projects on his local drive. He/she selects the .NET Projects to open in Web Site Mode. Functionality (to develop in C#): Is there a possibility, in C# code, to allow the user…
Tassisto
  • 9,877
  • 28
  • 100
  • 157
-1
votes
1 answer

Add programmatically Visual Studio Solution and Projects

I am trying to generate a Visual Studio 2010 solution and add VS 2010 projects from custom templates! My requirement: 1. Generate a VisualStudio Solution 2010, Save it to a folder, add VisualSTudio Project from my own templates (I have 3 different…
-2
votes
1 answer

Can't Find Namespace in VS 2017 SDK Docs?

I have the following in a T4 template, (Snippet is from an old tutorial): <#@ import namespace = "Microsoft.VisualStudio.TextTemplating" #> <#+ Engine _engine = new Engine(); #> I can see that the Engine type is part of the…
FakeSaint
  • 492
  • 5
  • 8
-2
votes
1 answer

how to get a function from a c# with envdte in PowerShell?

I want to find a function in a c# file and make some changes in the body with powershell. I've read this page and I didn't understand.
Mehrdad
  • 39
  • 9
-3
votes
1 answer

Unable to convert project as VSProject

We have created solution like the one below and added the default project after creating solution. Please refer code below Type visualStudioType = Type.GetTypeFromProgID("VisualStudio.DTE.12.0", true); DTE env =…
Dheepa
  • 1
  • 2
1 2 3
38
39