Freigeben über


New Registry File for Developing MOSS2007 Projects in a Workstation (XP or Vista)

Now that the new VSeWSS1.1.EXE is released it is time to update the infos on my blog. The steps are basically the same as desribed in my former blog posts regarding VSeWSS.EXE.

First of all you have to install VSeWSS1.1.exe on a Sharepoint Server 2007 machine or image. Then you have access to all the files, that you have to copy to your Workstation.

1. 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 8\Common7\IDE\ProjectTemplates\CSharp”
and copy the whole Sharepoint Directory to your user Templates Folder on your Workstation. The Path is normally:
“C:\Users\<username>\Documents\Visual Studio 2005\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 8\Common7\IDE\ProjectTemplates\VisualBasic”
And copy it to:
“C:\Users\<username>\Documents\Visual Studio 2005\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 8\Common7\IDE\ItemTemplates\CSharp”
And copy the Sharepoint Folder to:
“C:\Users\<username>\Documents\Visual Studio 2005\Templates\ItemTemplates\Visual C#”
2. 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.

3. In order to register the Projects, Packages and Templates on you Workstation machine you have to add several registry keys to your Registry. Here is the whole stuff, just copy and paste it in a text file and save it with a*.reg extension. Here are the Registry settings for VSeWSS1.1:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\CLSID]

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

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Projects\{593b0543-81f6-4436-ba1e-4747859caae2}]
@="CSharpSPProjectFactory"
"DisplayName"=""
"DefaultProjectExtension"="csproj"
"DisplayProjectFileExtensions"="SharePoint Project Files (*.csproj);*.csproj"
"Language(VsTemplate)"="CSharp"
"Package"="{e57322ed-c1f7-4ac5-955e-d790d474d39e}"
"PossibleProjectExtensions"="csproj"
"ProjectTemplatesDir"="C:\\Program Files\\Microsoft SharePoint Developer Tools\\package"
"ShowOnlySpecifiedTemplates(VsTemplate)"=dword:00000000
"TemplateGroupIDs(VsTemplate)"="SharePointItemTemplateGroupID"
"TemplateIDs(VsTemplate)"="ContentType,EventReceiver,FieldControl,ListDefinition,ListDefinitionFromContentType,ListInstance,Module,Template,WebPart"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Projects\{9e5d3e2d-e4e2-418e-8d80-2f0da9a94f9a}]
@="SdtProjectFactory"
"DisplayName"=""
"DefaultProjectExtension"="csproj"
"DisplayProjectFileExtensions"="SharePoint Project Files (*.csproj);*.csproj"
"Package"="{bc426e8f-098f-47de-ad66-d11676c41c66}"
"PossibleProjectExtensions"="csproj"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Projects\{ec05e597-79d4-47f3-ada0-324c4f7c7484}]
@="VisualBasicSPProjectFactory"
"DisplayName"=""
"DisplayProjectFileExtensions"="SharePoint Project Files (*.vbproj);*.vbproj"
"Package"="{e57322ed-c1f7-4ac5-955e-d790d474d39e}"
"DefaultProjectExtension"="vbproj"
"PossibleProjectExtensions"="vbproj"
"ProjectTemplatesDir"="C:\\Program Files\\Microsoft SharePoint Developer Tools\\package"
"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\8.0\Packages\{bc426e8f-098f-47de-ad66-d11676c41c66}]
@="Microsoft.SharePoint.Tools.SdtPackage, SPDevTools, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
"ID"=dword:00000064
"Class"="Microsoft.SharePoint.Tools.SdtPackage"
"CodeBase"="C:\\Program Files\\Microsoft SharePoint Developer Tools\\package\\SPDevTools.dll"
"CompanyName"="Microsoft"
"InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
"MinEdition"="Standard"
"ProductName"="SharePoint Developer Tools"
"ProductVersion"="12.0000.0000.0000"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{bc426e8f-098f-47de-ad66-d11676c41c66}\SatelliteDll]
"DllName"="SPDevTools.dll"
"Path"="C:\\Program Files\\Microsoft SharePoint Developer Tools\\package"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{e57322ed-c1f7-4ac5-955e-d790d474d39e}]
@="Microsoft.SharePoint.Tools.SdtPackage, VSeWSS, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
"ID"=dword:00000064
"Class"="Microsoft.SharePoint.Tools.SdtPackage"
"CodeBase"="C:\\Program Files\\Microsoft SharePoint Developer Tools\\package\\VSeWSS.dll"
"CompanyName"="Microsoft"
"InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
"MinEdition"="Standard"
"ProductName"="Visual Studio extensions for Windows SharePoint Services 1.1"
"ProductVersion"="12.0001.0000.0000"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{e57322ed-c1f7-4ac5-955e-d790d474d39e}\SatelliteDll]
"DllName"="VSeWSSUI.dll"
"Path"="C:\\Program Files\\Microsoft SharePoint Developer Tools\\package"

 

If you want to use it with Visual Studio 2008 you have to replace "\8.0\" with "\9.0\" in the whole .reg File.

If ypu want to use it with Visual Studio 2008 on the sharepoint server you have to replace "\WINDOWS\" with "\WINNT\"

There was an anouncement taht the official support for Visual Studio 2008 will be published in June 2008. So my investigation is helpful until then.

!! Once again. No Warranties use at your own risk !!

Comments

  • Anonymous
    April 27, 2008
    Hallo Hr. Vollmer, bei einem x64 system hat der Trick leider nicht funktioniert. Den Pfad hatte ich aber ich auf Programme (x86) abgeändert! Noch eine weitere Frage, weil ich das jetzt leider nicht testen konnte. Kann ich über diesen Trick auch ganz normal mit den Microsoft.SharePoint.dll Komponente arbeiten, d.h. in einem Clientprogramm z.B. auf Vista das Objektmodell ansprechen? mfg Uli Armbruster

  • Anonymous
    May 06, 2008
    Hallo Herr Armbruster, soweit ich das sehe, geht nur kompilieren, da die DLLs ja da sind. Aber ausführen lässt sich so eine App nur auf dem Sharepoint Rechner. Die "normale" API lässt sich nur lokal verwenden. Um von einem anderen Rechner auf die Sharepoint Inhalte oder Sharepoint Admin Objekte zugreifen zu können muss man die Web Services verwenden. Viele Grüße Martin Vollmer