Developing in Visual Studio with Commerce Builder Source

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
MisterMike
Ensign (ENS)
Ensign (ENS)
Posts: 12
Joined: Tue Apr 16, 2013 7:37 am

Developing in Visual Studio with Commerce Builder Source

Post by MisterMike » Wed Apr 24, 2013 3:37 pm

I'm trying to add the CommerceBuilder source to my AbleCommerce_WAP solution. When I simply try to add the CommerceBuilder and CommerceBuilder.UI projects to my AbleCommerce_WAP.sln solution, I get errors loading the source projects. (It's fussing about StyleCop, specifically) Is there a fix for this, or should have these projects set up another way? Looks like I'm using AbleCommerceGold-GoldR2-b4808-WAP and AbleCommerceGold-GoldR4-b5410-SRC.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Developing in Visual Studio with Commerce Builder Source

Post by AbleMods » Fri Apr 26, 2013 5:49 am

I ran into the same thing. StyleCop reminds me too much of my ex-wife....

You have two options:

1) To keep StyleCop validation, copy the Tools folder from the source distribution to your solution folder. Put it into the location where it's looking...usually underneath the Solution folder. You'll see the path it's whining about in the error message.

2) To remove StyleCop validation, open the CommerceBuilder.csproj file, locate this line, and remove it:

<Import Project="$(SolutionDir)\Tools\StyleCop\StyleCop.Targets" />
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
MisterMike
Ensign (ENS)
Ensign (ENS)
Posts: 12
Joined: Tue Apr 16, 2013 7:37 am

Re: Developing in Visual Studio with Commerce Builder Source

Post by MisterMike » Fri Apr 26, 2013 12:48 pm

I ended up hard-coding the path to the StyleCop.Targets file in my csproj file.
Instead of:
<Import Project="$(SolutionDir)\Tools\StyleCop\StyleCop.Targets" />
I have something like:
<Import Project="c:\Projects\AbleCommerce\Tools\StyleCop\StyleCop.Targets" />

Post Reply