albacore

Albacore msbuild task problem

Just updated albacore to version 0.14 and ran into a major problem. My current environment is: Ruby 1.9.1 Rake 0.8.7 Albacore 0.1.4 The problem is that as of now all my rake build throw a funny little exception: undefined method 'push' for #<Enumerator:0x???????> So far I have traced the problem to albacore msbuild.rb line 38 and...

Versioning CommonAssemblyInfo.cs and MSBuild

So I have a CommonAssemblyInfo.cs linked into all the projects in my solution and is dynamically generated by my rake/albacore scripts which is not checked into source control. I also have a CommonAssemblyInfo.cs.local for use when there is no ruby available, mainly to be used by devs. Is it possible to have a msbuild task or something...

How do I pipe my msbuild output to a log file from rake

I'm using the fabulous albacore gem with rake to build a new .NET project. My organization is still using NAnt, and there are lots of folks who expect to see a log file when the build script executes. How do I save the msbuild task output that gets dumped to STDOUT to a log file? ...

Albacore: including only certain files/folders in a zip

Hi everyone, I'm trying to zip up the artifacts of a rake build, using Albacore's ZipTask. The solution I'm building has three projects that have artifacts that need to be zipped up individually, but only the ASP.NET MVC project will be mentioned here. Here's the directory structure of the solution: rakefile.rb solution.sln src/ (...

Albacore msbuild task failing in TeamCity

I have written a rake task which builds an asp.net application using Albacore: msbuild :build do |msb| puts "Running local build" msb.properties :configuration => :Release, :outdir => File.dirname(__FILE__) + "/output/" msb.targets :Build msb.solution = 'App.sln' msb.verbosity = 'quiet' end Running this locally wo...

Rake: Calling tasks with arguments in default task

I have been playing around with Rake and Albacore, to see if I can replace our existing MSBuild script that deploys software with something that isn't XML. I have a task that will change the debug value inside a web.config to false. The task takes the directory of the web.config as an argument, but I can't quite figure out the syntax n...

Rake and MSBuild error - error MSB3021: Unable to copy file

We're using Rake with Albacore for our build & deploy process in TeamCity but my latest solution is causing me problems when I compile. When I run msbuild I get the following error: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets(60,3): error MSB3021: Unable to copy file "bin...

How to package asp.net web application w/o visual studio?

I got test server which I would like to use for CI too. Plan is to setup Hudson that listens to git repository, on new commit fetches changes, builds solution, runs tests (picks up output), setups test environment web application if everything looks green and shows Chuck Norris. I'm struggling with first part (git ports are closed atm ...