Class: Bozo::Compilers::ClassLibrary

Inherits:
Project
  • Object
show all
Defined in:
lib/bozo/compilers/msbuild.rb

Instance Method Summary collapse

Methods inherited from Project

#build, #clean, #framework_version, #generate_args, #initialize, #name, #project_path, #temp_project_path, #windowsize_path

Constructor Details

This class inherits a constructor from Bozo::Compilers::Project

Instance Method Details

#locationObject

We have dots in the part of the location for target framework. We can’t have them for NuGet packages. We’re doing this change only for class libraries since changing for other projects would break other stuff for them (like scheduled tasks)



248
249
250
251
# File 'lib/bozo/compilers/msbuild.rb', line 248

def location
  fx_version = framework_version.tr(".", "")
  File.expand_path(File.join(temp_project_path, fx_version))
end

#populate_config(config) ⇒ Object



239
240
241
242
# File 'lib/bozo/compilers/msbuild.rb', line 239

def populate_config(config)
  config[:properties][:outputpath] = location + '/'
  config[:properties][:solutiondir] = windowsize_path(File.expand_path('.') + '//')
end