Page 1 of 1
Developing in Visual Studio with Commerce Builder Source
Posted: Wed Apr 24, 2013 3:37 pm
by MisterMike
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.
Re: Developing in Visual Studio with Commerce Builder Source
Posted: Fri Apr 26, 2013 5:49 am
by AbleMods
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" />
Re: Developing in Visual Studio with Commerce Builder Source
Posted: Fri Apr 26, 2013 12:48 pm
by MisterMike
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" />