logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
ray22901031  
#1 Posted : Wednesday, July 7, 2021 3:19:15 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 827

Thanks: 3 times
Was thanked: 13 time(s) in 13 post(s)
I am having a serious problem rebuilding CommerceBuilder, my developer says it has to do with "StyleCop". This needs to be deactivated, but I'm not sure how to do this. My project is now on hold because of this, please advise as quickly as you can to rectify this problem.

Using version 9.0.4

Thanks

Edited by user Wednesday, July 7, 2021 10:16:21 PM(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

ray22901031  
#2 Posted : Wednesday, July 7, 2021 4:42:58 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 827

Thanks: 3 times
Was thanked: 13 time(s) in 13 post(s)
Okay, I was able to recompile by creating a new "Settings.StyleCop" file and saving the other one under a different name.

<StyleCopSettings Version="105">
<GlobalSettings>
<BooleanProperty Name="RulesEnabledByDefault">False</BooleanProperty>
</GlobalSettings>
</StyleCopSettings>

But here's my question to the developers of Ablecommerce, a majority of the errors I'm getting are because my developers decided code using his preferred style, would this be considered correct or incorrect? A majority of the error seem to be evolving around the developers use of "//".

Here are some of the errors below, as a person that's trying to learn I would appreciate any valuable input to these issues.

CSharp.Layout : A single-line comment must be preceded by a blank line or another single-line comment, or must be the first item in its scope. To ignore this error when commenting out a line of code, begin the comment with '////' rather than '//'.

CSharp.Layout : A closing curly bracket must not be preceded by a blank line.

CSharp.Documentation : The property must have a documentation header.

CSharp.Documentation : The partial class element must have a documentation header containing either a summary tag or a content tag.

Thank you for anyone replying with knowledgeable information, just trying to learn.

Update information:

What is extremely strange about this problem is the following: if I log into our Git repository, download and save the code as a zip file, unzip and them rebuilt, all seems to work fine, no error messages. Of course at this point there is no repository attached to the code.

BUT

If I do a checkout, regardless if I'm pulling into a a new empty directory or over the existing project, then try to rebuild, the errors occur. Please note that these errors never occurred before. I also understand, if there was a problem with the code, it would not rebuilt or compile, but this is just being too picky here. Look forward to some information regarding this.

Edited by user Wednesday, July 7, 2021 10:23:01 PM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.