Question

I have a good sized hobby project, around 66K LOC, over at http://www.wheelmud.net Recently, a team member got the bulk of the code MS StyleCop compliant. The only thing left is our data layer. As you can imagine, this gets regenerated fairly often, as we are still in the early stages of development.

I tried modifying the aspx templates, but I saw quite a few things that I need fixed. The first thing I saw was that the using statements were on top of the namespace declaration. Is there any way to modify this behavior through the templates, or do I need to take a chainsaw to SubStage's code?

I don't mind changing the source, but I wanted to ask first before I jump in. I have done this before for other projects.

Was it helpful?

Solution

I'm going to roll all of the existing templates into T4 to avoid future template issues. We'll still support the old stuff - but using T4 to do this will really help situations like yours

OTHER TIPS

In version 2.2, a patch was added to add a tag to the top of generated files so they would be ignored by StyleCop. See this issue.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top