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

EnvDTE: How to find if a property is marked as virtual

I am putting together a template for creating buddy classes for classes generated by the Entity Framework -> Reverse Engineer Code First context menu item. I really don't want to include the navigation properties that are marked as virtual. So how,…
awrigley
  • 13,481
  • 10
  • 83
  • 129
0
votes
1 answer

How to avoid In DTE, when setting ProjectItem.Name Visual Studio asks confirmation

I have some code that sets the "Name" property to change the extension to some file ProjectItem pi = //... /* snip */ pi.Name = "file.with_new_extension"; As soon as the assignation happens, the code pauses, because in the UI Visual Studio is…
0
votes
2 answers

Running over ENVDTE Solution Projects

I'm writing a C++ Project template in VS 2010 using the Custom Wizard technique. In the default.js, the file which holds the behind JavaScript code, I want to take the current generated project, and locate it in an existing VS solution, in a…
user1835297
  • 1,059
  • 2
  • 12
  • 24
0
votes
1 answer

Same COMExceptions thrown by Visual Studio for different actions?

Background: Within my VSPackage I have process.Attach() instruction. I also have UAC (User Account Control Settings) set to default level: Use cases: When I run sample application under admin privileges: and then attach to such process using my…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
0
votes
1 answer

How to get a list of available TeamProjects through EnvDTE?

I was able to list the workspaces but i didn't find code examples on how to have information about the Source Control Team Projects. I've looked through MSDN Documentation here but didn't succeed to get a List of Team Projects.
0
votes
1 answer

Java Script while using ENVDTE - Add new project to existing solution and locate it in a specific sub-folder

I'm writing a Visual Studio extension of a new c++ project template on Visual Studio 2010. I 'm doing it by the method of .vsz template. I expanded the default.js code according to my needs. iN THE OnFinish(selProj, selObj) function I copy an…
user1835297
  • 1,059
  • 2
  • 12
  • 24
0
votes
1 answer

Catching DTE event in Javascript

I am trying to catch Visual Studio Extension events in browser javascript, DTE is available through window.external: window.external.DTE.Events.SolutionEvents.Opened = ... Access is ok up to "Events", but a SolutionEvents seems not to be found.…
peterchen
  • 40,917
  • 20
  • 104
  • 186
0
votes
1 answer

From within a Visual Studio extension, how can I determine which Visual Studio updates are installed?

I would like to determine whether VS2013 Update 2 is installed from within a VSPackage. What's the easiest way to accomplish this?
Omer Raviv
  • 11,409
  • 5
  • 43
  • 82
0
votes
1 answer

Get properties from Properties window

I'm creating a Visual Studio add-in and when I select data connection node in Server explorer window (or data table or data field) is there a way to get property values from Properties window shown in visual studio using EnvDTE? I need to get these…
0
votes
1 answer

Optional Parameters from CodeParameter

I am using a T4 to create my interface, however the only issue I am having is if my methods have optional parameters, I am not adding them to the interface. I'm using EnvDTE to get the information and I have the CodeParameter, but do not see a way…
jaekie
  • 2,283
  • 4
  • 30
  • 52
0
votes
2 answers

WindowState change event in Visual Studio extension

I am looking for an event that will notify me when the main window is minimized and restored in a Visual Studio extension package. I've looked at the DTE2.Events, as well as the IVsWindowFrame and IVsWindowFrameNotify interfaces but don't see…
dmck
  • 7,801
  • 7
  • 43
  • 79
0
votes
3 answers

Use CodeFunction or CodeFunction2 to add parameter for extension methods which require this keyword

I am using Visual Studio Code Automation to generate some custom code and classes. The following function is meant to generate an extension method private void AddToPocoExtensionMethod(CodeClass2 entityAdapterClass, string name, string…
Kartik Sehgal
  • 143
  • 2
  • 8
0
votes
1 answer

error while trying to create DTE2 Interface object with ruby

I am trying to use ruby win32ole lib and DTE2 Interface to control visual studio 8 \ tried this require 'win32ole' ide = WIN32OLE.new('EnvDTE80.DTE2') and received this error unknown OLE server: EnvDTE80.DTE2 what am I doing wrong, can this…
Dan
  • 397
  • 1
  • 3
  • 9
0
votes
1 answer

Add multiple projects programmatically into Visual Studio solution?

How to add multiple projects programmatically into a Visual Studio solution? If I am using solution.addfromtemplate(template1); solution.addfromtemplate(template2); Then it overwrites project with template1?
Sagar Gupta
  • 131
  • 2
  • 8
0
votes
0 answers

How to disable intellisense tooltip in SQL Management Studio?

I am building and addin that will provide richer info that SQL Management Studio tooltip. My tooltip is shown but always behind intellisense's tooltip. Is there a way to disable Intellisenses tooltips in SQL 2012 and 2008? I've tried with Forcing…