About Me

Training

Nothin But .Net Developer Bootcamp

Navigation

Search

Categories

On this page

Visual C# 2005 Keyboard Shortcut Poster
Applied Test Driven Development For Web Applications - Part 1
ReSharper 2.0 Beta Has Officially Begun
Visual Studio Article Code Download
Anonymous Methods As Event Handlers
Time Is Counting Down To Register For Nothin' But .Net 2.0!!
I'm Published!!
VS 2005 Compilation Woes

Archive

Blogroll

 Agile Developer Venkat's Blog
 Ayende @ Blog
 B#
 Barry Gervin's Software Architecture Perspectives
 Boy Meets World
 Brad Abrams
 Canadian Developers
 Christopher Steen
 Claritude Software News
 Clemens Vasters: Enterprise Development and Alien Abductions
 Coding Horror
 Coding in an Igloo
 Dare Obasanjo aka Carnage4Life
 Darrell Norton's Blog [MVP]
 David Hayden [MVP C#]
 Don Box's Spoutlet
 Eric Gunnerson's C# Compendium
 EZWeb guy: Jeffrey Palermo [C# MVP]
 Fear and Loathing
 Generalities & Details: Adventures in the High-tech Underbelly
 Greg Young [MVP]
 Greg's Cool [Insert Clever Name] of the Day
 IanG on Tap
 Ingo Rammer's Weblog
 ISerializable - Roy Osherove's Blog
 James Kovacs' Weblog
 Jason Haley
 Jean-Luc David
 Jeremy D. Miller -- The Shade Tree Developer
 JetBrains .NET Tools Blog
 Jimmy Nilsson's weblog
 John Bristowe's Weblog
 John Papa [MVP C#]
 Jon Skeet's Coding Blog
 JonGalloway.ToString()
 Jump the Fence or Walk Around
 Lambda the Ultimate - Programming Languages Weblog
 Larkware News
 Lutz Roeder
 Marquee de Sells: Chris's insight outlet
 Martin Fowler's Bliki
 Mike Nichols - SonOfNun Technology
 MSDN Magazine - .NET Matters
 MSDN Magazine - All Articles
 OdeToCode Blogs
 Onion Blog
 Planet TW
 Raymond Lewallen [MVP]
 Rockford Lhotka
 RodMan's Corner
 Roger Johansson's blog
 Sahil Malik - blah.winsmarts.com
 Sam Gentile's Blog
 Scott Bellware [MVP]
 Scott Hanselman's Computer Zen
 ScottGu's Blog
 secretGeek
 Service Station, by Aaron Skonnard
 Signum sine tinnitu--by Guy Kawasaki
 Stephen Toub
 Steve Eichert's Blog
 Steven Rockarts
 The Blog Ride
 The Coding Hillbilly
 The Daily WTF
 TheServerSide.net: News
 Tim Gifford
 Vance Morrison's Weblog
 you've been HAACKED

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 519
This Year: 28
This Month: 0
This Week: 0
Comments: 1593

 Tuesday, January 30, 2007
Tuesday, January 30, 2007 9:19:09 PM (Mountain Standard Time, UTC-07:00) ( C Sharp | Tools | VS2005 )

If, like me, you are a keyboard junkie wanting to sharpen you keyboarding skills in VS 2005 you might appreciate this PDF that contains the default keybinding for Visual C# 2005. Thanks to Lucio Assis for providing me with the link!!

This is a great place to start getting more proficient navigating around studio without the mouse. If you really want to take your keyboarding skills in studio to the next level do yourself a favour and pick up a copy of JetBrains ReSharper, then you can really start to fly.

Comments [1] | | # 
 Friday, June 02, 2006
Friday, June 02, 2006 10:45:24 AM (Mountain Standard Time, UTC-07:00) ( .Net 2.0 | Agile | C Sharp | Patterns | VS2005 )

I have been promising for a long time to start a series that details the creation of a project similar to the one that I presented on my first set of DNRTv episodes. Here is the beginning of that promise!! The goals of this series is to develop a highly testable web application that demonstrates a lot of the principles that can be utilised when developing a web (or any) application using Test Driven Development. I have chosen to base the examples around the new AdventureWorks database. Why AdventureWorks you may ask? Since it is the successor to Northwind, you are going to see (or already have) many examples/demos that utilise it as a DB. It stands to reason that a lot of the techniques and approaches that I am going to show you, will be counter to what is in the mainstream MS world right now. This is not a bad thing, it is always good to open your eyes to new ways to accomplish tasks!!

In this episode, I am just going to start by discussing solution structure for the project as well as the building of the database. This is by no means meant to be an introduction to NAnt, if you want to see how NAnt can be utilised as build tool for your projects then read my NAnt Start Series. Download this zip file and you will be able to start off at the same point that I am starting at. Drop the zip file in a folder you typically do your development and unzip it to that location:

Unzipping

 

Once you have extracted the contents of the build file there should now be a directory named adventureworks.

UnzippedFolder

The first thing you will need to do is go into the adventureworks directory (from this point referred to as the trunk) and copy the local.properties.xml.template file to a file named local.properties.xml (don’t delete the local.properties.xml.template file):

LocalProperties

With that taken care of, you will need to go in and edit the local.properties.xml file (not the template) and change any settings that may be specific to your machine:

<?xml version="1.0"?>
<properties>
 <property name="sqlToolsFolder" value="C:\Program Files\Microsoft SQL Server\90\Tools\Binn"/>
 <property name="osql.ConnectionString" value="-E"/>
 <property name="initial.catalog" value="AdventureWorks"/>
 <property name="config.ConnectionString" value="data source=(local);Integrated Security=SSPI;Initial Catalog=${initial.catalog}"/> 
 <property name="database.path" value="C:\root\development\databases" />
 <property name="osql.exe"  value="${sqlToolsFolder}\osql.exe" />
</properties>

Pay special attention to the database.path property. You can change the value to point to a different directory on your machine. Make sure that the folder exists, as the build process does not create this folder for you (it could, but I chose not to). Another setting that might vary on your machine is the osql.ConnectionString property. This is basically the connection parameters that you would need to specify if you used OSQL from the command line. For me, I use integrated windows authentication so I can just use the -E switch. You will have to experiment with your settings (you might even need to specify a server name etc).

Once you have changed the properties you can open up a command prompt pointing to your trunk directory. From the command line run the command “build run”. If all of your settings are configured properly (and you have a local instance of IIS), you should see a blank web page pop up in your browser:

DefaultASPX

Last but not least, once you have closed down the browser, you can run the following command from the command line “build builddb”. This will copy the adventureworks database files located in the [trunk]\sql\original directory and place them in the directory that you specified in the “database.path” property of your local configuration file. It will also run a sp_attach_db command and it will name the database using the name you provided in the “initial.catalog” property of your local configuration file.

I have explicitly chosen not to build the DB from scripts, why? I had a hard time finding any original SQL scripts for the AVWorks. If anyone feels like taking the time to create script files that we can use (as well as the accompanying seed data) please let me know.

The main build targets that we will be using during the course of these walkthroughs are “build test” and “build run”.

Let’s take a quick look at the initial solution structure (double click on the AdventureWorks.sln file, this is a VS2005 projects):

InitialSolution

So far we have a Web project, a Presentation project, and a Presentation.Test project. Pretty standard fare. Right now the 2 classes that are in each of the Presentation, and Presentation.Test project are just there so the “build test” target in the build file will execute properly. We will replace both of those classes with meaningful classes next week.

Ok, we are ready to start. Take a look around (there’s nothing much to see right now), read my NAnt Starter Series if you have’nt already. And most important, submit requests for what you would like to see in this project. Keep in mind that I am going to try and use it as a vehicle to teach both TDD and good development practices (design patterns, refactoring etc, OO). Next week I will start by building a screen similar to the one that I created for DNRTv, once I have gotten completely through that example we will have a fairly good ground from which to branch out from. I have already talked to a handful of people and have a good idea of what they would like to see demonstrated. If you have’nt got your request in, now is the time to do it. If you can’t comment on this blog post email me directly at bitwisejp@gmail.com.

Here are some ideas to get you thinking:

  • Manageable Databinding
  • Passing information between pages
  • Master/Detail pages
  • Managing master pages better
  • Ajax
  • Layered Architecture
  • Validation

 

Let the coding begin (almost!!).

kick it on dotnetkicks.com
Comments [5] | | # 
 Tuesday, April 25, 2006
Tuesday, April 25, 2006 8:02:42 AM (Mountain Standard Time, UTC-07:00) ( Tools | VS2005 )

For all of you who are not too keen on installing EAP software, the wait is finally over. Jetbrains has now announced the official beta for ReSharper 2.0. In case you are not aware of ReSharper, it is an add-in that dramatically improves the usability of Visual Studio, from a coder’s perspective. Basically, once you are used to developing with ReSharper you will find yourself hard pressed to go back to plain old VS2005. If you have not yet given ReSharper a try, I encourage you to download a copy of the beta and give it a whirl!! There is also an incentive to purchase a copy of 1.5 now, and get a free upgrade to 2.0 when it becomes officially available in May.

 

Rs20beta1._bg

Comments [0] | | # 
 Friday, January 13, 2006
Friday, January 13, 2006 10:44:47 PM (Mountain Standard Time, UTC-07:00) ( .Net 2.0 | VS2005 )

The good folks at VSM are currently experiencing problems with their download servers. I have received many requests for the source code to the article that I published on different approaches to databinding.

You can now download the code here and hopefully the servers at VSM will be available to download the code soon.

Thanks.

Comments [1] | | # 
 Monday, January 09, 2006
Monday, January 09, 2006 12:34:44 PM (Mountain Standard Time, UTC-07:00) ( .Net 2.0 | C Sharp | VS2005 )
Thought I would try something different and show a video of how you can use anonymous methods as event handlers. This is my first try at using screen recording software for this purpose. If it proves successful and popular then I will probably make a video posting or 2 every month.

Click here to watch the movie.
 
Enjoy
Comments [2] | | # 
 Friday, January 06, 2006
Friday, January 06, 2006 8:29:11 AM (Mountain Standard Time, UTC-07:00) ( .Net 2.0 | C Sharp | Patterns | Training | VS2005 )
For all who may be interested. On the week of February 6th - 10th I will be holding a .Net 2.0 Bootcamp in Calgary,AB.

The event will be held at CTC TrainCanada in Calgary.

It will be an intense week of getting up to speed on building enterprise level applications with the .Net 2.0 Framework. You can view the course outline here and if you are interested in attending you can register here.

Look forward to seeing you there.
Comments [0] | | # 
 Thursday, January 05, 2006
Thursday, January 05, 2006 12:57:35 PM (Mountain Standard Time, UTC-07:00) ( .Net 2.0 | C Sharp | VS2005 )
Well I finally published my first article. Hopefully the first of many. The article is going to be published in the January edition of Visual Studio Magazine. It is available for viewing here. Hope you find it useful.

Comments [0] | | # 
 Tuesday, December 13, 2005
Tuesday, December 13, 2005 8:33:10 AM (Mountain Standard Time, UTC-07:00) ( VS2005 )
Is it just me or has the speed at which VS2005 compiles applications slowed down dramatically?

When it was in the beta versions I just shrugged it off as being an issue that would be worked on and inevitable fixed by the release version of the product. Several months into a current engagement has proven that the release build of studio has done nothing at all to increase the speed at which the IDE is able to compile.

The team that I currently work on utlizes an agile development process. We write some tests, implement some code, get the tests passing and carry on. Were it not for automated build tools (thank you NAnt) this process would be painstakingly slow.

Now granted, compile speed is relative based on the size of the project right? Fair enough. Needless to say that comparitively sized projects took measurably less time to compile in previous versions of Visual Studio.

Just something to watch out for as you see that solution explorer scrollbar increasing in size!!
Comments [0] | | #