Building FakePoint

To get FakePoint installed you need to build it from the source code, because you may need to follow your debugging path into it.

You can either use a source control client to retrieve the latest stable version from the source code repository in Codeplex. Or if you would prefer not to have to install a client, just get the source code zip file from under the Downloads tab.

Once you have installed the source directory on your machine, you will need to open the solution file using Visual Studio and build it. You can use Visual Studio 2008 (not tested with VS2005), or Visual Studio 2010, but in the latter case you will need to upgrade the solution files using the conversion wizard (this happens automatically). You may need to run the build a couple of times to resolve dependencies between projects.

Now that you have the solution built, you can run the tests in the sample code. To do this in Visual Studio using MSTest, select the Test menu and choose Run, and then All Tests in Solution. If you don't have MSTest, for example you are using NUnit, you will need to change the attributes on the test classes.

Once installed, open your SharePoint solution in Visual Studio and create a test project. By default this will include a reference to the output assembly of your production project. You can't use this because it is already bound to the real SharePoint libraries. Instead you need to delete the reference to your project output and add all your source files to the test project, ensuring they are added as links (this is important, otherwise you will get copies of your source files). Then add a reference to the FakePoint.dll created in the earlier step.

Last edited Jan 20, 2010 at 8:22 PM by flosim, version 2


flosim Jan 20, 2010 at 8:23 PM 
Updated - thanks for comments.

zimmer_frank Jan 20, 2010 at 8:02 PM 
Okay, it works now - I just redid the build and it worked.

zimmer_frank Jan 20, 2010 at 8:00 PM 
On VS2010 I needed to run the conversion wizard. Also it showed a missing file FakePoint.dll.