Is it possible to verify custom code/architecture rules inside vs2010 without having a tfs server?
We have TFS. We are moving to TFS soon, but I'd like to know if it's possible to check code against a policy that is not attached to TFS. Especially, if you can do so without having a TFS server attached to VS at all. I'd like to have the policy already TFS capable, or very easily migrated.
We are all on VS2010 ultima开发者_如何学运维te.
Check-in policies is something that the TFS server executes. There's no other way to do it.
But what do you mean with "TFS capable" anyway? There are 'only' check-in policies of the kind 'There must be a check-in comment' or 'There must be an associated work item', so there is nothing you could prepare with respect to that...
Thomas
Custom code analysis rules fit the bill here very well.
Writing your own custom rules
How to write custom static code analysis rules and integrate them into Visual Studio 2010 - 2010.03.26
Custom Code Analysis Rules in VS2010 (and how to make them run in FxCop ... -2010.01.06
Writing custom rules for TFS 2008 Code Analysis check-in policy -2009.03.17
So code analysis/fxcop rules are now integrated into vs2010 instead of having to run a separate application, there is a build server capable command line to dump xml results for your build process/server, and the rules are easily migrated/imported to the TFS check-in policies.
How to: Synchronize Code Project Rule Sets with Team Project Check-in Policy
精彩评论