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

VSIX DTE - Create class marked as partial

Problem: Creating a tool similar to the EF model generator, where You can enter tables/columns/relations and it will generate model classes. It is plugin to Visual Studio, running this in VSIX with DTE (Development Tools Environment). I have…
Tatranskymedved
  • 4,194
  • 3
  • 21
  • 47
0
votes
2 answers

Get path of broken reference within Visual Studio Addin

I'm working on a visual studio extension package. I need to be able to retrieve the reference path of a broken reference (a reference that the Referenced File Has Been removed) I couldn't find a way to do so with EnvDTE project. when I get the…
0
votes
1 answer

How to get properties of a baseclass in T4 using the envDTE namespace?

I've created this question explaining the steps I took as a reference since my search took very long not knowing where and how to find this solution. I'm creating a T4 template in my business Logic project, for creating some classes based on an…
Luuk Krijnen
  • 1,180
  • 3
  • 14
  • 37
0
votes
1 answer

Start new instance of a project using a button in form

I have a solution that contains 32 projects, one of which is a Windows form and the others are console applications. In the Windows form I have a combo box that its items are the names of the console application projects with a button. Now, my…
Ebrahim
  • 5
  • 1
  • 6
0
votes
1 answer

IFileExtensionRegistryService.GetExtensionsForContentType returns empty array for "CSharp" content type

I'm writing a Visual Studio extension that includes a nested/recursive search and replace. I want my search controls to match the Visual Studio "Find in Files" dialog (with some extra options). I'm trying to implement the "Look at these files…
0
votes
3 answers

How to read the source code of active document using DTE/DTE2 in visual studio project

I am trying to generate an assembly file (Dll) from current active document in the editor. Ex. I have 3 C# source files - file1.cs, file2.cs, file3.cs and if I currently opened the file2.cs in the editor. I need to build an assembly Dll only for a…
0
votes
1 answer

EnvDTE Project separate C# Project from solution project

I know it sounds weird but I want to achieve the following: I´m writing on a VSIX extension that reads all my files that are included in a normal project or in the solution itself. To access solution files or solution folders Microsoft organizes…
WhiteIntel
  • 697
  • 1
  • 9
  • 24
0
votes
2 answers

Clear Error List window Pragmatically for Visual Studio

I am writing my custom parser and after validation i am adding information to Error list of Visual studio using "error task" and "error service Provider". It's adding my custom error to error list window. but when i recompile again it adds up the…
shekhar Kumar
  • 409
  • 4
  • 13
0
votes
1 answer

Get CodeElement from cursor position in c++ header file in Visual Studio using EnvDTE

Requirement: Get the CodeElement (Function/Class etc) from the current cursor position in C++ source and Header files in Visual Studio using Automation Model EnvDTE. Problem: When the cursor is in a header file and I iterate the code elements from…
Hemant
  • 767
  • 6
  • 20
0
votes
1 answer

How to set linker options for VC project using EnvDTE

I'm using EnvDTE to modify the linker and compiler settings/options of a VC project in a Visual Studio Add-in. But I can't seem to find where I can access these options from the DTE instance. What I have so far is // I successfully can open the…
rashmatash
  • 1,699
  • 13
  • 23
0
votes
2 answers

ProjectItems.AddFromFile Adds File to Pending Changes

As part of my nuget package, I have an install.ps1 powershell script that I am using to add a reference file to the project (a couple text documents) from the package's tools folder. Everything is working great, except that when the files are…
Nathan A
  • 11,059
  • 4
  • 47
  • 63
0
votes
0 answers

Is it possible to use to create Visual Studio solutions from an Azure-hosted web application?

I am writing an application that scaffolds the creation of other Visual Studio solutions. My application is intended to be run on an Azure web app instance and uses C# as the primary middle-tier language. Previously, I have been able to scaffold or…
Matt Cashatt
  • 23,490
  • 28
  • 78
  • 111
0
votes
0 answers

Get reference to csproj.user in visual studio ENVDTE80

I'm want to making changes to the a project in the solution explorer but I want this changes to be different from user to user, form what I've learned the best way to do this is to change project.csproj.user but I have no idea how to reference…
Bobby Tables
  • 2,953
  • 7
  • 29
  • 53
0
votes
1 answer

VS2015 Extension programmatically access Advanced Save Options

Is there a possibility to access the "Advanced Save Options" Settings (File->Advanced Save Options) programmatically from inside a Visual Studio Extension? Clarification: We want to change the Encoding with which the file is saved and optionally the…
0
votes
1 answer

accessing EnvDTE80 members without type casting

I am trying to access the Output Window and ErrorList member of ToolWindows of an EnvDTE.DTE object. It seems that these members exist in EnvDTE80.DTE2 only. Is there a way for me to access them without type casting back to DTE2 type?
CaTx
  • 1,421
  • 4
  • 21
  • 42