I love albacore and that’s a fact! I use it to build all my .Net projects (some I even deploy with it). But after the introduction of the .NET 4.0 framework there has been a problem. The msbuild task has a hard-coded path to the msbuild.exe and that points to the 3.5 framework.
This is not a big problem but still does not look good in the rake script. Sadly at this point in time there is still not a “nice” fix for this problem but there is a “good” workaround.
msbuild :msbuild do |msb| msb.path_to_command = File.join(ENV['windir'], 'Microsoft.NET', 'Framework', 'v4.0.30319', 'MSBuild.exe') #... other settings here end
Hope this helps you stay on albacore until this little thing gets fixed