Skip to content

Instantly share code, notes, and snippets.

@jptoto
Created April 4, 2011 23:16
Show Gist options
  • Save jptoto/902683 to your computer and use it in GitHub Desktop.
Save jptoto/902683 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'fileutils'
require 'albacore'
@buildnumber = 10
@deployroot = "c:/deploy/raf/"
task :default => [:versioning, :build, :cleandeploy, :publish]
assemblyinfo :versioning do |asm|
asm.output_file = "Application/WebUI/AssemblyInfo.cs"
asm.version = "1.0.0.#{@buildnumber}"
asm.company_name = "RAF Logistics"
asm.copyright = "Copyright (C)2010 RAF Logistics, Inc."
end
msbuild :build do |msb|
msb.solution = "Application/IncentiveManagement.sln"
msb.targets :clean, :build
msb.properties :configuration => :release
end
task :cleandeploy do
FileUtils.rm_rf "#{@deployroot}"
end
msbuild :publish do |msb|
msb.targets :ResolveReferences, :_CopyWebApplication
msb.properties(
:configuration => :release,
:webprojectoutputdir => "#{@deployroot}",
:outdir => "#{@deployroot}/bin/"
)
msb.solution = "Application/WebUI/WebUI.csproj"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment