Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alabcore not building the project in 'Release' mode #221

Open
shine17 opened this issue Aug 19, 2015 · 1 comment
Open

Alabcore not building the project in 'Release' mode #221

shine17 opened this issue Aug 19, 2015 · 1 comment

Comments

@shine17
Copy link

shine17 commented Aug 19, 2015

here is my code -

require 'albacore'

desc "Run a simple clean and rebuild"
build :buildSln do |msb|
msb.sln = 'C:\GitRepos\shinetest\testapps\Albacorerakesample\AlbacoreRakeDotnetBuildSample\AlbacoreRakeDotnetBuildSample.sln' #Path of solution file.
msb.target = [:Clean, :Rebuild] # call with an array of targets or just a single target
msb.properties = {
:Configuration => 'Release' ,
:Platform => 'Any CPU',
:verbosity => 'detailed'
}
msb.logging = 'detailed'
msb.clp 'ShowEventId'
end

Only the debug mode dlls are created. Release mode dll are not created.
I am using dot net 4.5.1 .

Please help! Thanks in advance

@divanvisagie
Copy link

For anyone that lands here the answer lies here: https://github.com/Albacore/albacore/wiki/build

instead of using:

 b.properties = { :configuration => :Release }

Rather use:

b.prop 'Configuration', 'Release'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants