envdte Questions
8
Is there a way to get all types used inside C# method?
For example,
public int foo(string str)
{
Bar bar = new Bar();
string x = "test";
TEST t = bar.GetTEST();
}
would return: Bar, string a...
Farfetched asked 14/4, 2011 at 18:26
1
It's been a while since .NET Standard is introduced by Microsoft. Earlier, if I wanted to obtain information about Project, Solution and other related objects (e.g solution path, projects in a solu...
Jest asked 28/1, 2018 at 9:2
5
Solved
Problem
When I close Visual Studio 2015 by pressing the close button on the IDE, the devenv.exe process keeps running in background between 3-5 minutes, after that time, it closes automatically,...
Mairemaise asked 16/8, 2015 at 13:4
3
Solved
I am creating a project automation tool in Visual Studio 2013 where I have my own project template and I am trying to add it to an existing solution programatically.I am using the following code in...
Weigel asked 8/12, 2014 at 11:4
3
Solved
I'm developing a custom tool for the Visual Studio. The tool is assigned to the file, at the time when the file changed I receive name of this file and should generate some changes in the project. ...
Unhesitating asked 17/10, 2013 at 12:54
3
Solved
I'm using EnvDTE to do some code generation within my T4 Templates.
I have the code working correctly in Visual Studio 2010, however I've just started using Visual Studio 2012 and now when I try ...
April asked 29/8, 2012 at 10:36
3
Solved
I am trying to use PowerShell to automate the process of creating an n-tier solution based on a seed (think EDMX file or DbContext) configuration. I want to be able to open a skeleton solution, get...
Suprematism asked 4/3, 2013 at 20:45
2
The <PlatformToolset/> property is not exposed via project property sheets. It's unfortunate, as I have to run through several projects spread over several solutions to change this value if y...
Anticipate asked 15/5, 2015 at 16:12
4
I've been following MSDN's Hello World guide to developing Visual Studio extensions (this article specifically deals with creating one as a Visual Studio toolbar command).
I am trying to list all ...
Hardener asked 24/8, 2016 at 14:25
1
Solved
We have a C# T4 file named GenerateProxies.tt which calls several command-line codegen utilities. Using the System.Diagnostics Process class, we redirect the standard output to the T4 output text f...
Bengali asked 6/12, 2016 at 16:44
2
Solved
We're using the Visual Studio CodeModel and have some problems to get the generic parameters of a CodeType. How to obtain them without parsing the FullName ourselves?
It is hinted (although not ma...
2
Solved
I'm working on a VS Extension that needs to be aware of which class member the text-cursor is currently located in (methods, properties, etc). It also needs an awareness of the parents (e.g. class,...
Barling asked 27/7, 2017 at 19:8
2
Solved
I have seen two posts so far that concern my question. I am wondering how can one cast an EnvDTE.Project into a VCProject.
In this post, fun4jimmy's answer does that exactly in the following line...
Zebra asked 29/4, 2015 at 18:11
2
I'm writing a debugger extension VSPackage in which I want to execute a statement in the debugged process when a breakpoint is hit. In my extension code I have this:
void Initialize()
{
// ...sta...
Enchant asked 14/2, 2015 at 10:56
4
I use VS2010 and Addin, using DTE.ExecuteCommand and commands like Build, Build.Cancel, Build.RebuildSolution, etc.
You can get a command with DTE.Commands.Item("xxx") and guess if it is available...
Ferric asked 13/12, 2012 at 7:58
1
It is necessary to move the project from the Solution to SolutionFolder. I am trying to remove the project from the solution and add it back into the folder using EnvDTE SolutionFolder.AddFromFile(...
Lungki asked 15/12, 2016 at 7:56
3
Solved
I'm trying to build a NuGet package that adds our company's code analysis dictionary automatically and updatable.
The rule set is added in the content folder and now I want to use the install.ps1 ...
Crete asked 28/11, 2013 at 13:17
2
There are two related questions about resetting VisualStudio keyboard scheme and importing VisualStudio settings. However, this doesn't seem to play nice all together.
I have two settings files co...
Immanent asked 19/8, 2016 at 16:17
2
Solved
In the process of writing a T4 text template I ran into an issue I'm struggling to get by. I need to know the type of the enum I'm processing.
I have enums that are based on byte and ushort. I nee...
4
I have a visual studio add-in project where I must iterate through the current project's items, utilizing the absolute (or relative) path to those files.
The item.Document.FullName works, but onl...
Embow asked 19/7, 2011 at 21:14
2
Is there a way to import/export Visual Studio settings via a Visual Studio Extension, i.e., via the Visual Studio API?
I want to export some specific settings to a local file, just like the VS Imp...
Aspersion asked 4/4, 2016 at 14:36
8
Is there a macro that does it? Which DTE objects to use?
Censer asked 1/10, 2008 at 22:20
1
I want to add a menuitem to the right-click=>Add menu in visual studio 2012 solution explorer. When click the custom item I can add a project with my template.
I developed a Visual Studio Add-In to...
Flaxen asked 15/5, 2013 at 13:26
2
Solved
How can I get a list of installed VisualStudio extensions? Somehow through DTE? Just the names would be fair enough.
Numerate asked 28/1, 2016 at 20:51
1
There doesn't seem to be any event in EnvDTE's DebuggerEvents that notifies the consumer when a breakpoint is deleted. I've also looked at Visual Studio SDK and registered an IDebugEventCallback2, ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.