Dynamically Adding User Controls at Runtime Im trying to dynamically

December 1, 2008 – 5:00 am

Dynamically Adding User Controls at Runtime
Im trying to dynamically add controls such as text boxes, radio buttons, check boxes, etc to a user control(ascx page). Im basically trying to build a very simple faceted search. Here is the scenario the user defines a string that specifies what is to appear on the page, some thing like…

TestDriven.Net 2.10: ‘Go To Reflector’ now supports generics

Over the past year the ‘Go To Reflector’ command has become a first class citizen inside TestDriven.Net. You will find the ‘Go To Reflector’ button on many different context menus inside Visual Studio. The ones I use most often during development are the ‘Code Context’ and ‘Project Reference’ menus. When I’m debugging I tend to use the ‘Call Stack’ and ‘Modules’ context menus.

For a long time I’ve put off attempting to add support for generics to the ‘Go To Reflector’ command. The Visual Studio CodeModel and StackFrames APIs don’t really support generics, so I wasn’t even sure if this would be possible. This was becoming a problem with more and more code being written that uses generics. I decided it was time to bite the bullet and see what could be done.

I’m happy to say that TestDriven.Net 2.10 now has pretty decent support for generics.

source

You can ‘Go To Reflector’ from your generic class definitions. Generic methods, classes, fields, properties and nested classes are all supported.

reflector

You can round trip and ‘Go To Source Code’ from inside Reflector. I often find using Reflector is the fastest way to navigate my own code.

callstack 

When you’re debugging you can ‘Go To Reflector’ from any stack frame in the ‘Call Stack’ window. This is particularly useful when the debugging option ‘Just My Code’ is turned off. When an exception is thrown you can quickly see what caused it by selecting the top of the call stack.

Note: For updated ‘Go To Reflector’ on ‘Call Stack’ support you will need to be using TestDriven.NET 2.10.2173 or later (I released this a few days after the original 2.10 build). You can read the release notes and download the latest version from here.

TestDriven.Net 2.10: Smart Build

There are a number of new features in TestDriven.Net 2.10 that I want to highlight (apart from the VS 2008 crash workaround). The one I’m going to focus on here is subtle, but significant I believe - especially for people working with large solutions.

Smart build is a new optimization that allows you to skip the build step before test execution when there are no source code changes. Anyone working on a solution with a large number of projects will know how time consuming the build can be before any tests can be executed. Somewhat surprisingly this remains true even when no actual source code edits have been made and nothing needs to be compiled. I’ve had reports of the build check taking as long as 45 seconds before any tests could be executed! (Thanks to Brian Genisio in particular for bringing this to my attention)

The new smart build feature overcomes this particular problem by monitoring your solution for source code edits and automatically skipping the build step if there is nothing new to compile. This can significantly improve performance when running multiple tests in the same solution. For example there is now no penalty for choosing to execute all tests in a fixture after an individual test starts to pass: a common usage pattern.

I will elaborate further on other new features in future posts. In the meantime you can read the latest release notes and download TestDriven.Net 2.10 from here. If you find any issues, please don’t hesitate to contact me.

Some Cool PowerShell Scripts For Free
One of the more interesting PowerShell books currently in print is Lee Holmes?s most excellent book, PowerShell Cookbook. This book contains loads of samples and examples of how to use PowerShell. Although the first chapter of the book contains some introductory PowerShell background, this is very m
Thomas Lee

Hello, F#!

hellofs 

This is a quick post to break my writers block.

download

You must be logged in to post a comment.