vsx

How to create a new project type in VS2010?

I've figured out how to create a new template, but I need a little more power than that. I need to override what happens when you click the "Run" button for example -- I want it to fire up a development server and then pop open my web browser. So, how can I add an entirely new project type? And preferably, how can I base it on another p...

How to add a new project type to IronPython Studio?

I'm trying to follow this tutorial, but it only describes how to add a new project type based on C#. I want to create a new project (sub)type underneath IronPython. I've downloaded the IronPython source code, and I think I've found the place where I need to add my new template, but I don't know how to "run" it. VS tells me I can't run t...

Where are the "managed project source files"?

Trying to follow this tutorial Walkthrough: Part 1 - Creating a Basic Project System And I got to this step: Locate the managed project source files by following this link. Copy these files to a local folder named, for example, C:\MyLocalFolder\Project But that codeplex project doesn't have any downloads... so what files am I sup...

Compiler error: Same identity, EnvDTE80

Trying to follow this tutorial, under the section "Initializing the Project Factory" I've added EnvDTE to my project, but now I get this error: An assembly with the same identity 'EnvDTE80, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try removing one of the duplicate references. Eve...

Is there a tutorial to tell me how to write a add-in for Visual Studio 2008

I want to write a add-in for Visual Studio 2008. It will provide a friend UI to show and edit bitmap image when I'm debugging projects about image process. I know how to access IDebugger interface in VC6, but I don't know how to do it in VS 2008. And I prefer to C/C++ guide other than C#. Thanks. I found it: Debugger Object(http://m...

Building a Visual Studio Package based on another one

I want to add my own project type based on IronStudio. So, I downloaded the source for and compiled the latest version of IronPython, then I created a new Visual Studio Package. I added the Templates\Projects\MyProject folders, and added a file to it, and set its property "Include in VSIX" to true. Then modified the main Package cla...

VS2010 extension, lost it and can't remember name

Does anyone use or rememebr the name of the VS2010 extension that add a little faded context sensitive icon next to a class/ method (indiciating if it's a class etc like in the Class View) and adds a little faded clickable link at the end of a class/method block etc with it's name? It looked someting like: [ICON] methodName1(params)...

VSX 2010 - Alternative to TextViewCreated such as (TextViewChanged)?

Hi, I am creating a small Visual Studio 2010 extension in C# which uses the IWpfTextViewCreationListener and TextViewCreated to capture when a new TextView is opened in the VS environment. The problem I am having is that this method only fires when a new window is opened via the VS Solution Explorer window, and not fired when VS already ...

How do I set the Project's 'Start External Program' setting programmatically?

I have an IWizard which gets access to a Project variable. What code do I need to write to set the 'Start External Program' value in project properties? ...

Subscription to DTE events doesn't seem to work - Events don't get called

I've made an extension inside a package and I am calling the following code (occurs when a user presses a button in the toolbar): DocumentEvents documentEvents = (DTE2)GetService(typeof(DTE)); _dte.Events.DebuggerEvents.OnEnterBreakMode += DebuggerEvents_OnEnterBreakMode; _dte.Events.DebuggerEvents.OnEnterDesignMode += DebuggerEvents_On...

How to conditionally generate additional projects from a ProjectItem template?

I have a situation where I'm generating a single project via a Project Item template in Visual Studio. I pop up a dialog which offers the options to create additional test and setup projects, too. My question is: how do I instrument this using the existing infrastructure? ...

What is the best way of deploying VS project/item templates?

I made an installer fro project/item templates in VS2010 to put the templates in the user's Templates folder. Is this an OK way of doing things? Or is there a way to deploy templates for all users? If so - where should I put them? Thanks. ...

Right click context menu to adornment - Doesn't work and invokes the editor menu instead (VS2010)

I've made a Control in XAML and added it to the adornment layer, in the control I have a section that should spawn a context menu when right clicked (using TextBox.ContextMenu property). I've tested it in a regular WPF Window and it works great. However, when I tried the same in Visual Studio on an adornment layer I only got the VS2010 e...

Problem with custom type converter in VSX package

Hello. I have the following question. I have MSVS solution with three projects in it. first project is VSX project witch shows form with property grid in it. second is typical C# library project with custom type converter class BooleanYesNoConverter inherited from BooleanConverter. This converter is used to show Yes/No in property grid...

How to enumerate C# project files and update the header of a file?

Can somebody help me on enumerating a C# project files and update the cs file headers in Visual Studio 2010? Any helpful code snippet or a pointer to that would be highly appreciated. ...

Overlay graphics (aka adornments in VS2010) in VS2008

Hi everyone, I'm writing an add-in for both VS2008 and VS2010 and I'd like to have graphical enhancements that appear on top of the code (similar to Resharper/CodeRush). Doing so in VS2010 is relatively easy using adornments, however, how do I do it in VS2008? Anyone knows a good resource/article for something in that spirit? I know th...

How to get a EditorAdornment to Modify text from a TextView?

I am trying to create a "Quick Edit" adornment which would help the user in providing the information below. This is the Nafestis Info text in a .vb class file #Region "Nafestis Information Block" '**<!--Scroll over to the line above this one to use the quick editor**'--> '**<name>Create a JSPF page from a config file</name> '**<prefix...

Can I create a Visual Studio 2010 Add-In that Uses a WPF Display?

We're working on creating a specialized graphical editor for our enterprise applications. We've looked at and rejected DSLs. Ideally I'd like to have the main interface of the editor be docked like the code windows and use WPF for drawing. Can anyone point me to some documentation to get me on the right path? Thanks. Colin. UPDATE: It...

How to debug and deploy my class libary that is really a VSX Extension?

The Class Libary is an Microsoft Studio extension that generates a file from saving running a custom tool on a template file, following the module from this example I found from Microsoft: http://code.msdn.microsoft.com/SingleFileGenerator/Release/ProjectReleases.aspx?ReleaseId=4138. I can not figure out how I'm gonna debug, build, or ...

How do I add support for a file extension for a custom tool in visual studio 2010?

I have a custom tool "NafestisGenerator" of which I need to apply to every ".ntf" file. The question is, how do I tell visual studio (suing the Custom tool Generator sample from Microsoft) to use the "NafestisGenerator" custom tool on every ".ntf" file? (vb.net) ...