none
Visual Studio 2013 Extesibility

    General discussion

  • I have add-in which is developed using VS 2010. I am now re-writing the code in VS2013.

     Below is the code. I am trying to find similar object in 2013. I tried to add ENVDTE dll and did not find for VS2013.

     


    private TfsEnvironmentHelper()
            {
                m_dte = (EnvDTE.DTE)Microsoft.VisualStudio.Shell.ServiceProvider.GlobalProvider.GetService(typeof(SDTE));
                m_dte = (EnvDTE.DTE)Microsoft.VisualStudio.Shell.ServiceProvider.GlobalProvider.GetService(typeof(EnvDTE.DTE));

                m_teamFoundationServer =
                    (TeamFoundationServerExt)m_dte.GetObject(typeof(TeamFoundationServerExt).FullName);

                m_teamFoundationServer.ProjectContextChanged += new EventHandler(teamFoundationServer_ProjectContextChanged);
            }

            private TeamFoundationServerExt m_teamFoundationServer;
            private EnvDTE.DTE m_dte;

     

     

     

     

     

     

     

     

    Tuesday, October 29, 2013 1:44 PM

All replies

  • Hello,

    Please take a look at the following information from MSDN document:

    "In Visual Studio 2013 RC, add-ins are deprecated. We recommend that you upgrade your add-ins to VSPackage extensions. For more information about how to upgrade, see How to: Convert an Add-in to a VSPackage."

    For more details, please refer to How to: Add References to the EnvDTE, EnvDTE80, and EnvDTE90 Namespaces .

    Best Regards,

    Jane.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Wednesday, October 30, 2013 6:36 AM
  • I think you are already creating a package and not an add-in. The EnvDTE.dll is the same for all VS versions so you can use the same reference that you were using for VS 2010. You can edit the .csproj file and see the COMReference items:

      <ItemGroup>
        <COMReference Include="EnvDTE">
          <Guid>{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2}</Guid>
          <VersionMajor>8</VersionMajor>
          <VersionMinor>0</VersionMinor>
          <Lcid>0</Lcid>
          <WrapperTool>primary</WrapperTool>
          <Isolated>False</Isolated>
        </COMReference>
        <COMReference Include="EnvDTE80">
          <Guid>{1A31287A-4D7D-413E-8E32-3B374931BD89}</Guid>
          <VersionMajor>8</VersionMajor>
          <VersionMinor>0</VersionMinor>
          <Lcid>0</Lcid>
          <WrapperTool>primary</WrapperTool>
          <Isolated>False</Isolated>
        </COMReference>
        <COMReference Include="Microsoft.VisualStudio.CommandBars">
          <Guid>{1CBA492E-7263-47BB-87FE-639000619B15}</Guid>
          <VersionMajor>8</VersionMajor>
          <VersionMinor>0</VersionMinor>
          <Lcid>0</Lcid>
          <WrapperTool>primary</WrapperTool>
          <Isolated>False</Isolated>
        </COMReference>
        <COMReference Include="stdole">
          <Guid>{00020430-0000-0000-C000-000000000046}</Guid>
          <VersionMajor>2</VersionMajor>
          <VersionMinor>0</VersionMinor>
          <Lcid>0</Lcid>
          <WrapperTool>primary</WrapperTool>
          <Isolated>False</Isolated>
        </COMReference>
      </ItemGroup>


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/

    Thursday, October 31, 2013 7:01 AM