Remote Sharepoint Development (WebParts) with Visual Studio 2008 and VSeWSS 1.2!

Several people already contacted me, asking for the "hack" to develop Sharepoint stuff like Webparts remotely on Vista or Windows XP with the newer version of VSeWSS 1.2 (Visual Studio Extensions for Windows Sharepoint Services). I didn't had the time to reverse engineer the new installer and so I was really happy, when I received a mail yesterday, that somebody else has done the work for us. Many thanks to Mike Valentine from Cleveland, Ohio for doing the dirty work :-). He asked me, whether I will post the new hack for VS 2008 and WVeWSS 1.2 and so here it comes

The Copy Jobs are the same as described in my former blog posts.

Locate the Sharepoint Templates installed on the server environment and copy them to your Workstation User Templates.
You have to navigate to: “C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\ProjectTemplates\CSharp” and copy the whole Sharepoint Directory to your user Templates Folder on your Workstation. The Path is normally: “C:\Users\\Documents\Visual Studio 2008\Templates\ProjectTemplates\Visual C#”.
If you want to develop in VB.NET do the same for the Sharepoint Folder in: “C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\ProjectTemplates\VisualBasic” And copy it to: “C:\Users\\Documents\Visual Studio 2008\Templates\ProjectTemplates\Visual Basic”
Do the same for the Sharepoint Folders in the ItemTemplates Directory. There is only one for CSharp. Navigate to: “C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\ItemTemplates\CSharp” And copy the Sharepoint Folder to: “C:\Users\\Documents\Visual Studio 2008\Templates\ItemTemplates\Visual C#”
Copy the complete Folder “Microsoft Sharepoint Developer Tools”, which can be found in “C:\Program Files” on the Server or VPC to your Workstation machine in the same location.

And here is the new reg file, just copy the whole stuff into notepad and save it as "vs2008wss.reg" for example. and doubleclick the file to wrtite the Entries into the Registry.

Mike wrote me, that the installer is calling "devenv /setup" after writing the Registry Entries. We don't know, whether this is necessary. I also did so and it works.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\NewProjectTemplates\TemplateDirs\{f120f40f-f543-4d15-8bbb-4f4b174c6a23}]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\NewProjectTemplates\TemplateDirs\{f120f40f-f543-4d15-8bbb-4f4b174c6a23}\/1]
"TemplatesDir"="C:\\Program Files\\Microsoft SharePoint Developer Tools 9.0\\package 1.2"
"SortPriority"=dword:00000064

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\CLSID\{aa9054f9-fbd5-405d-9c31-9f544db39238}]
@="Microsoft.SharePoint.Tools.VisualBasicSPProject"
"Class"="Microsoft.SharePoint.Tools.VisualBasicSPProject"
"CodeBase"="C:\\Program Files\\Microsoft SharePoint Developer Tools 9.0\\package 1.2\\VSeWSS.dll"
"InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Packages\{f120f40f-f543-4d15-8bbb-4f4b174c6a23}]
"ProductName"="Visual Studio extensions for Windows SharePoint Services 1.2"
"ID"=dword:00000064
@="Microsoft.SharePoint.Tools.SdtPackage, VSeWSS, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
"CompanyName"="Microsoft"
"InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
"MinEdition"="Standard"
"ProductVersion"="12.0002.0000.0000"
"CodeBase"="C:\\Program Files\\Microsoft SharePoint Developer Tools 9.0\\package 1.2\\VSeWSS.dll"
"Class"="Microsoft.SharePoint.Tools.SdtPackage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Packages\{f120f40f-f543-4d15-8bbb-4f4b174c6a23}\SatelliteDll]
"DllName"="VSeWSSUI.dll"
"Path"="C:\\Program Files\\Microsoft SharePoint Developer Tools 9.0\\package 1.2\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Projects\{593b0543-81f6-4436-ba1e-4747859caae2}]
@="CSharpSPProjectFactory"
"DisplayName"=""
"DefaultProjectExtension"="csproj"
"DisplayProjectFileExtensions"="SharePoint Project Files (*.csproj);*.csproj"
"Language(VsTemplate)"="CSharp"
"Package"="{f120f40f-f543-4d15-8bbb-4f4b174c6a23}"
"PossibleProjectExtensions"="csproj"
"ProjectTemplatesDir"="C:\\Program Files\\Microsoft SharePoint Developer Tools 9.0\\pacakge 1.2"
"ShowOnlySpecifiedTemplates(VsTemplate)"=dword:00000000
"TemplateGroupIDs(VsTemplate)"="SharePointItemTemplateGroupID"
"TemplateIDs(VsTemplate)"="ContentType,EventReceiver,FieldControl,ListDefinition,ListDefinitionFromContentType,ListInstance,Module,Template,WebPart"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\CLSID\{3c457a27-5d8e-4fab-b1de-c18682146452}]
@="Microsoft.SharePoint.Tools.CSharpSPProject"
"Class"="Microsoft.SharePoint.Tools.CSharpSPProject"
"CodeBase"="C:\\Program Files\\Microsoft SharePoint Developer Tools 9.0\\package 1.2\\VSeWSS.dll"
"InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Projects\{ec05e597-79d4-47f3-ada0-324c4f7c7484}]
@="VisualBasicSPProjectFactory"
"DisplayName"=""
"DisplayProjectFileExtensions"="SharePoint Project Files (*.vbproj);*.vbproj"
"Package"="{f120f40f-f543-4d15-8bbb-4f4b174c6a23}"
"DefaultProjectExtension"="vbproj"
"PossibleProjectExtensions"="vbproj"
"ProjectTemplatesDir"="C:\\Program Files\\Microsoft SharePoint Developer Tools 9.0\\pacakge 1.2"
"Language(VsTemplate)"="VisualBasic"
"ShowOnlySpecifiedTemplates(VsTemplate)"="0"
"TemplateGroupIDs(VsTemplate)"="SharePointItemTemplateGroupID"
"TemplateIDs(VsTemplate)"="ContentType,EventReceiver,FieldControl,ListDefinition,ListDefinitionFromContentType,ListInstance,Module,Template,WebPart"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\ToolWindows\{b8772634-ac0a-4afc-ad74-e655d9ecef02}]
"Name"="Microsoft.SharePoint.Tools.Forms.SPToolWindow"
@="{f120f40f-f543-4d15-8bbb-4f4b174c6a23}"
"Style"="Tabbed"
"Window"="{3ae79031-e1bc-11d0-8f78-00a0c9110057}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\InstalledProducts\SdtPackage]
"Package"="{f120f40f-f543-4d15-8bbb-4f4b174c6a23}"
"UseInterface"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Menus]
"{f120f40f-f543-4d15-8bbb-4f4b174c6a23}"=",1000,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SharePoint Developer Tools 9.0]
"VSTemplates Install Path"="C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\ProjectTemplates\\CSharp\\SharePoint"
"Installed Language"=""
"Install Path"="C:\\Program Files\\Microsoft SharePoint Developer Tools 9.0"

 

  !! Absolutely no warranties, use at your own risk !!

That’s it! Hope this procedure is helpful to others, who want to develop Web Parts for MOSS 2007 now with Visual Studio 2008 and the newer Visual Studio Extensions for Windows Sharepoint Services, VSeWSS 1.2