Sha256: b5039d806d19cadcd43f9ae3c20d5c1a6c488fae3335d065596f254265e186d9
Contents?: true
Size: 695 Bytes
Versions: 14
Compression:
Stored size: 695 Bytes
Contents
require_relative 'project' module Albacore class FsharpProject < Project def initialize(project_path) super(project_path) sanity_checks end def default_assembly_version begin info= File.read(assembly_info_path) v = info.each_line .select { |l| !(l.start_with?('//')||l.start_with?('(*')) && l.include?('AssemblyVersion(') }.first reg = /"(.*?)"/ reg.match(v).captures.first rescue '1.0.0.0' end end private def sanity_checks super warn { "project '#{@proj_filename}' is not an fsharp project." } unless (File.extname(@proj_filename) =='.fsproj') end end end
Version data entries
14 entries across 14 versions & 1 rubygems