envdte Questions
1
Solved
I have created a library of T4 scaffolding templates that i've used successfully in previous versions of visual studio, but now having upgraded my projects to VS 2015 I get the following error when...
Heti asked 8/8, 2015 at 7:11
2
I am trying to use powershell within the Package Manager Console to script the removal of a project from a solution and I am having a surprisingly hard time.
I can easily add a project by
PM> ...
Founder asked 21/7, 2013 at 5:2
2
I have coded something like the following:
[Attrib(typeof(MyCustomType))]
public class TargetType
{
// .....
}
I want to use EnvDTE to get a reference to the CodeElement referenced by the typeo...
Thimerosal asked 1/3, 2012 at 17:15
1
Solved
In some extension we implement the IVsUpdateSolutionEvents2
and IVsSolutionBuildManager2 used for registering caller with the AdviseUpdateSolutionEvents
For example, this called before any build a...
Bradleigh asked 19/11, 2014 at 14:0
5
Solved
I want to get a reference to the current solution, using the DTE2 object with C# in Visual Studio 2010.
I first tried the following code:
var dte = Marshal.GetActiveObject("VisualStudio.DTE.10.0"...
Dav asked 18/1, 2011 at 13:6
1
Solved
I am working on a Visual Studio 2010 extension and I want to add an attribute to an MSBuild Item, as follows:
<EmbeddedResource Include="SomeFile.xml">
<FooAttribute>%(Filename)%(Ext...
Synovitis asked 24/10, 2010 at 12:39
1
Solved
Is it somehow possible to change the project properties in debug section programmatically by EnvDTE classes? I know how to get the DTE instance and work with some of the settings, but I am blind or...
Existence asked 29/7, 2014 at 16:24
2
Solved
I'm writing a VSIX package to allow the user to bulk-edit the OutputPath property of all the active configurations of projects in the currently loaded solution (see the incredibly annoying step #4 ...
Cyclic asked 29/11, 2013 at 14:42
4
Solved
I want to add functionality when the user creates project \ solution in Visual Studio 2010\2012. i.e. I need to perform C# code when a new project is created.
I googled a lot but didn't find any ...
Airstrip asked 23/4, 2014 at 11:56
5
Solved
I am coding up some design time code. I want to use this snippet: (Found here)
var dte = (EnvDTE.DTE) GetService(typeof(EnvDTE.DTE));
if (dte != null)
{
var solution = dte.Solution;
if (solution...
Lussi asked 2/6, 2012 at 17:48
2
Solved
I get a list of projects using following:
var solution = (IVsSolution)Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(IVsSolution));
Refer following link for more details.
But it g...
Continuum asked 2/4, 2014 at 6:14
3
Solved
When we open Package Manager Console in any open solution, it shows all the projects of that solution. How it is loading all the projects of the same solution.
When I tried with below shown code i...
Idocrase asked 28/3, 2014 at 5:43
1
Solved
In Visual Studio, if you want to attach debugger to any processes, you have the possibility to select some specific engine (code type) or set of engines you would like to use:
Next (after you se...
Feminine asked 16/4, 2013 at 13:46
1
Solved
I have a solution and three projects inside that which is all created dynamically. Now I have to add the first project's reference to the second and third one. When i tried the logic i'm able to bu...
1
Solved
Given a string that represents a specific class/field/property (eg MyNameSpace.MyClass or System.String.Length), how can I programmatically cause Visual Studio to go to that class/field/property (i...
M asked 12/3, 2014 at 7:37
1
I am trying to get some information about c+= programs, through code. I have had some success with EnvDTE, now I need to use VCProject and VCCodeModel and I am running into casting problems (hope t...
Nereen asked 12/12, 2012 at 23:13
1
Solved
I'm implementing some fairly straight forward code generation using T4, but I'm stuck on a basic problem when it comes to the details of Property generation. When I access the Type property on the ...
Croat asked 3/3, 2014 at 7:16
2
Let's say I've got a solution with one or more projects, and I've just kicked off a build using the following method:
_dte.Solution.SolutionBuild.Build(true); // EnvDTE.DTE
How can I get the out...
0
Is there a way to find out what variables are present in the watch window of visual studio?
DTE dte;
var watchWindow = dte.Windows.Item(EnvDTE.Constants.vsWindowKindWatch);
We can get the watch ...
Admittance asked 28/11, 2013 at 16:51
1
Solved
I am trying to manipulate the Visual Studio Text Editor scrollbar values. The problem is that I have only the dte.ActiveDocument and it is not possible to do it from there.
My extension is loaded ...
Ricci asked 20/11, 2013 at 16:17
3
Solved
I have a lot of custom keyboard shortcuts set up. To avoid having to set them up every time I install a new visual studio (happens quite a lot currectly, with VS2010 being in beta/RC) I have create...
Robers asked 24/2, 2010 at 8:25
1
Solved
Is it possible to use the EnvDTE assembly in a non-extension project (e.g. a Class Library project)?
If so, how would I access the ConfigurationManager.ActiveConfiguration property?
This question...
3
Solved
I'm writing an VS add-in and I need to run a certain method after a successful build.
I've tried using dte.Events.BuildEvents.OnBuildDone but that event happens even if the build failed.
Is there ...
Turpitude asked 10/5, 2010 at 10:44
2
I'm working on a PowerShell script to dynamically create and add a Visual Studio project with its folders and assets to a solution.
I'm using Visual Studio DTE.
My directory structure on the file ...
Amin asked 11/7, 2012 at 14:48
3
I'm getting the following warning when I right click on T4MVC.tt and select "run custom tool" (i.e. rebuild by T4MVC.cs file).
Warning 1
Compiling transformation: Assuming assembly reference 'E...
Delisle asked 26/7, 2011 at 0:37
© 2022 - 2024 — McMap. All rights reserved.