Elton Stoneman

  Home  |   Contact  |   Syndication    |   Login
  120 Posts | 0 Stories | 3601 Comments | 0 Trackbacks

News

Archives

Post Categories

[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.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Friday, November 27, 2009 7:14 AM

Feedback

# re: Using BizTalkCop in BizTalk 2009 3/8/2010 8:22 AM Funny Games
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!


# re: Using BizTalkCop in BizTalk 2009 3/19/2010 8:20 PM Cheap flights to detroit
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.

# re: Using BizTalkCop in BizTalk 2009 3/24/2010 1:43 PM imergent.55
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.

# re: Using BizTalkCop in BizTalk 2009 3/30/2010 6:16 PM dinda
this article is very useful thanks....

# re: Using BizTalkCop in BizTalk 2009 4/26/2010 8:30 AM disk backup solutions56
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.

# re: Using BizTalkCop in BizTalk 2009 5/6/2010 2:18 PM rat trap

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.


# re: Using BizTalkCop in BizTalk 2009 5/20/2010 3:42 AM leg vein pain
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.

# re: Using BizTalkCop in BizTalk 2009 5/24/2010 8:59 AM neways43
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.

# re: Using BizTalkCop in BizTalk 2009 5/25/2010 8:53 AM platinum protection16
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.

# re: Using BizTalkCop in BizTalk 2009 6/4/2010 9:06 AM Farmhouse accommodation Tuscany
Pretty informative post and really impressive thinking,I like the presentation and your style of writing.Thanks.Keep blogging.

# re: Using BizTalkCop in BizTalk 2009 6/24/2010 2:57 AM sozo48
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.

# re: Using BizTalkCop in BizTalk 2009 7/27/2010 9:10 AM Team National421
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.

# re: Using BizTalkCop in BizTalk 2009 7/28/2010 3:55 AM USANA493
Your blog provided us with valuable information to work with. You have done a fantastic job.Keep it up.

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

# re: Using BizTalkCop in BizTalk 2009 9/8/2010 2:14 PM Generators
Although Visual Studio is great I love the good old Visual Basic 6.0 days.

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

# re: Using BizTalkCop in BizTalk 2009 9/30/2010 6:53 AM mountain bike marken
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.

# re: Using BizTalkCop in BizTalk 2009 10/1/2010 6:59 AM tuscany farm holiday
Your posts are always so interesting and informative. Always do enjoy returning back to read more. I keep your site bookmarked now. Thanks!


# re: Using BizTalkCop in BizTalk 2009 10/9/2010 5:46 AM peter lowe
Hi your blog's design is simple and clean and i like it. Your blog posts are superb. Please keep them coming. Greets!!!


# lia jems 3/10/2011 8:02 AM canadian flowers
I like every post in this blog. Really a nice work has done. I appreciate the blog owner.

# john carrie 3/10/2011 8:04 AM mothers day flowers delivery Yem
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.


# re: Using BizTalkCop in BizTalk 2009 6/5/2011 12:48 AM London Escorts
you have done a good job here, great topic ;-) Indian escorts London

# re: Using BizTalkCop in BizTalk 2009 6/7/2011 1:00 PM brazil flowers
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

# re: Using BizTalkCop in BizTalk 2009 7/28/2011 6:38 AM KVM Drawer
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.

# re: Using BizTalkCop in BizTalk 2009 8/25/2011 5:33 PM darrensy
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


# Flowers UK 9/12/2011 7:53 PM chris1985
Excellent blog! Thank you for this awesome well needed blog. I’ll be sure to visit this website in the near future.

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

# re: Using BizTalkCop in BizTalk 2009 9/23/2011 7:41 AM kline
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


# re: Using BizTalkCop in BizTalk 2009 10/10/2011 6:27 AM seo melbourne
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


Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: