FAQ: How do I use the CommerceBuilder source code with VS2010?

Version: CommerceBuilder Source (AbleCommerce 7.0.6+)

Last Update: 3/15/11



How do I use the CommerceBuilder source code with VS2010?  Remove an unsupported attribute and convert.


If you have purchased the CommerceBuilder Source Code, and have tried to open the solution using VS2010, you will get an error when attempting to rebuild.

Example error:


Could not load referenced assembly "..\Website\bin\CommerceBuilder.Data.dll". Caught a BadImageFormatException saying "Could not load file or assembly 'C:\inetpub\wwwroot\CommerceBuilder_706_source_b14312\Website\bin\CommerceBuilder.Data.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.". C:\inetpub\wwwroot\CommerceBuilder_706_source_b14312\CommerceBuilder\ResGen CommerceBuilder



To Open CommerceBuilder Souce Code in Visual Studio 2010

  1. To get the files to open and compile in VS2010, take the original source that we provide.

  2. Before opening the solution in vs2010, open each project file. The first or second line of the file will be like this:

    <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="2.0">

    The last attribute is unsupported. Remove it and save the file. The corrected line should look like:

    <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  3. You need to make this change for all three *.csproj files:


  4. After removing this attribute, open the solution in VS2010 and proceed with the conversion.


Copyright © 1994 - 2018 AbleCommerce.com, All rights Reserved | Privacy Policy

A division of Able Solutions Corporation, headquarters located in Vancouver, WA