Visual Studio Extensibility,126
Recent update: 2008-3-21

Programmatically Reloading Project/Solution

149 byte By interscape at 2008-3-7
I'm writing an addin that modifies the project file directly. How can I programmatically signal VS to reload the project without prompting the user?

VS2003 vs. VS2005 Addin model

200 byte By THumphr at 2008-3-6
Is there any thing that give an overview of the differences in the add-in model between VS2003 and VS2005? I'd like my add-in to work in both but need to know what the compatability is. -THumphries

Extending C#/VB Project Properties

946 byte By SebastianKralemann at 2008-3-5
Hi!I have already posted the following question but here is a more precise description of what I am going to do: I would like to extend the existing C# and VB project types with my own property page and to persist some settings in the project file through Project.Globals. My property page ...

Adding Cascading menus to VS Menus

3391 byte By DavidWilson at 2008-3-3
Ive been at this all day long and cannot seem to get anything working. All I want to do is add a menu to the tools menu and a sub menu with a couple of items on it. Following another thread at CodeComments http://www.codecomments.com/Visual_Studio_Extensibility/message477770.htmlI ended up with ...

dot net objects - IDispatch - and the Visual Studio Property Browser

2499 byte By DarenYong at 2008-3-1
I have some questions about the new MPF framework classes in Visual Studio 2005. I have implemented the ISelectionContainer interface in my EditorPane.cs. When the editor detects the user has selected a shape in our drawing -> All I do is in GetObjects() is set apUnkObjects to my dot net ...

How can I change the background color of the code window using an add-in?

184 byte By Zenit at 2008-2-28
Hello, I need to write add-in thats changes code background in code window. Is there any samples how to do this? I will very glad if somebody help me to do this. Thank you.

how to static CodeClass.AddProperty

168 byte By Werdna at 2008-2-27
How can I use CodeClass.AddProperty and add static property? CodeVariable has IsShared property so I can change it to static, but CodeProperty does not. Thanks.

Add Custom wizard to context menu?

432 byte By planetmarshalluk at 2008-2-26
By the time honoured method of reverse engineering the existing VC# project item wizards, I have built a custom wizard for adding a new item to an existing C# project.The custom wizard is available from the Add New Item dialog, but I was wondering if it was possible to add it to the project's ...

Anyone else triggering ATLASSERT(pEntries->pFunc == _ATL_SIMPLEMAPENTRY) assertion failur

937 byte By EricPromislow at 2008-2-25
I'm moving a bunch of plug-ins from 7.0/7.1 to 8, and this is my last issue outside the debugger area I haven't resolved. When closing a project package I get two pairs of assertions. The first is at line 2205 of atlcom.h ATLASSERT(pEntries->pFunc == _ATL_SIMPLEMAPENTRY); The second is at ...

VSDIR needs GUID. how do I do this?

361 byte By Smallmaj at 2008-2-24
To properly implement a VSDIR, I need to associate a GUID to a resource DLL. I have a resource DLL, how do I do this?"Optional GUID representing a product (for example, Visual J++) that has a DLL containing localized resources.Optional GUID representing a product (for example, Visual J++) that ...

Anyone else triggering ATLASSERT(pEntries->pFunc == _ATL_SIMPLEMAPENTRY) assertion failures?

937 byte By EricPromislow at 2008-2-23
I'm moving a bunch of plug-ins from 7.0/7.1 to 8, and this is my last issue outside the debugger area I haven't resolved. When closing a project package I get two pairs of assertions. The first is at line 2205 of atlcom.h ATLASSERT(pEntries->pFunc == _ATL_SIMPLEMAPENTRY); The second is at ...

Converting Add-In (7.1->8.0)

992 byte By BruceT at 2008-2-22
I am attempting to convert an Add-In from a previous version of Visual Studios, 7.1, to be used with VS8.0. I am also trying to keep it compatable with 7.1. I have been trying to work through just the IDispatch interface to find functions such as "get_Item" from a collection like: ...

