FxCop Custom Rules for Custom Controls
-
Wednesday, July 18, 2012 8:25 PM
Hello,
In my project I am using custom controls instead of normal ASP.NET controls. We have build an architecture on .NET and are using its controls.
Now I need to write a custom rule to check for if some of windows controls are being used. Reason being, my team needs to be limited to only my custom controls that were designed to replace the windows controls.
Example: I need to search and if they are using System.Windows.Controls.Textbox.....I need it to be an error.
Can anyone please help me out with code?
I hope the poblem is clear ..... in case of any further clarifications needed please let me know.
- Edited by Sergey Belous Wednesday, July 18, 2012 8:30 PM
All Replies
-
Friday, July 20, 2012 8:29 AMModerator
Hi Sergey,
Thank you for posting in the MSDN forum.
Check this thread “Fxcop Custom Rule to check for Custom Controls”, maybe it could provide useful information.
In addition, to help you resolve this issue, I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Have a nice weekend,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
-
Thursday, September 06, 2012 3:47 AM
Hi Sergey,
Some useful posts:
http://social.msdn.microsoft.com/Forums/en-CA/vstscode/thread/806dbcc8-49fb-4d79-a70c-2525dac98fa7
http://social.msdn.microsoft.com/Forums/en-US/vstscode/thread/8407edd9-efb1-42d0-89fb-ffa68d93d920
Thanks & Regards,
Jian-Wei Yu [MSFT]
Microsoft Online Community Support
--------------------------------------------------------------------------------
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

