Recent update: 2008-3-21
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?
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
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 ...
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 ...
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 ...
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.
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.
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 ...
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 ...
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 ...
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 ...
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: ...
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
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 ...
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 ...
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
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 ...
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 ...
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, ...
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? ...
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 ...
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 ...
79 byte By
Werdna at 2008-2-15
Does anyone have any code examples (C#) on how to use CreateToolWindow2 method?
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 ...
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, ...
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 ...
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 ...
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
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 ...
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 ...
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. ...
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 ...
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 ...
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?
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...
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 ...
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 ...
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....
I need a way to trigger the RTD to think a doc is dirty even though it hasn't be modified by a editor.
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 ...
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 ...
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 ...
53 byte By
Yorik at 2008-2-6
Is VSIP for 6.0 is available? Is it free as for .NET?
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 ...
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 ...
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 ...
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>
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 ...
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 ...
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 ...