AutoCad *.DWG files in VS2005 forms and reports

255 byte By MobiTech at 2008-2-22
Working with MS Access it was easy to incorporate AutoCad drawings by just using the normal image box. Just switching to Visual Studio (VS2005 BETA2), how is it done here? Do i need 3rd party tools or can VS2005 work with these drawings? Morten

Custom Data Visualizers

952 byte By MarcD at 2008-2-21
I have seen the Custom Data Visualizers and I attempted to create one but I found the sample to be extremely lacking (or perhaps I am thinking lightyears ahead of the plans of the VS.NEt team again) A sample of what I wanted to do was I wanted to be able to build into vs.net such that the data ...

VSIP Package Wizard

4941 byte By MarkCooper at 2008-2-20
I am working with creating VSPackages and trying to use the wizards that seem to have been removed form the VS Beta 2 and VSIP-B2. Has the wizard location changed?The VSIP documentation says 1) File New Project2) Extensibility Projects (was there under Beta 1) Trying to create a VSPackage for ...

Building dbgmetric.ilb with wchar_t native on?

201 byte By EricPromislow at 2008-2-20
The VSIP B2 read suggests fixing the wchar_t problem by rebuilding dbgmetric.lib setting the option "Treat wchar_t as Built-in Type" to "Yes". Good idea - how do I do this? - Eric

How to build custom debug engines for VS2005?

570 byte By EricPromislow at 2008-2-20
We built a custom debug engine, using the TextInterpreter sample as a guide, five years ago, and have managed to build high-value debuggers since then. I have everything working porting our plug-ins from VS200[23] to '05, except the debuggers don't work. And now I see in the Beta 2 Readme ...

storing wizard outside of EFWizards folder

533 byte By Smallmaj at 2008-2-19
I've created my own c# template project including the vsz file. Do I have to place my template files and the scripts directory under EFWizards?If I don't I get an error when I try to create a project- The error is that the default.js cannot be found under ...

Cannot compile wizard generated code.

