1

Is it possible to use StyleCop to enforce these two rules?

  1. Get latest version before check in
  2. Build solution with a specific configuration before check in

Any other suggestions besides StyleCop are welcomed. Thank You.

user11081980
  • 3,059
  • 4
  • 30
  • 48

1 Answers1

1

No. Stylecop is an open source static code analysis tool from Microsoft that checks C# code for conformance to StyleCop's recommended coding styles and a subset of Microsoft's .NET Framework Design Guidelines.
(wikipedia)

To enforce the getting of the latest version before checking in, you could use a custom TFS policy. This seems to have been successful for other users.

To check that a particular solution builds before checking in, you could use a Gated Check-in for that solution. The code won't be committed if that solution (and it's tests do not pass).

Community
  • 1
  • 1
NikolaiDante
  • 18,469
  • 14
  • 77
  • 117