How to create a CA rule like "You should log Exception.ToString(); not Exception.Message."
-
Thursday, July 12, 2012 9:49 AMHow to create a CA rule like "You should log Exception.ToString(); not Exception.Message."
All Replies
-
Thursday, July 12, 2012 9:49 AMHow to create a CA rule like "You should log Exception.ToString(); not Exception.Message."
- Merged by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Friday, July 13, 2012 8:58 AM The same issue.
-
Friday, July 13, 2012 9:19 AMModerator
Hi chaituatp,
Thank you for posting in the MSDN forum.
We often use the FXCOP to write the custom Rule. If you don’t know how to use the write a FxCop custom rule, then you can ref this guide: http://www.codeproject.com/Articles/30666/7-Steps-to-Write-Your-Own-Custom-Rule-using-FXCOP
There are some simple samples, if possible, you could check it, maybe you could get helpful information.
http://msdn.microsoft.com/en-us/magazine/hh335064.aspx
http://www.thescarms.com/dotnet/FxCop2.aspx
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Monday, July 23, 2012 2:46 AM
-
Friday, July 20, 2012 2:00 AMModerator
Hi chaituatp,
I am writing to check the status of the issue on your side.
What about this problem now?
Could you get any useful information from my reply?
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us

