Reputation: 3289
Is it possible to use StyleCop to enforce these two rules?
Any other suggestions besides StyleCop are welcomed. Thank You.
Upvotes: 1
Views: 1018
Reputation: 18639
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).
Upvotes: 1