NAnt 0.86 beta 1 w/ .NET 3.5 compiler
posted by Bryan on
On our project at work, I am experimenting with some lambda and linq expressions. It's been kind of fun except for the road-block I hit.
On our project at work, I am experimenting with some lambda and linq expressions. It's been kind of fun except for the road-block I hit. I don't have Visual Studio installed on our automation machines. They simply have NUnit, NAnt, CruiseControl.NET to run the automation builds.
The dilemma was NAnt would use the .NET 2.0 compiler and thus the build would fail. I went digging and found that I needed the "Microsoft Windows SDK for Visual Studio 2008 SP1 Express Tools for .NET framework". You cannot install this without Visual Studio installed, which is just plain retarded.
Some other blogs indicated to install Windows Server 2008, but I don't have a license for that. Here is what I did to get around it.
- Install VS 2008 Express SP 1
- Uninstall it (along with the accompanying C++ and Sql installs)
- Leaving the "Microsoft Windows SDK for Visual Studio 2008 SP1 Express Tools for .NET framework" alone
- Navigating to the nant.exe.config file and replacing the readregistry line in the 3.5 section. It now reads to the SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A\WindSDKExpressTools\... folder that exists in the registry.
Works like a charm so far. Man! You'd think it'd be easier.