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
2 answers

Using C#, how do I "Include" a file into a project?

Thanks for looking. I have a small program that generates a new .NET solution based on some project information and a database connection. As part of this process, I automatically generate the ADO.NET entity data model/.edmx file using edmgen2. This…
Matt Cashatt
  • 23,490
  • 28
  • 78
  • 111
0
votes
1 answer

How to get the full filename from ProjectItems?

My code, which has been working right on another computer fails at FullPath and FileName points. The error is: 'object' does not contain a definition for 'FullPath' and no extension method 'FullPath' accepting a first argument of type 'object'…
0
votes
0 answers

What is EnvDTE.vsCMTypeRef.vsCMTypeRefCodeType for?

EnvDTE.vsCMTypeRef enumeration contains kinds of data type function returns. Alas, MSDN documentation contains too short descriptions. Does anyone know what vsCMTypeRefCodeType is for?
Pavel Voronin
  • 13,503
  • 7
  • 71
  • 137
0
votes
1 answer

Capture method, class, assembly name from right click inside Visual Studio

I'd like to write a Visual Studio Extension that captures the following information when a user right clicks a portion of code Detect if a user has clicked a method and if so get the method name Retrieve the full class name of the method ie…
user1054637
  • 695
  • 11
  • 28
0
votes
1 answer

Obtain code window information based on cursor position using visual studio extension

Is there a way to obtain code window information based on cursor position using visual studio extension. To be more clear: If the cursor placed at line 10 in code window. Is there a way to obtain Line Number using visual studio extensions Code…
shishi
  • 107
  • 1
  • 2
  • 8
0
votes
2 answers

How to cast ComObject to ENVDTE.Project for Unmodeled projects?

My question is very similar to this one: How to cast ComObject to ENVDTE.Project? I want to process the Project items selected in Visual Studio -> Solution Explorer. If project is loaded the code works fine but I have troubles for unloaded projects…
Slappy
  • 5,250
  • 1
  • 23
  • 29
0
votes
1 answer

EnvDTE VS 2012 Create a physical folder in an existing folder

How can you create a folder in a solution project inside an already existing physical folder with EnvDTE? project - folder - create this folder
elector
  • 1,327
  • 4
  • 26
  • 43
0
votes
1 answer

How do I provide multiple vsFindOptions in TextDocument.ReplacePattern?

I hope you guys might help me become smarter. I am making a simple VS2012 Addin. The Addin is a more extensive search/replace functionality specific to a task regularly performed at our company. I have a Tools menu option added in Visual Studio…
Marcus
  • 8,230
  • 11
  • 61
  • 88
0
votes
1 answer

How to register mouse hover event over Visual Studio menu item?

I'm writing VSIX plugin. I've created an icon on Visual Studio standard toolbar. My custom command is attached to it: var mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService; var commandId = new CommandID(GuidList.guidSthCmdSet,…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
0
votes
2 answers

EnvDTE VS 2012 ProjectItems.AddFolder

I am recreating an AddIn project that I had in VS 2010 and a basic function like adding a folder to the project is not working. Giving me: The kind 'vsProjectItemKindPhysicalFolder' passed to ProjectItems.AddFolder is invalid. Does anyone know how…
elector
  • 1,327
  • 4
  • 26
  • 43
0
votes
1 answer

How to create a WebApi project using DTE?

I'm trying to create a WebApi Project in a powershell script using DTE. When I try to pass the folder name of the project template, I get the following error. PS> $projTplPath =…
a_arias
  • 3,036
  • 2
  • 21
  • 20
0
votes
2 answers

How to get processes to which debugger was attached to during last debugging session

I'm trying to write Visual Studio package which allows attach to processes chosen in previous debugging session. Basically, I know how to attach to processes: var dte = GetGlobalService(typeof(DTE)) as DTE2; if (dte != null) { IList
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
0
votes
1 answer

Regarding VS2010 Multi solution project template

In VS2010, I have created a custom multi-solution project template and implemented IWizard to replace custom parameters in the Project. I would like to know if in the Wizard I give an option to select an additional project that needs to be added to…
Soni
  • 23
  • 4
0
votes
2 answers

Obtaining Solution Name in ToolWindow of VSpackage

I'm new to Visual Studio Extensibility Framework to use VSPackage Extension. I want to obtain a DTE Object inside the user-control which is called inside MyToolWindow class. I tried all the below possibilities: 1.EnvDTE80.DTE2 dte2; dte2 =…
shishi
  • 107
  • 1
  • 2
  • 8
0
votes
1 answer

Visual Studio crashes when removing projects from C++ solution through EnvDTE AddIn

I have written an Add-in that modifies a (C++, most likely, but could be dot net containing c++) solution. The Add-in seems to function successfully. Occasionally , after saving, after even building successfully the solution modified with the…
Thalia
  • 13,637
  • 22
  • 96
  • 190