Geeks With Blogs
Path Notes of a Kodefu Master blog September 2008 Entries
Exposing a Generic List
You're writing a Customer class, and the Customer class contains a collection of Account objects. Because you want to add and remove accounts with ease, you implement this collection as a List<T>. public class Customer { private List<Account> accounts = new List<Account>(); public List<Account> Accounts { get { return accounts; } } } Life is good. Your tests iterate through the accounts, add new accounts, and remove accounts. However, when you run FxCop, it complains that ......

Posted On Tuesday, September 30, 2008 7:07 PM

Expression Blend 2 SP1 Preview Released
The Expression Blend team announced the released of of Service Pack 1 for Expression Blend 2 today. Here are the details for this release. This Service Pack provides you with all of the functionality you had with our earlier Expression Blend 2.5 June 2008 Preview. Besides allowing you to create new projects for WPF, Silverlight 1, and Silverlight 2 RC, we are also exposing new platform functionality like Font Embedding / Subsetting for Silverlight 2 projects. You can download the service pack here ......

Posted On Friday, September 26, 2008 2:02 PM

Set Operations in MSBuild
There are scenarios where the situation calls for performing set operations on item collections. You may want to join them together, subtract one from another, or perform an inner join. I originally came up with the idea to demonstrate these from this forum question. These examples work in both MSBuild 2.0 and MSBuild 3.5. A 3.5 only version is included with the attachment to this article. Set Up Create an empty msbuild file. Add a default target that you will use to perform the set operations and ......

Posted On Wednesday, September 24, 2008 7:22 PM

Exists in MSBuild 3.5
Gael Fraiteur reported differing behavior with the Exists condition in MSBuild 3.5, which has been verified to be a bug by Microsoft. Here is the setup. Have one file import a file from a different folder. Have that imported file import another relative to that file's path. Add a condition to check if the file exists to the Import task. File 1 (foo.proj): <Project DefaultTargets="Build" xmlns="http://schemas.micro... <Import Project="..\Bar\bar.targets" /> ......

Posted On Tuesday, September 23, 2008 5:53 PM

Environment Variables and MSBuild
Everything worked fine the last time I gave my MSBuild presentation. There were no changes to my files, so imagine my surprise when I load things up to practice today only to be met by failures. "C:\Demos\Introducing MSBuild\AccountManager\exam... (default target) (1) -> "C:\Demos\Introducing MSBuild\AccountManager\Acco... (default target) (2) -> (ValidateSolutionConfiguration target) -> C:\Demos\Introducing MSBuild\AccountManager\Acco... error ......

Posted On Saturday, September 20, 2008 11:54 AM

Dev InTENsity
I will be presenting at New England Code Camp 10: Dev InTENsity! this weekend. Chris Bowen has posted the schedule on his blog. Here are my presentations: Sunday, September 21st 9:00am, Room MPR B, New Features in C# 3.0 Sunday, September 21st 12:30PM, Room MPR B, Introducing MSBuild ......

Posted On Tuesday, September 16, 2008 6:56 PM

Generics Don't Make Me Sad
I came across an interesting blog post today entitled, "C# generics make me sad..." by Matt Sheppard. Matt has an issue with generic Lists, in that you can't easily convert from one to another even if one constraint is inherited from the other constraint. List<String> sl = new List<String>(); List<Object> ol = new List<Object>(); ol = sl; This will throw the error "Cannot implicitly convert type ‘System.Collections.Generic... to ‘System.Collections.Generic... ......

Posted On Monday, September 15, 2008 7:22 PM

ASP.NET MVC Framework Presentation
The Columbia Enterprise Developers Guild will be meeting today at Midlands Tech NE Campus Auditorium at 6:00 pm. Brian Hitney will be presenting on the ASP.NET MVC Framework. Meeting Summary When: September 10th, 2008 @ 6:00 PM Where: Midlands Tech NE Campus Auditorium Who: Brian Hitney What: MVC Framework Technical Sponsor: TEKsystems Agenda 6:00 Pizza and Networking 6:30 Announcements 6:45 Sponsors 7:00 Presentation 8:30 Closing and SWAG Handouts Topic – Model View Controller Framework The ASP.NET ......

Posted On Wednesday, September 10, 2008 1:33 PM

Copyright © Chris Eargle | Powered by: GeeksWithBlogs.net