hi all, this is my first attempt at creating a VS.NET add-in. Some of my friends are saying when they install it, either the icon doesn't show up on the Tools...
Hi, I have a class, called CodeGen.Builder, which generates code for a class (CG.Build), uses the System.CodeDom objects to compile it, and then retrieves a...
hi all i have a problem with vs.net, after i built some addin examples. i can't make any new c# projects an error message appears "library not registered"?? ...
This happens because your setup project included an Add-in which referenced VSLangProj. When the Add-in is uninstalled it will also uninstall the type lib for...
Because of the way that assemblies are found by .NET components running as COM objects, you should make sure that all the referenced assemblies are either in...
For the people who do not have the button have them shut down all instances of VS, then from a command prompt run the command devenv /setup. When they restart...
Hello, I am trying to open a window in VS.NET that will show a url of my choice. In my usercontrol I have a button that I want to open up a browser window...
ItemOperations.Navigate(...) will open up either a new browser window, or recycle an existing one (your choice). Craig Available Soon: Inside Visual Studio...
Dave, Craig's deadly right - the /setup key is the remedy. But there's another trick I used in my add-in's installation - it still requires VS .NET to be...
Hi, I have noticed that the CodeElements collection returns identical CodeElement objects, with the same start line, for actually different VB.Net overloaded...
Hi, I have noticed that the CodeElements collection returns identical CodeElement objects, with the same start line, for actually different VB.Net overloaded...
IMO, that is not good practice. devenv.exe /setup will reset all the user's toolbar customizations, so it isn't wise to call on an end-user machine. Instead,...
Hi everybody, I would like to know how a project and his files are represented by .net and in case of an addin development in C++, how to get this information...
Hi, There are 2 extensibility models, one for VB.Net, C# and VJ#, and another for C++. If your add-in is for C++, search "VCProject" in the MSDN Library and...
where do you do this at? I do this in my setup msi, but I'm assuming you again do this in your code? Where at? In the execute method? Also, what is the exact...
I write my addins in C++ so I have the luxury of using ATL's .reg files. I have them set up so when you register the .dll it sets this key in the registry....
Yes, this is the better way of doing it, resetting the PreloadAddinState (user Add-in) or the CommandPreload (admin Add-in) values within the registry and...
hmm.. I just had both people run the /setup switch. No go. So I sent them the ReCreateCommands.reg file, that is output by the wizard. I asked them to close...
HI Craig, I fully agree that "devenv /setup" is a simple remedy on a *developer* machine. What I was pointing out was that it is not a good idea to execute...
That totally works, but is there anyway to get a reference to the EnvDTE in my user control (or to get a reference to my UserControl in the Connect Class)? ......
There are a couple ways of doing it, usually what I do is put a property on the user control of type DTE, then set that property when I create the tool window....
I have added a (reference type) variable to my (C#) form class but haven't figured out how to initialize the variable after the form's InitializeComponent...
Hello group, I would appreciate any help on how to remove custom IDE commands created with AddNamedCommand() when the add-in is being uninstalled? Of course...
Hello again, Is there any way to have control over a command bar created by calling the Commands.CreateCommandBar() method? I get quite strange results with...
The only official way is to create a custom action for the installer of your Add-in. This custom action would create a new instance of VS programmatically,...
This is something that you will need to calculate out and add yourself because the code model does not go down to the statement level. You can find the...
You should be able to use the CommandBar object model to position the toolbar. I know there are properties (their names escape me now), something like Position...
One comment on this sample when working in design mode... In C#, CodeClass.AddVariable method requires the location parameter to be specified whereas it's...