This project has moved. For the latest updates, please go here.

Option to ignore autogenerated file

May 29, 2013 at 5:01 AM

At our company we use your policy in production environment for over half a year now. It works great, except for giving false positives for automatically generated files. For example, WinForms .designer.cs, project resources file (Resources.designer.cs), etc.

Is it possible to update the policy with an option to exclude autogenerated or designer files?

Thank you,
May 29, 2013 at 6:40 AM
Hello Zvonko,

There is no option for that by design. At my current company we use another policy to activate cdcp only for specific paths.
The policy is named CustomRegexPathPolicy and can be found here:

When I'm back at work I can send you a regex to exclude designer files and auto generated web service proxy classes.

May 29, 2013 at 6:56 AM

Thank you for very fast response.

The solution with regex is ok. Does the mentioned policy work under VS2012, too (because on the webpage it says it's for VS2010)?