Developing in Visual Studio with Commerce Builder Source
- MisterMike
- Ensign (ENS)
- Posts: 12
- Joined: Tue Apr 16, 2013 7:37 am
Developing in Visual Studio with Commerce Builder Source
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
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" />
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
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
- MisterMike
- Ensign (ENS)
- Posts: 12
- Joined: Tue Apr 16, 2013 7:37 am
Re: Developing in Visual Studio with Commerce Builder Source
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" />
Instead of:
<Import Project="$(SolutionDir)\Tools\StyleCop\StyleCop.Targets" />
I have something like:
<Import Project="c:\Projects\AbleCommerce\Tools\StyleCop\StyleCop.Targets" />