Geeks With Blogs

News This is the *old* blog. The new one is at blog.sixeyed.com

Elton Stoneman
This is the *old* blog. The new one is at blog.sixeyed.com

[Source: http://geekswithblogs.net/EltonStoneman]

The static analysis of BizTalkCop runs on compiled BizTalk assemblies, and as BizTalk 2009 projects follow the standard Visual Studio format, it's simple to include the rules for BizTalk projects in Visual Studio 2008.

Setup

1. Make the rules available to Visual Studio

The rules assembly BizTalkCop.Rules.dll needs to be in the static analysis directory of Visual Studio – by default:

    C:\Program Files\Microsoft Visual Studio 9.0\Team Tools\Static Analysis Tools\FxCop\Rules

Either copy the assembly from an existing installation (which will be in C:\Program Files\Microsoft FxCop 1.36\Rules by default), or select the Rules path as the destination folder on a new install.

2. Enable the BizTalkCop rules for your project

In the project settings, select "Enable Code Analysis on Build", and select the BizTalkCop rules:

Then when you run a build, the BizTalkCop messages will be shown as warnings:

If you're particularly Draconian, you can set "Treat Warnings as Errors" for one or all BizTalkCop rules, so any failures are shown as errors, and will break the build.

Differences in Visual Studio and FxCop functionality

You can use Visual Studio's Suppress Message functionality to ignore a particular rule for a particular artefact. Suppressing works for both the "In Project Suppression File" and the "In Source" options, but most of the source is generated so the suppressions will be lost when they change – adding to Project Suppression File is safer.

Visual Studio doesn't allow you to configure rule values as FxCop does. The dynamic BizTalkCop rules which run against application bindings use configured values for the application name and management database, so they won't function through Visual Studio. (See Introducing: BizTalkCop for information on configurable rules). Also if your standards differ from the default configured values, you'll need to change the rules in code and rebuild to get the new values through Visual Studio.

A good compromise would be to use the static rules in Visual Studio at development time, then have a separate FxCop project which includes the dynamic rules, and runs as part of the build process once the BizTalk application has been deployed to the build/staging environment.

Posted on Friday, November 27, 2009 7:14 AM CodePlex Project , FxCop , BizTalk 2009 | Back to top


Comments on this post: Using BizTalkCop in BizTalk 2009

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
Just found this blog and it is a very good one I must admit! Since good points mentioned here and I’ll be on the look out for your new content!
Left by Funny Games on Mar 08, 2010 8:22 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
The post is written in very a good manner and it entails many useful information for me. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post.
Left by Cheap flights to detroit on Mar 19, 2010 8:20 PM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
Hi, your website's design is first-class and i like it.I am really grateful to you for providing me with such useful information.Thanks a lot.Keep blogging.
Left by imergent.55 on Mar 24, 2010 1:43 PM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
this article is very useful thanks....
Left by dinda on Mar 30, 2010 6:16 PM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
First You got a great blog .I will be interested in more similar topics.Thanks a bunch for sharing such a great and informative post with us. Keep blogging.
Left by disk backup solutions56 on Apr 26, 2010 8:30 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...

Interesting post and thanks for sharing. Some things in here I have not thought about before.Thanks for making such a cool post which is really very well written.will be referring a lot of friends about this.Keep blogging.
Left by rat trap on May 06, 2010 2:18 PM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
I am interested very much in the subject matter of your blog.I like very much your way of presentation.I got more useful information on this blog.Thanks for sharing the useful information….Keep it up.
Left by leg vein pain on May 20, 2010 3:42 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
That's a great post and I must say it's not only a simple but also a entertaining one.Thanks a lot for sharing.
Left by neways43 on May 24, 2010 8:59 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
This is the most comprehensive guide I have come across.These tips are really helpful. Again thanks for sharing your knowledge with us.Keep up the good work.
Left by platinum protection16 on May 25, 2010 8:53 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
Pretty informative post and really impressive thinking,I like the presentation and your style of writing.Thanks.Keep blogging.
Left by Farmhouse accommodation Tuscany on Jun 04, 2010 9:06 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
This is one of the creative post and it’s very innovative one.Each & every tips of your post are awesome.Thanks a lot for sharing.Keep up the good works.
Left by sozo48 on Jun 24, 2010 2:57 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
Great post.It’s really helpful for me which I have ever seen.Thanks a bunch for sharing such a great and informative post with us. Keep blogging.
Left by Team National421 on Jul 27, 2010 9:10 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
Your blog provided us with valuable information to work with. You have done a fantastic job.Keep it up.
Left by USANA493 on Jul 28, 2010 3:55 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
Subject of this post is very interested.Thanks for sharing your ideas!!I really appreciate it!Thanks a lot.Keep blogging.
Left by nutritionals.47 on Jul 28, 2010 4:29 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
Although Visual Studio is great I love the good old Visual Basic 6.0 days.
Left by Generators on Sep 08, 2010 2:14 PM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
Your posts are always so interesting and informative. Always do enjoy returning back to read more. I keep your site bookmarked now. Thanks!
Left by Ferienhaus Apulien on Sep 30, 2010 2:50 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
Thanks for taking the time to share this, I feel strongly about it and love reading more on this topic.Thanks a lot.Keep blogging.
Left by mountain bike marken on Sep 30, 2010 6:53 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
Your posts are always so interesting and informative. Always do enjoy returning back to read more. I keep your site bookmarked now. Thanks!
Left by tuscany farm holiday on Oct 01, 2010 6:59 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
Hi your blog's design is simple and clean and i like it. Your blog posts are superb. Please keep them coming. Greets!!!
Left by peter lowe on Oct 09, 2010 5:46 AM

# lia jems
Requesting Gravatar...
I like every post in this blog. Really a nice work has done. I appreciate the blog owner.
Left by canadian flowers on Mar 10, 2011 8:02 AM

# john carrie
Requesting Gravatar...
Nice post man. Thanks a lot for the kind of perfect topic I have not a lot of information about it but I have got an extra unique info in your unique post. I also like posting comments because helps build community.
Left by mothers day flowers delivery Yem on Mar 10, 2011 8:04 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
you have done a good job here, great topic ;-) Indian escorts London
Left by London Escorts on Jun 05, 2011 12:48 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
Its a great pleasure reading your post. Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work
Left by brazil flowers on Jun 07, 2011 1:00 PM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.
Left by KVM Drawer on Jul 28, 2011 6:38 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
This blog is very good and informative. It is difficult task but your post and experience serve and teach me how to handle and make it more simple and manageable
_______________
custom wine label
Left by darrensy on Aug 25, 2011 5:33 PM

# Flowers UK
Requesting Gravatar...
Excellent blog! Thank you for this awesome well needed blog. I’ll be sure to visit this website in the near future.
Left by chris1985 on Sep 12, 2011 7:53 PM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
You designed some excellent points there. I did a research within the theme and determined most persons will agree with your webpage. illusion mage
Left by Shawn on Sep 23, 2011 4:59 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
This information is quite helpful for the students like us who are preparing for this exam.
I will surely try it and post my reviews very soon.versace sunglasses
Left by kline on Sep 23, 2011 7:41 AM

# re: Using BizTalkCop in BizTalk 2009
Requesting Gravatar...
This is a nice site. Good polished interface and nice informative articles. I will be coming back soon, thanks for the great article.
seo melbourne
Left by seo melbourne on Oct 10, 2011 6:27 AM

Your comment:
 (will show your gravatar)


Copyright © Elton Stoneman | Powered by: GeeksWithBlogs.net