EnvDTE + visual studio .net addin
-
Hi, I'm new of this site/forum so first of all I wanna say hello to everyone. Then, I'm trying to develop an addin for visual studio .net but I'm having some problems due to my inexperience in c#. What does it mean when I write: EnvDTE.Window thisWindow = x.open(...); Does it mean that I'm considering the current tab (the tab the user is working on) or does it mean that it's going to create a new tab under visual studio project ?? I'd like to code something similart to the first solution... Then I have some problems also to browse the documentation: where is the namespace EnvDTE?? I can't find it ... thanks
-
Hi, I'm new of this site/forum so first of all I wanna say hello to everyone. Then, I'm trying to develop an addin for visual studio .net but I'm having some problems due to my inexperience in c#. What does it mean when I write: EnvDTE.Window thisWindow = x.open(...); Does it mean that I'm considering the current tab (the tab the user is working on) or does it mean that it's going to create a new tab under visual studio project ?? I'd like to code something similart to the first solution... Then I have some problems also to browse the documentation: where is the namespace EnvDTE?? I can't find it ... thanks
cbiacca wrote: I'm trying to develop an addin for visual studio .net Sudden interest for VS.NET addins, or could it be that...;) cbiacca wrote: EnvDTE.Window thisWindow = x.open(...); The best way to develop an add-in is to use a top-down design. I would recommend to use one of the wizards available when you create a new project (Extensibility projects / VisualStudio .NET add-in), which provides all the underlying code to start with. Of course, the object model is documented. A chart is available here[^]. And the doc is here[^]. cbiacca wrote: where is the namespace EnvDTE?? Although the add-in wizard adds the reference to it, you can add it manually to your project by adding a reference to this file : C:\WINNT\Microsoft.NET\Framework\<version>\EnvDTE.dll (C# using EnvDTE; ) Don't forget to add a reference to this assembly as well : <VS.NET install dir>\Common7\IDE\PublicAssemblies\Extensibility.dll (C# using Extensibility; )
-
cbiacca wrote: I'm trying to develop an addin for visual studio .net Sudden interest for VS.NET addins, or could it be that...;) cbiacca wrote: EnvDTE.Window thisWindow = x.open(...); The best way to develop an add-in is to use a top-down design. I would recommend to use one of the wizards available when you create a new project (Extensibility projects / VisualStudio .NET add-in), which provides all the underlying code to start with. Of course, the object model is documented. A chart is available here[^]. And the doc is here[^]. cbiacca wrote: where is the namespace EnvDTE?? Although the add-in wizard adds the reference to it, you can add it manually to your project by adding a reference to this file : C:\WINNT\Microsoft.NET\Framework\<version>\EnvDTE.dll (C# using EnvDTE; ) Don't forget to add a reference to this assembly as well : <VS.NET install dir>\Common7\IDE\PublicAssemblies\Extensibility.dll (C# using Extensibility; )
First I wanna thank you to have answered me ... The reason I'm trying to develop an addin was that visual studio .net doesn't allow to highlight the braces. I'm used to develop in java where all RAD have this feature. Anyway I had already used the wizard to get started to develop ing this addin so I had all the reference I need (I hope so :P). Because I haven't a clear idea about how it really works, I thought I had to select the tab on what the addin should works, so I used the code: EnvDTE.Window thisWindow = x.open(...); Now that you gave me the documentantion's link, I'm gonna try to understand a little bit more. In the end, regard to the questione "where is the namespace EnvDTE", now I understood not to have been clear. I meant where it is in the documentation. Actually I'd like to know what classes it includes, but I can't find it ... i.e.: I mean, is it under System. ? I know by the code which was created by the wizard that I have to use EnvDTE so I supposed it is an apart namespace but I can't really find it ... Maybe, because of my bad english, I can't explain my question very well, if so don't worry I'm gonna work using tips you gave me ... Thanks
-
First I wanna thank you to have answered me ... The reason I'm trying to develop an addin was that visual studio .net doesn't allow to highlight the braces. I'm used to develop in java where all RAD have this feature. Anyway I had already used the wizard to get started to develop ing this addin so I had all the reference I need (I hope so :P). Because I haven't a clear idea about how it really works, I thought I had to select the tab on what the addin should works, so I used the code: EnvDTE.Window thisWindow = x.open(...); Now that you gave me the documentantion's link, I'm gonna try to understand a little bit more. In the end, regard to the questione "where is the namespace EnvDTE", now I understood not to have been clear. I meant where it is in the documentation. Actually I'd like to know what classes it includes, but I can't find it ... i.e.: I mean, is it under System. ? I know by the code which was created by the wizard that I have to use EnvDTE so I supposed it is an apart namespace but I can't really find it ... Maybe, because of my bad english, I can't explain my question very well, if so don't worry I'm gonna work using tips you gave me ... Thanks
cbiacca wrote: In the end, regard to the questione "where is the namespace EnvDTE", now I understood not to have been clear. I meant where it is in the documentation One of the links I have provided is the root of the EnvDTE namespace. cbiacca wrote: Actually I'd like to know what classes it includes, but I can't find it Add a reference to it in your project workspace, then add "using EnvDTE;" in your code, then you can use intellisense to see all classes... cbiacca wrote: I mean, is it under System. ? Namespaces with names of the form System.xxx are "primary" assemblies. In fact, the .NET run-time is made of a collection those assemblies, plus a few things. The assemblies related to the VS.NET IDE (EnvDTE and Extensibility for the two main you are likely to deal with) are not part of the .NET run-time. MS could have decided to name them System.EnvDTE.EnvDTE, System.EnvDTE.Extensibility, ... but they chose not to. Other than that, these are assemblies and you can use any assembly explorer to dive into the classes/methods/... (you can use the VS.NET IDE Object Browser window for instance).
-
First I wanna thank you to have answered me ... The reason I'm trying to develop an addin was that visual studio .net doesn't allow to highlight the braces. I'm used to develop in java where all RAD have this feature. Anyway I had already used the wizard to get started to develop ing this addin so I had all the reference I need (I hope so :P). Because I haven't a clear idea about how it really works, I thought I had to select the tab on what the addin should works, so I used the code: EnvDTE.Window thisWindow = x.open(...); Now that you gave me the documentantion's link, I'm gonna try to understand a little bit more. In the end, regard to the questione "where is the namespace EnvDTE", now I understood not to have been clear. I meant where it is in the documentation. Actually I'd like to know what classes it includes, but I can't find it ... i.e.: I mean, is it under System. ? I know by the code which was created by the wizard that I have to use EnvDTE so I supposed it is an apart namespace but I can't really find it ... Maybe, because of my bad english, I can't explain my question very well, if so don't worry I'm gonna work using tips you gave me ... Thanks
cbiacca wrote: The reason I'm trying to develop an addin was that visual studio .net doesn't allow to highlight the braces It's because the CodeProject competition this month is about the best add-in that someone would submit. ;)
-
cbiacca wrote: The reason I'm trying to develop an addin was that visual studio .net doesn't allow to highlight the braces It's because the CodeProject competition this month is about the best add-in that someone would submit. ;)
Hi, uhm I really don't know if this is the right place where to ask for, but I'm gonna try... After having rebuilt the solution, it told me this error: path\to\x.vdproj This setup does not contain the .NET Framework which must be installed on the target machine by running dotnetfx.exe before this setup will install. You can find dotnetfx.exe on the Visual Studio .NET 'Windows Components Update' media. Dotnetfx.exe can be redistributed with your setup. I tried to do as there is written, but (and I could say obviously) It says that the framework is already installed on my machine ... What does exactly that error mean ?? Moreover, I noticed that there are error like these: - Could not copy temporary files to the output directory. - The file 'CopyrightAddIn.dll' cannot be copied to the run directory. This file is used by another process - The file 'CopyrightAddIn.pdb' cannot be copied to the run directory. This file is used by another process The problem is that It's the first time I use this system and in the tutorial I'm following the problem is not reported. Thanks, Francesco Biacca