Rory Primrose

Learn from my mistakes, you don't have time to make them yourself

View project on GitHub

There was a VirtualPC attempt on my presentation

Late last week I putting together another VPC build for my TechEd session. I had XP installed and fully patched, a minimal VS2005 up and running and the minimum WinFX Beta 2 bits thrown in. After a couple of hours installing the software on my base VPC XP drive I had finally got the build I needed for the session.

I wanted to move the VPC machine settings file to the same location as its hard drive (I stuffed up the original directory paths). After I moved the settings file, I double clicked it to make sure it would run.

Yeah… not good. I don’t know what happened, or who to blame (other than myself), but both my VPC hard drive and the machine settings files got deleted. Poof! Gone. No more, and not the recycle bin type deleted, where talking the end of the line. The files were no longer on the drive. Stupidly, I didn’t think about getting one of those drive utilities to undelete the files. Nope, I took the easy way out and rebuilt the VPC again from my XP base drive. Two hours later, I was again ready for WCF world domination.

Read More

EDM in ADO.Net vNext

I just read this post from the ADO.Net team. Looks like there is going support for entity creation (Entity Data Model - EDM) based on a database schema in the next ADO.Net release.

There is nothing more tedious than manually building entities from a schema. Although there are lots of O/R mapping tools around to do this for you, I haven’t been happy with the freeware applications available. It is great news that this should find its way into Visual Studio and the framework.

Read More

Ever heard of Script#?

I hadn’t heard of Script#, so when I saw it being referred to in one of Nikhil Kothari’s recent posts, I got a little curious.

The Script# compiler is a C# compiler that generates JavaScript as its output instead of IL. A key goal of the compiler to produce readable JavaScript (as if you had authored it by hand), and would be comfortable deploying into real apps. Hence the translation works from C# source directly into JavaScript without an intermediate IL layer. The compiler can also produce equivalent, but much more compact script for use in release mode deployment. The compiler does not introduce any additional levels of abstraction, thereby allowing you full control of what your application does. In essense the best of script with the best of C#!

How cool is that! Check out Nikhil’s Script# project page.

Read More

Assembly loading failure logging

This is basically a reminder post, but you might find it useful.

In the development I have been doing in the last few months, I have been doing a lot of config based assembly loading. Trying to find out why an assembly doesn’t load can be very difficult though. Check out Suzanne Cook’s post about fuslogvw.exe.

Read More

SandCastle - An NDoc replacement

NDoc has been a valuable tool for many years. Unfortunately, like many 3rd party free software projects, it is hard to publish version after version for a market that has time to use it, but a developer that doesn’t have time to develop it (I feel your pain Kevin!). As much as I would like to see NDoc mature to the 2.0 framework, it looks like Microsoft are finally going to roll their own project. Read about SandCastle here and here. It should be released as a CTP soon.

Thanks to Dwight for originally pointing me to this forum post.

Read More

ASP.Net Virtual Theme Provider 1.0 released

I have been working on a fun project recently. I have put together a VirtualThemeProvider that uses the VirtualPathProvider in the 2.0 framework.

The VirtualThemeProvider provides functionality for flexible ASP.Net theme support. It provides the ability to merge theme directories with a global theme directory and theme directory filtering.

Full source is provided with this project. I would like to get any feedback, comments and suggestions that you have for this project. If you have any, please visit the forum.

I have written an article that provides more detail about this project and how to use it.

Read the ASP.Net Virtual Theme Provider 1.0 article.

Download Neovolve.VirtualThemeProvider 1.0.zip (275.96 kb)

Read More