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

Parse solution using DTE Visual Basic

I have to parse my solution to list all files that it is using. I have created this: Imports EnvDTE Imports EnvDTE80 Imports Microsoft.VisualBasic Imports System.Collections Public Class C Implements VisualCommanderExt.ICommand Sub Run(DTE…
0
votes
1 answer

How to copy Microsoft dlls into my NSIS installer

I am making an installer using NSIS and my gameplan was to Build the startup project Copy the Files created from the bin/(x86) or bin/x64 folder and embed them in the installer The problem is that some files do not get included. From what I have…
user111
  • 397
  • 3
  • 13
0
votes
0 answers

error when adding Custome C# template, VS2010, new computer

I have a custom template that I built in VS2010. A new user who was able to successfully open this template previously, can not longer. She did reimaged and VS2010 reinstalled. Is there anything specific needed to add a new item based off a…
0
votes
1 answer

Encryption on oracle 8i

I need some kind of DTE in oracle 8i? Does oracle8i comes with something built in? Is that even posible? no matter if is a 3rd party solution. Thanks.
Fraga
  • 1,361
  • 2
  • 15
  • 47
0
votes
0 answers

OleMenuCommand not triggered on files under a website project

I'm implementing a Microsoft.VisualStudio.Shell.Package that adds a command in the context menu, when a Solution Explorer item is clicked. The code that adds the command looks something like this: _oleMenuCommandService = GetService(typeof…
seldary
  • 6,186
  • 4
  • 40
  • 55
0
votes
1 answer

Difference observed b/w NuGet Package Manager Console and plain PowerShell console

In NuGet's Package Manager Console within Visual Studio (I am using 2010 Ultimate), the following code works and successfully activates the Toolbox window: $dte.windows.Item("{B1E99781-AB81-11D0-B683-00AA00A3EE26}").activate() But the same code…
Sabuncu
  • 5,095
  • 5
  • 55
  • 89
0
votes
1 answer

How to select the debugging mode automating Visual Studio?

I have the following code: Process process = instance.Debugger.LocalProcesses.OfType().Single(p => p.ProcessID == processId); process.Attach(); When I run this the debugger attaches using native code and I want to specify managed code.…
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
0
votes
0 answers

NuGet: Find and delete code using Powershell / uninstall.ps1

I have a few NuGet packages that I've put together, with one of them being a common project referenced by all the others. This common project inserts a configuration class into the App_Start folder, and a method on this class is then invoked by…
awj
  • 7,482
  • 10
  • 66
  • 120
0
votes
1 answer

'The type x exists in both dll' SAME dll + cast to CORRECT object type returns null?

Some info: I'm using .Net 4.5, and trying to extend Visual Studio 2013. This line of code works fine, I am getting an object object vce = dte2.GetObject("Microsoft.VisualStudio.TeamFoundation.VersionControl.VersionControlExt"); The type is,…
itsho
  • 4,640
  • 3
  • 46
  • 68
0
votes
1 answer

DTE build event: notification of succeeded but not built

Q: How do I determine that a project succeeded but did not built (no changes)? I am aware that with a Visual Studio Package that I can tap into build events. _dte.Events.BuildEvents.OnBuild* += **; * is the rest of the event handler name and ** is…
0
votes
2 answers

How to apply name for OleMenuCommand

In my package I register commands in the following way: var mcs = _provider.GetService(typeof (IMenuCommandService)) as OleMenuCommandService; var commandId= new CommandID(myCommandGroup, myCommandId); _command = new OleMenuCommand(MyAction,…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
0
votes
1 answer

How do I find and open a file in a Visual Studio 2005 add-in?

I'm making an add-in with Visual Studio 2005 C# to help easily toggle between source and header files, as well as script files that all follow a similar naming structure. However, the directory structure has all of the files in different places,…
Charles Randall
  • 6,920
  • 12
  • 33
  • 38
0
votes
1 answer

Select offset/range within a line in .cs Document

I am writing some unit test method to check some functionality after user selects a particular characters within the .cs file/. So for this, I have created dte object & set its Active Document to my abc.cs file & want to programmatically select a…
Deepthi
  • 41
  • 1
  • 7
0
votes
1 answer

Addin: How-to Do Merge programmatically

I use 2012 and VS 2010. I have Addin VS. I want do Merge of a ítem (sql file). I use the following code, but I get COMException exception: Command "File.TfsContextExplorerMerge" is not available My source code mehtod: public static void…
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
0
votes
1 answer

Detecting outlining sections within EnvDTE.Document

I've written an extension to comb through code files line by line to detect certain patterns. The problem I'm seeing is that lines within collapsed sections are skipped when using TextSelection.LineDown() or similar. I'm aware that…
Jake
  • 733
  • 8
  • 23