Skip to content

FxCop 1.36 and StyleCop 4.3

While this is not new news, I realized that finding the link to download FxCop 1.36 is still not as straight forward as I’d like it to be (most links are still pointing to the 1.35 on msdn code or the 1.36 Beta 2 release), so I thought I would add the link here so I can find it again, or anyone else for that matter.

For those who haven’t used it before, FxCop is a tool to analyze .NET assemblies based on a set of rules in order to find potential defects or design issues. The tool comes with a lot of very helpful built in analysis rules that are broken out into seperate categories (e.g. Performance, Design, Globalization, etc..). A lot of Continuous Integration tools have the ability to include FxCop analysis as part of a build so that the warnings FxCop generates can be tracked over time (hopefully in the *downward* direction).

And on a somewhat related note, I also wanted to add the download link for StyleCop, which ironically, is easy to find even though I’m pretty sure a lot more people are using FxCop.

StyleCop is a tool which analyzes C# source code using a set of rules (much like FxCop) in order to enforce code styling guidelines. It can be used in Continuous Integration projects to verify code style rules are being met. The rule documentation is also available at the link above. I have found reading the rule justifications to be quite educational at times, especially since many of the StyleCop rules run counter to common .NET programming practices that I’ve seen.

  • email
  • DotNetKicks
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • LinkedIn
  • Facebook
  • Twitter
  • Google Bookmarks
  • Live

Unofficial JQuery 1.3 Visual Studio Intellisense File

In lieu of the official Visual Studio 2008 Intellisense file for jQuery, the jQuery intellisense file generator at http://www.infobasis.com/sandpit/jQuery-Intellisense/ has been updated to support jQuery 1.3.0 (See this post for more details). The will allow you to get proper jQuery 1.3 intellisense in your applications until the official version is released. The above linked script generator uses the official jQuery API documentation to build the intellisense file, so you don’t need to worry about it being inaccurate or imcomplete just because it’s not the “official” version.

Happy jQuerying!

  • email
  • DotNetKicks
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • LinkedIn
  • Facebook
  • Twitter
  • Google Bookmarks
  • Live

jQuery 1.3.0 Released!

A quick glance at the jQuery website today revealed that jQuery 1.3.0 has been released and is available for download! This release coincides with jQuery’s third birthday. You can find the release notes for jQuery 1.3 here. At this moment there is no link for an updated Visual Studio intellisense file, but using the old one should get you by for now.

I blogged previously about this release and the performance enhancements it’s expected to bring, but the release notes spell out in detail the performance differences of the new selector engine.

Along with this release, jQuery has created a new API Browser at http://api.jquery.com that is available in addition to the existing jQuery docs site. Whats nice about the new api browser is it can be downloaded and installed as an Adobe Air application.

Happy birthday jQuery!

  • email
  • DotNetKicks
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • LinkedIn
  • Facebook
  • Twitter
  • Google Bookmarks
  • Live

Sample Source Code for Silverlight 2 Runtime and SDK Controls

Microsoft has posted the source code and unit tests for many of their Silverlight Controls on the Microsoft Download Center. From the download page:

 

Brief Description
This download contains the source code and unit tests for the managed Silverlight 2 controls included in System.Windows.dll, System.Windows.Controls.dll, and System.Windows.Controls.Data.dll.

 

Quick Details
File Name: Silverlight 2 Control Sample Source Code and Apps.exe
Version: 2
Date Published: 1/7/2009
Language: English
Download Size: 881 KB
Estimated Download Time: 2 min 56K

 

The source code for the Silverlight 2 controls includes implementations for the following controls: 
  • ButtonBase
  • Button
  • HyperlinkButton
  • CheckBox
  • RadioButton
  • CheckBox
  • ToogleButton
  • RepeatButton
  • RangeBase
  • Slider
  • ScrollBar
  • ProgressBar
  • Calendar
  • DataGrid
  • DatePicker
  • GridSplitter
  • TabControl

You will need need the “Microsoft® Silverlight™ Tools for Visual Studio 2008 SP1” installed to open to projects and code included in the download.

Many thanks to Greg at Greg’s Cool [Insert Clever Name] of the Day blog for discovering this.

  • email
  • DotNetKicks
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • LinkedIn
  • Facebook
  • Twitter
  • Google Bookmarks
  • Live

VS2008 SP1 Hotfix to Support “-vsdoc.js” IntelliSense Doc Files

Back in October of last year Microsoft released Visual Studio 2008 SP1 which fixed intellisense support for several javascript libraries, including JQuery. In order to use this with jQuery though, it was necessary to download a seperate jQuery intellisense file and add references to it. If you wanted the intellisense in a js file, you’d reference it using a standard js reference like this:

/// <reference path="MyIntellisenseFile.js" />

However, if you needed intellisense in an ASP.Net page, you needed to add the reference to the intellisense file in a server tag that would prevent it from being sent to the client, usually by wrapping the script reference tag like this:

<% if(false) { %>
<script src="MyIntellisenseFile.js" type="text/javascript"></script>
<% } %>

Unbeknowst to me, Last November the VS Web Tools team released a hotfix to VS 2008 SP1 that alleviates a lot of this trouble. Now all you have to do is just reference the jQuery library and have the intelisense file in the same directory following the naming convention of filename-vsdoc.js (e.g. if your jQuery file is named jQuery.js, your intellisense file would be named jQuery-vsdoc.js) and Visual Studio will automatically find the file and provide you with intellisense support. No more conditional ASP.Net server tags. Woo! The VS 2008 hotfix is currently available on the MSDN Code Gallery.

If you’re looking for the official Visual Studio intellisense file for jQuery, you can grab it from the jQuery downloads page (It’s found in the Current Release section). Thanks to Joe Healy for pointing out to me that there was an official version.

  • email
  • DotNetKicks
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • LinkedIn
  • Facebook
  • Twitter
  • Google Bookmarks
  • Live