FxCop, MbUnit and a New Calendar for the Scaffolds

May 24, 2007 02:01

First off, thanks to all of you that have been contributing SubSonic patches. It's great to see everyone chipping in to make SubSonic better. I've been doing my best to get them incorporated as quickly as possible, but don't worry if yours hasn't made it in yet, some are just simpler to implement than others.

In addition to the patches, bug fixes, and capitalization debates, there are a few new changes and events that I want to mention. The first is that I'm in the process of doing a global sweep on the code base in conjunction with an FxCop analysis. While I won't be implementing all of the recommendations, I will be addressing any major issues that arise regarding CLS compliance, globalization, performance and anything that helps support SubSonic on Mono. The first batch of changes was checked in a few hours ago (Revision 49), with more to come.

Next, as of Revision 42, the SubSonic unit tests, which were formerly built on the Team Edition testing framework, have been converted to MbUnit. This removes the dependency on the Team Edition of Visual Studio, and allows anyone to run the unit tests. While at certain points in the past, we've supported NUnit and later MbUnit along side the VSTS tests (in varying degrees of synchronization), we're committing to MbUnit going forward.

Finally, by popular demand, the Scaffolds now feature a new calendar control. While the time support is still being tweaked, the new calendar control already allows postback-free date changes, and quick navigation across large time periods:

So that's the latest... Just a reminder, you can keep track of latest development stats here. Also, I'm still looking for cool ideas for the extended properties support, so if you've got some, drop me a line!


12 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed

Related posts

Comments

May 24. 2007 04:17

Justin M. Keyes

It looks like you're using JSCalendar for the pop up calendar--that's awesome, I've always regarded it as the best javascript calendar out there. For what it's worth, I wrote an ASP.NET server control that wraps most of the functionality of JSCalendar--it might save you some time.

On another note, are you aware of famfamfam icon set?

http://www.famfamfam.com/lab/icons/silk/

1000 completely free, nice-looking icons, including a calendar icon that I prefer over the typical ugly Windows-style calendar icon.

Justin M. Keyes

May 24. 2007 10:28

Remmus

Nice job as always Eric Smile

I am however still having problems with opening up the tests. It says

The project type is not supported by this installation.

Is it possible that the project is still based on the Team Edition even if the code inside isn't?

Remmus

May 24. 2007 11:59

Eric,

Support for MBUnit is just what I needed to hear to start my day.

thanks!

Jim Bonnie

May 24. 2007 13:22

Eric Kemp

Remmus, did a quick scan through the .sln and .csproj files but did not see anything... Unfortunately the only version of VS I have installed right now is VSTS. Going to download Express to see if I can recreate the problem... Stay tuned...

Eric Kemp

May 24. 2007 14:05

Justin M. Keyes

I commented yesterday but it was marked as spam...

Justin M. Keyes

May 24. 2007 16:03

Remmus

Thanks for looking into it Eric

As a side note I am also getting an error on the autoscaffold pages that use the new calendar control it says

System.FormatException: String was not recognized as a valid DateTime.

on this line

selectedDate = DateTime.Parse(selDate);

Not sure if this is down to me using UK DD/MM/YYYY instead of the US MM/DD/YYYY

Remmus

May 24. 2007 16:15

Remmus

Found it. I removed this line from the SubSonic.Tests.csproj

<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

And it all loads and compiles now.

Remmus

May 24. 2007 17:19

Eric Kemp

Justin:

Sorry about that, I've got to keep a better eye on my spam folder (and ask Phil about this)

Remmus:

Nice find! I'll make sure that gets updated right away...

Eric Kemp

May 24. 2007 17:23

Eric Kemp

Remmus, on the date format issue, it is very likely an issue with the date format. The calendar should be adjusting the JavaScript emitted based on the detect culture, but it may not be implemented properly...

Justin, forgot about the famfamfam icons (I even have them on my machine). You're right, I'm sure there's a better icon in there. I'll see if I can get a replacement.

Eric Kemp

June 7. 2007 02:00

The Other Steve

The Calendar control that comes with the ASP.NET AJAX control toolkit is actually probably the coolest.

ajax.asp.net/ajaxtoolkit/Calendar/Calendar.aspx

To see why, click on the month at the top, and then the year.

The Other Steve

June 15. 2007 08:46

Damien Guard

Great news on the MbUnit front Smile

[)amien

Damien Guard

June 15. 2007 21:08

Qwe

I just checked out that AJAX ASP calendar and it is quite frankly: horrible.

Does not validate, too much floating, it doesn't parse but hey what does in that control toolkit.

Quite useless, no matter 'how cool it looks'

Qwe

Comments are closed