Page 1 of 1

Adding Source Code to Visual Studio 2012 Project

Posted: Mon Mar 16, 2015 7:36 am
by mbartens
Just purchased the source and I'd like to have the source code and website all in one solution to aide in debugging. Hopefully this is possible.
I tried opening up my web solution and adding the product files for the source.

I'm trying different things, getting different errors. Is there a set of instructions on how to properly set this up?

Re: Adding Source Code to Visual Studio 2012 Project

Posted: Mon Mar 16, 2015 11:19 am
by Katie
Here is a link to a different forum which should help you -

viewtopic.php?f=65&t=18071

Re: Adding Source Code to Visual Studio 2012 Project

Posted: Tue Mar 17, 2015 3:51 am
by mbartens
I'm still a little confused. Does the source and the website need to be run as different solutions ?

I was trying to work with one solution that had the website and source code.

Re: Adding Source Code to Visual Studio 2012 Project

Posted: Tue Mar 17, 2015 4:16 am
by mazhar
Simply copy all the contents of source code archive to same folder where you have website and its solution. Then open website solution in Visual Studio and use Add Existing project command and include CommerceBuilder, CommerceBuilder.UI, CommerceBuilder.WebApi projects to same solution. Now you should be able to make things work under same solution.

Re: Adding Source Code to Visual Studio 2012 Project

Posted: Tue Mar 17, 2015 5:44 am
by mbartens
So I added all the projects in the order you listed.
I modified a file in CommerceBuilder so I compiled it then copied the CommerceBuilder.dll to the Website bin folder and now it's saying
Error 1 The type or namespace name 'ShopByChoice' does not exist in the namespace 'CommerceBuilder.Search' (are you missing an assembly reference?) C:\inetpub\wwwroot\Website\App_Code\PageHelper.cs 823 52 C:\...\Website\


Any ideas?

Re: Adding Source Code to Visual Studio 2012 Project

Posted: Tue Mar 17, 2015 7:59 am
by mazhar
Confirm in CommeceBuilder project under Search Namespace exist a file called ShopByChoice.cs

Re: Adding Source Code to Visual Studio 2012 Project

Posted: Tue Mar 17, 2015 8:36 am
by mbartens
As it turns out I had the wrong version of the source. Thank you for your help!