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

Getting custom MSBuild property of a DTE VCConfiguration project

The Microsoft.VisualStudio.VCProjectEngine.VCConfiguration interface is rather poor and does not expose all the properties of a project. How do I get a custom MSBuild property via the DTE interfaces?
Ilya
  • 5,533
  • 2
  • 29
  • 57
0
votes
2 answers

Auto-indent existing file using EnvDTE

I'm using T4 Text templates for automatic code generation, but must of this code is not properly formatted, specially because of the TT files. i would like to use EnvDTE to apply the smartformat, but all the examples that i've found needs to have…
Flavio CF Oliveira
  • 5,235
  • 13
  • 40
  • 63
0
votes
1 answer

Creating VS 2010 IDE instance throwing COM Exception

I have created a console app, which creates hidden instance of VS 2010 IDE & passes this instance as a parameter to an add-in which I use to call within the console app. ~concept of creating hidden instance, got from below link: Open a VS 2005…
Deepthi
  • 41
  • 1
  • 7
0
votes
1 answer

Visual Studio package - EnvDTE Solution.SolutionBuild locks DLL when Build is called

I am using (DTE) GetService(typeof (DTE)) to get information about the currently opened solution in my Visual Studio package. When the code builds the solution (see code below) it locks the DLL file, so even after the MenuItemCallback method has…
0
votes
1 answer

How to implement Submit and Cancel buttons in IWizard implementation

How do we implement the OK/Submit button if the user chose his preferences and he is ready to start working on his new project? Furthermore - Cancel button - gracefully exit from the wizard and return to New Project dialog box without creating the…
0
votes
1 answer

Add a shared project reference via Automation EnvDTE

I need to add a Shared Project reference to a project. I tryed some methods from ProjectItems interface, but it didn't work. I did it because the shared project reference is listed in the Project.ProjectItems enumerable with a name "<…
Thiago Romam
  • 439
  • 4
  • 14
0
votes
1 answer

How can you tell if a parameter is standard, output, or reference?

I found this great resource that explains how to make the determination between standard, output, or reference parameters using .NET reflection. Now, I want to do the same thing using EnvDTE. There doesn't seem to be any obvious way in the…
NightOwl888
  • 55,572
  • 24
  • 139
  • 212
0
votes
1 answer

Visual Studio EnvDTE - Open project folder in file explorer

When you right click a project in visual studio, there is an option "Open folder in File Explorer". How can the same be done from the automation model (EnvDTE) of visual studio? I thought I could use Project.FullName but that didn't work for our…
tcb
  • 4,408
  • 5
  • 34
  • 51
0
votes
1 answer

Accessing VS' ITextTemplatingEngineHost in Preprocessed T4 Template in a VS Extension

I've tried to follow this example: http://msdn.microsoft.com/en-us/library/gg586947.aspx And trying to work out how to refactor the following existing code so we can use VS' ITextTemplatingEngineHost. template.DatabaseObjectNameWithSchema =…
Paul Coghill
  • 667
  • 6
  • 27
0
votes
1 answer

Detect when Visual Studio Document Window is Closed

I have built a VSPackage that projects text from an IVsInvisibleEditor. This IVsInvisibledEditor corresponds to a file that the user has opened within Visual Studio and exists within a Document Window. When the user closes this Document Window, it…
JoshVarty
  • 9,066
  • 4
  • 52
  • 80
0
votes
1 answer

How to fix "Project Unavailable" error in DTE

I have a Visual Studio Template Wizard where eventually I need to conditionally (based in user selections) change the .NET target with: // project is of type EnvDTE.Project project.Properties.Item("TargetFrameworkMoniker").Value…
0
votes
3 answers

Process each line separately in selected text

I'm trying to select a set of lines and process each line separately in a text document using c# language. How can i get separate lines to process? I tried these codes and got struck. Can anyone please help me with this? EnvDTE.DTE dte =…
0
votes
1 answer

How to restart debug session programmatically in Visual Studio 2013 EXPRESS

I want to restart Debugging session programmatically in Visual Studio "2013 Express". I saw some examples that can do it with EnvDTE but they are only supporting VS2010 and previous versions. I have tried following code with different version of…
0
votes
1 answer

How to build projects in solution using DTE?

I have three projects in solution and trying to build all the projects in solution by below code. But it builds startup project alone. var solutionBuilder =…
gramcha
  • 692
  • 9
  • 16
0
votes
1 answer

How do you walk the solution hierarchy?

I've been working on this about 14 hours now. It is totally driving me crazy. Without referencing any custom dlls I want to walk $dte.Solution.Projects for either projects or projectitems to check if $SourceControl = get-interface…
Maslow
  • 18,464
  • 20
  • 106
  • 193