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

Visual Studio 2008 Publish fails, can't load dll (envdte.dll)

I started to get this error after I had installed and uninstalled various MS SDKs Error: Publish failed with the following error: Unable to cast COM object of type 'System.__ComObject' to interface type 'EnvDTE.Project'. This operation failed…
Mark Lakata
  • 19,989
  • 5
  • 106
  • 123
0
votes
2 answers

Inter-addin communication

I have been able to programmatically create a VS2010 AddIn Tool Window from the F# Interactive, itself a Tool Window, using CreateToolWindow2. The Assembly and Class arguments I pass to CreateToolWindow2 correspond to a Panel (WinForms) which makes…
Stephen Swensen
  • 22,107
  • 9
  • 81
  • 136
0
votes
1 answer

How to get expanded path from EnvDTE / VCProjectEngine

I am trying to write a tool to create a zip file containing all PDBs files from one Visual Studio 2010 solution. I can get every PDB filepath in the solution with the following code. However, the property value contains Visual Studio macro like…
PeeWee2201
  • 1,464
  • 2
  • 15
  • 23
0
votes
0 answers

Nest folder in Solution Explorer

I was looking for the ability to nest a folder in solution explorer directly by code, and I found the function AddFromDirectory to achieve the result (I don't want to deal too much with xml parser). The main problem is related at the fact that I can…
Zenek
  • 60
  • 2
  • 12
0
votes
0 answers

Access Visual Studio DTE members specified in DTE2 interface in IronPython

Using IronPython 3.4.0 I can get the visual studio's DTE object using: import System dteClassType = System.Type.GetTypeFromProgID("VisualStudio.DTE.16.0") dte = System.Activator.CreateInstance(dteClassType) In theory this object's type should…
omarL2
  • 1
  • 1
0
votes
0 answers

Determine whether there are any breakpoints in code loaded in Visual Studio?

Is there any way to determine whether any breakpoints have been set in the source code loaded in Visual Studio? I am doing Visual Studio extension development and would like to be able to know if a breakpoint has been set in the code.
mikevil14rin
  • 145
  • 1
  • 7
0
votes
1 answer

Adding NuGet packages from nuget.org in a custom VS item template

I am trying to add NuGet packages automatically when adding a custom item template in Visual Studio. The packages need to be referenced from nuget.org, deploying them locally in the ItemTemplate-Zipfiles is unfortunately no option. What I have tried…
0
votes
0 answers

Show all Types of all references in project from an IWizard

I was trying to create a Template that takes in a Type to substitute it's name in a template. The template looks like this using System; using System.Collections.Generic; using System.Text; namespace $rootnamespace$ { public class…
0
votes
0 answers

Is the VSProject4.Refresh() method only for VB and C# projects?

Is the VSProject4.Refresh() method in Visual Studio SDK only for VB and C# projects ? ...or is it supposed to work for ALL types of projects - including C and C++ projects ? Below is a sample C# code that invokes this method: public static void…
0
votes
0 answers

Visual Studio: How to detect any changes on project properties and trigger event from extension when user click apply

I'm trying to write VS extension for VC++ projects, I want to detect any changes on project properties (Additional include directories, additional using directories etc.) when user change and click apply on project properties page. I don't want to…
0
votes
0 answers

Change the Debug properties of ASP.Net Core project programmatically by EnvDTE

I'm having a Visual Studio Extension, that change the start Up properties to Debugging a class library. The Extension let the Developer change the Commandline arguments by clicking so he don't have to code all Arguments by hand. But for normal Class…
TorstenB
  • 21
  • 3
0
votes
1 answer

How ot get Visual studio extension version from the extension code

I would like to display the visual studio extension version in a UI, so that when a user has an issue and makes a screenshot the version will be "automatically" available. Is there any interface to query for it? I don't know if it matters, but it is…
alternator
  • 23
  • 1
  • 8
0
votes
0 answers

EnvDTE.DTE.Documents throwing everytime on first access, fine after

I'm trying to store the opened documents from the Visual Studio environment. The code works for some solutions but I have 1 solution where it always throws an exception. I have tried to wait for some kind of initialization but nothing changes over…
Shay
  • 183
  • 2
  • 13
0
votes
1 answer

Create new file in EnvDTE.SolutionFolder without specifying full path

The EnvDTE80.SolutionFolder interface (https://learn.microsoft.com/en-us/dotnet/api/envdte80.solutionfolder) has an AddFromFile() method, but requires the absolute full path of an existing file. Unfortunately the solution folder object itself…
TWT
  • 2,511
  • 1
  • 23
  • 37
0
votes
1 answer

Why EnvDTE.ProjectItem.FileCodeModel is Null on Dynamics 365 in VS 2017 project

I am writing code to get the CodeElements from .xpp file in D365 project, but FileCodeModel value is always null foreach (Project project in applicationObject.Solution.Projects) { var projectItems =…