I'm trying to add new project type in Visual Studio 2008, using Visual Studio 2008 SDK, following the instructions in this tutorial.
I have also included the following folders from Visual Studio 2008 SDK directly to my source code:
c:\Program Files\Microsoft Visual Studio 2008 SDK\VisualStudioIntegration\Common\Source\CSharp\LanguageService90\
c:\Program Files\Microsoft Visual Studio 2008 SDK\VisualStudioIntegration\Common\Source\CSharp\Shell90\
c:\Program Files\Microsoft Visual Studio 2008 SDK\VisualStudioIntegration\Common\Source\CSharp\PropertyPageBase\
I have additionally references these assemblies in the project:
<Reference Include="EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="Microsoft.VisualStudio.Designer.Interfaces, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="Microsoft.VisualStudio.OLE.Interop" />
<Reference Include="Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="Microsoft.VisualStudio.Shell.Interop.8.0, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="Microsoft.VisualStudio.Shell.Interop.9.0" />
<Reference Include="Microsoft.VisualStudio.TextManager.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="Microsoft.VisualStudio.TextManager.Interop.8.0, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="System" />
<Reference Include="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" />
<Reference Include="System.Data" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
... but my 'Visual Studio Integration Package' project still does not compile. I don't know what else to add in my project to make this work.
The errors I get are the following:
Error 1 The type or namespace name 'AssemblyEnumerationService' does not exist in the namespace 'Microsoft.VisualStudio' (are you missing an assembly reference?)
Error 2 The type or namespace name 'NativeMethods' could not be found (are you missing a using directive or an assembly reference?)
Error 3 The type or namespace name 'HelpService' could not be found (are you missing a using directive or an assembly reference?)
Error 4 'Microsoft.Win32.NativeMethods' is inaccessible due to its protection level
Error 5 The type or namespace name 'ToolWindowCollection' could not be found (are you missing a using directive or an assembly reference?)
Error 6 The type name 'ConnectionPointCookie' does not exist in the type 'Microsoft.Win32.NativeMethods'
Error 7 The type or namespace name 'NativeMethods' could not be found (are you missing a using directive or an assembly reference?)
Error 8 'System.Windows.Forms.NativeMethods' is inaccessible due to its protection level
Error 9 The type name 'ConnectionPointCookie' does not exist in the type 'System.Windows.Forms.NativeMethods'
Error 10 'System.Windows.Forms.NativeMethods' is inaccessible due to its protection level
Error 11 The type name 'ConnectionPointCookie' does not exist in the type 'System.Windows.Forms.NativeMethods'
Error 12 'System.Windows.Forms.NativeMethods' is inaccessible due to its protection level
Error 13 The type name 'ConnectionPointCookie' does not exist in the type 'System.Windows.Forms.NativeMethods'
Error 14 The type or namespace name 'MSXML' could not be found (are you missing a using directive or an assembly reference?)