Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. EnvDTE + visual studio .net addin

EnvDTE + visual studio .net addin

Scheduled Pinned Locked Moved C#
csharpvisual-studioquestion
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cbiacca
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • C cbiacca

      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

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      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; )

      C 1 Reply Last reply
      0
      • S Stephane Rodriguez

        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; )

        C Offline
        C Offline
        cbiacca
        wrote on last edited by
        #3

        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

        S 2 Replies Last reply
        0
        • C cbiacca

          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

          S Offline
          S Offline
          Stephane Rodriguez
          wrote on last edited by
          #4

          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).

          1 Reply Last reply
          0
          • C cbiacca

            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

            S Offline
            S Offline
            Stephane Rodriguez
            wrote on last edited by
            #5

            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. ;)

            C 1 Reply Last reply
            0
            • S Stephane Rodriguez

              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. ;)

              C Offline
              C Offline
              cbiacca
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups