Created
April 4, 2011 23:16
-
-
Save jptoto/902683 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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