This project has moved. For the latest updates, please go here.
Objective

Enable Codeplex community developers to compile and debug SLK using existing CTP 3 files posted to the community site.
This document outlines the steps that are needed to 'fix up' the source code to make it buildable. Future releases will have most of these fixes already in place.

Steps
  1. Download and unzip the CTP 3 Runtime Binaries, Documentation, and Source Code from the Codeplex site.
  2. Install Windows Sharepoint Services 2007 Beta 2 with SLK following the steps in the GettingStarted.doc file found in the Runtime Binaries zip.
  3. Patch the source code files so that they are usable outside of the build environment:
    1. Create a "References" directory at the root of source code directory (SLK-SourceCode-1.1.0.633-ENU\References)
      1. Copy Microsoft.Sharepoint.dll from your Sharepoint Server's hard drive into the References directory. This DLL is found at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI\Microsoft.Sharepoint.dll
      2. Copy the Microsoft.LearningComponents.Compression.dll into the References directory. This file is found in the SharePointLearningKit.wsp file that is in the Runtime Binaries directory SLK-Install-1.1.0.633-ENU\Release\SharePointLearningKit.wsp. To extract the file, make a copy of the WSP file and rename it to end in .CAB. Open the CAB file using Windows Explorer. Now you can copy the file using standard Explorer file copy operations.
    2. Copy SlkSchema.xml, SlkSchema.sql, SlkSettings.xml, and SlkSettings.xsd from the Documentation directory SLK-SDK-CTP3\SLK into the source code SLK-SourceCode-1.1.0.633-ENU\SLK
    3. Fix-up the csproj files:
      1. SLK-SourceCode-1.1.0.633-ENU\Src\LearningComponents\LearningComponents.csproj:
        1. Remove the broken reference to Compression.vcproj, replace it with a reference to SLK-SourceCode-1.1.0.633-ENU\References\Microsoft.LearningComponents.Compression.dll using "Browse".
      2. SLK-SourceCode-1.1.0.633-ENU\Src\SharePoint\SharePoint.csproj
        1. Remove the broken reference to Compression.vcproj, replace it with a reference to SLK-SourceCode-1.1.0.633-ENU\References\Microsoft.LearningComponents.Compression.dll using "Browse".
        2. Remove the broken references to Microsoft.Sharepoint.Library and Microsoft.Web.Design.Server.
      3. SLK-SourceCode-1.1.0.633-ENU\Slk\Dll\SlkDll.csproj
        1. Remove the broken reference to Compression.vcproj, replace it with a reference to SLK-SourceCode-1.1.0.633-ENU\References\Microsoft.LearningComponents.Compression.dll using "Browse".
        2. Remove the broken references to Microsoft.Sharepoint.Library and Microsoft.Web.Design.Server.
    4. Fix-up the sln files:
      1. SLK-SourceCode-1.1.0.633-ENU\Src\LearningComponents\LearningComponents.sln
        1. Remove the broken reference to Compression.vcproj.
        2. Remove the broken references to MiscTestUtilities, UnitTests
      2. Remove redundant SLN files:
        1. SLK-SourceCode-1.1.0.633-ENU\Src\Storage\Storage.sln
        2. SLK-SourceCode-1.1.0.633-ENU\Src\Sharepoint\Sharepoint.sln
  4. Open SLK-SourceCode-1.1.0.633-ENU\Slk\Dll\SlkDll.sln and build. This will build other dependent projects.
    1. If you compiled the source code on your server, the updated SLK assembly has been placed in the GAC and you are now ready to debug.
  5. Optionally, you can create a new WSP file:
    1. Edit SLK-SourceCode-1.1.0.633-ENU\Slk\Solution\makefile in notepad. Comment out using a leading # all lines that start with ..\..\Tools\SignCode.
    2. Copy all GIF files from the SharePointLearningKit.CAB file that you created from the .WSP file above from Layouts\SharePointLearningKit\Frameset\Images into SLK-SourceCode-1.1.0.633-ENU\Slk\App\Frameset\Images.
    3. Open a Visual Studio 2005 Command Prompt. Change directory into SLK-SourceCode-1.1.0.633-ENU\Slk\Solution. Type 'nmake deb' to build a debug build of the WSP file.

Last edited Sep 20, 2006 at 5:45 PM by JayBeavers, version 2

Comments

No comments yet.