Albacore icon indicating copy to clipboard operation
Albacore copied to clipboard

add /nologo and /filelogger params to msbuild

Open mxriverlynn opened this issue 15 years ago • 2 comments

Rejmond Sejic provided this version of the msbuild task via email, to add the /nologo and /filelogger parameters to the msbuild command. need to integrate this into the dev branch for the next release:

require 'albacore_lib/albacore_helper'

class MSBuild
  extend AttrMethods
  include RunCommand
  include YAMLConfig
  include Logging
  
  attr_accessor :solution, :verbosity, :nologo, :logfile
  attr_array :targets
  attr_hash :properties
  
  def initialize
    @path_to_command = build_path_to_command
    @nologo = false
    super()
  end
  
  def build_path_to_command
    win_dir = ENV['windir'] || ENV['WINDIR']
    win_dir = 'C:/Windows' if win_dir.nil?
    
    File.join(win_dir.dup, 'Microsoft.NET', 'Framework', 'v3.5', 'MSBuild.exe')
  end
  
  def build
    build_solution(@solution)
  end
  
  def build_solution(solution)
    check_solution solution
    
    command_parameters = []
    command_parameters 

... note: just need to take the params he provided, not the entire class.

mxriverlynn avatar Jun 05 '10 14:06 mxriverlynn

Is this incorporated yet?

haf avatar Jan 31 '12 12:01 haf

no - this was never completed

mxriverlynn avatar Jan 31 '12 19:01 mxriverlynn