1198 byte By Werdna at 2008-2-18
After installing beta2 I'm getting a weird compile error when compiling wizard generated code. I get the following error:Error 1 The best overloaded method match for 'EnvDTE80.Commands2.AddNamedCommand2(EnvDTE.AddIn, string, string, string, bool, object, ref System.Array, int, int, ...

Can't get Build Rules add-in to launch

309 byte By abdu at 2008-2-17
I had Build Rules add-in work with a project. Now I want to use it for a different project but the add-in doesn't load in VS. How do I force an add-in to load? I also tried to launch VS by devenv /setup. I get a DOS box and what seems VS was going to launch and then it disappears. What gives? ...

Launching Application in Foreground from Macro using Keyboard Shortcut

553 byte By intGod at 2008-2-16
Hello, I have written a small macro that will launch an application. When I run the macro from the macro window, it will launch the application in the foreground. When I assign a keyboard shortcut to the macro and press the keyboard shortcut, the application is launched but VS.NET remains in ...

How do I group VSIP package commands together?

713 byte By SergeyM at 2008-2-15
When I used to work with add-ins, all add-in commands would show up as <Namespace.ClassName.MyCommand> under Tools|Options dialog, on Environment|Keyboard page. After moving to VSIP, my package commans show up under the menu they are added to. For instance, some of the Tools menu commands ...

CreateToolWindow2

79 byte By Werdna at 2008-2-15
Does anyone have any code examples (C#) on how to use CreateToolWindow2 method?

Transparency for VS2005 splash screen icon?

536 byte By PChandra at 2008-2-15
I've gotten my icon to appear on the Whidbey splash screen as described in the help. However, it seems that topic was written for Everett, so some of the information is out of date. For instance, it says I should use a background color of 0x0000fe00, presumably for transparency. If I use that ...

How to create a custom keyboard mapping .vsk file using Beta 2? (Jim?)

2063 byte By SergeyM at 2008-2-15
Followed Jim's earlier suggestion where he answered a similar question of mine and outlined the new procedure: http://blogs.msdn.com/jim_glass/archive/2005/02/18/376113.aspxHis post was for Beta 1 and it appears .vssettings format has changed a bit. Fare enough. I pick default mapping scheme, ...

Problems running VSIP package created using VS 2003 in VS 2005

1078 byte By DanSuceava at 2008-2-15
I'm running into some problems trying to get a package created using VS 2003 to run inside VS 2005. I've changed all the GUIDs and the registry root and the package seems to install and register properly. But once I try to run it from the Tools menu it just crashes VS 2005 with the generic ...

LFrame.SetFramePos returns E_NOTIMPL in VS2003

520 byte By BillNortman at 2008-2-14
I'm trying to set the location of a toolframe created with FvsUIShell.CreateToolWindow then make the callint i =LFrame.SetFramePos((VSSETFRAMEPOS) 0x00000043, ref G,0,0,100,100);the value of i is 0x80004001 which when I look up in NativeMethods = E_NOTIMPLWhy is this, should I be doing ...

VSIP licence required

185 byte By Smallmaj at 2008-2-14
My copy of visual studio 2003 now comes up with VSIP licence required. As my copy comes from the MSDN universal, is another licence required? Can I roll-back to my MSDN licence? Jason

AddFromTemplate and TemplatePath on Whidbey

1418 byte By Gaston at 2008-2-13
I having problems with Automation on Whidbey, there are essential functions that are not working well. I want to create projects by automation using AddFromTemplate.When I tried thisWith the path to the file inside the zip EnvDTE.Solution.AddFromTemplate("C:\Program Files\Microsoft Visual ...

graphic setting

547 byte By BartElia at 2008-2-13
I am using the VSIP wizards to create a new add-in.What is the magic to get new graphics into the VSIP project?I simply changed the current bitmaps and they do not appear. I can change the index and they will eventually get in the VS IDE. What is the magic that ties in images_24.bmp and ...

VS 2005 Beta 2 breaks VS.NET 2002 add-ins

2861 byte By CarlosJ.Quintero at 2008-2-12
Hi,After installing VS 2005 Beta 2 on a machine with VS.NET 2002 SP1and VS.NET 2003, retrieving ProjectItemsEvents withDTE.Events.GetObject("VBProjectItemsEvents") and assigning thereturning object to a ProjectItemsEvents variable declatedWithEvents causes exceptions on VS.NET 2002 add-ins. ...

LineChanged Event

1587 byte By polym at 2008-2-11
I am developing Visual Studio add-in by using VS2003 C# I am trying to handle bookmarks by name , filename , line in XMLdocument. Projects works fine . I can get bookmark name , filename and linenumber when user add a bookmark on a file. But if user delete aline or add a line , my bookmark ...

Modifying web.config file from an add-in

652 byte By jessielu at 2008-2-10
I need to update a web project's web.config file from an add-in in VS2005. Are there any automation or VSIP interfaces that I can use to accomplish this? I know that in the IDesignerHost interface you can use the IWebApplication interface to get an instance of the configuration file and edit ...

where can ? find info about DSL?

153 byte By erdsah88 at 2008-2-10
We are building an adaptive object model and making our framerwork does that mean we are creating a domain specific langugae when we define our metadata?

Install Add-in at clients machine

325 byte By Prabha at 2008-2-8
I have create an Outlook Add-in in my machine. I can deploy using msi/exe to any machine, but how I can I deploy this at clients side whose machine is not available.For all other components I have embedded the cab file to our http site to install at remote machine. Is it possible to install and regi...

Creating SQL Server Project by automation issues

668 byte By Gaston at 2008-2-8
I'm trying to create a SQL Server Project by automation. So I started prototyping using a Macro. I know the connection string for the project so I don't need that the "Add Database Reference" dialog appears. So I created my template with a connection string that after I need to set by ...

Getting the instance of DEVENV without using it!

338 byte By Jangu at 2008-2-8
How to create a new Solution and a project without using the ENVDTE as it gets the instance of DEVENV from runtime Marshalling object.I would like to get the instance of the DEVENV without using the DEVENV or its IDE.The exe File should dynamically create the Solution and its project. Thanks in ...

Accessing Project Properties

300 byte By interscape at 2008-2-7
I need to be able to access and change the MSBuild targets that are being referenced in a Visual Studio project. Also, I need to be able to add a menu item to the right-click menu when someone clicks on a project title or that project's "My Project" section. Can anyone help? Thanks in advance....

How to tell the RTD that a file is dirty

103 byte By BillNortman at 2008-2-7
I need a way to trigger the RTD to think a doc is dirty even though it hasn't be modified by a editor.

any complete examples of creating new custom C# projects

499 byte By Smallmaj at 2008-2-7
Does anyone have a full example of a Visual Studio 2003 custom C# project which demonstrates1. it appearing in the New Project dialog, in its own folder (I know this means adding an entry to TemplateDirs). 2. it having custom C# files which I can add using Add New Item3. it having its own icons ...

Extending C#/VB-Project Properties

334 byte By SebastianKralemann at 2008-2-7
Hi!I am new to the VSIP SDK and don't know where to start. I want to extend C# and VB projects with an new property page.I have already read about sub project types but I think this has too much overhead. I only want to add an additional property page and persist some settings in the project ...

What's New in Automation for Visual Studio 2005

459 byte By JimGlass-MSFT at 2008-2-6
There is so much goodness happening in Visual Studio 2005 that I had to blog about it here. Also feel free to visit the Visual Studio Extensibility Center and let us know what you ...

VSIP for 6.0

53 byte By Yorik at 2008-2-6
Is VSIP for 6.0 is available? Is it free as for .NET?

Can someone explain the usage of RegisterAndLockDocument

315 byte By BillNortman at 2008-2-5
I'm having a hard time understanding the documentation on RegisterAndLockDocument. How are the flag suppose to be used, they look like they should be OR'd together to get the functionally you are looking for. However, I can't get my head around the interaction of these flags, some seem to ...

VS 2003 projects to store custom file attributes.

328 byte By jdk at 2008-2-5
I'd like to add extra file attributes to those already stored in project files ("Custom Tool", "Build Action").I'd like to add something very much like Build Action, where the user can select among various options.How can I do this?I'm also interested in doing this for folders, if ...

how do i assign GUID to a custom project

435 byte By Smallmaj at 2008-2-4
Struggling with this so any help is useful- I am adding my own custom projects to the Add New Project dialog. I am not creating a new wizard from scratch, just copying the existing ones. Its working fine but I want my own icons to appear. I don't want to put the filename in the VSDIR, just the ...

IVsPersistDocData2 Not Being Called

275 byte By BillNortman at 2008-2-4
I have a class the implements <font size="2">IVsPersistDocData2 I register the document with the RTD using <font size="2">RegisterAndLockDocument, I get some of the calls such as isdocumentreadonly, But I never getting any calls to IsDocDirty and Save. </font></font>

Newbie Request - Custom Project Type, Managed Code, VS 2003

795 byte By JPBlake at 2008-2-4
Hi - We are beginning to look at the VSIP program. We need to implement a newcustom project type and would prefer to do this in C#. Our customerrequirements dictate that we need to come up with a solution that works inboth VS 2003 and 2005. Later on, we'll be able to target 2005, but for ...

Question on how to display my property page

1295 byte By Notre at 2008-2-4
Hi, I've created a property page (that derives from SettingsPage in the Microsoft.VisualStudio.Package namespace) for my MPF based project system by taking the appropriate code from the MyProject sample project and merging it into my project. It displays correctly when I select the ...

VS 2005 Add-in Options dialog

307 byte By RZimmerman at 2008-2-3
I'm in the process of porting my VS2003 add-in to VS2005 beta 2 and have the main things now working but I was wondering how to now setup/code the Options dialog. Is there any documention/examples on how to do this in the on-line docs or does someone have some sample code they could share that ...

Visual Studio

Site Classified