albacore 2.6.2 → 2.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 636b34273ba679dfc811c86b1208f0ff3e4813db
4
- data.tar.gz: 1339fe8c9b9022e29f4eb13ee0c727f9d32ee7f9
3
+ metadata.gz: 66eb87201827d6f4d68a891f33f8d92176012954
4
+ data.tar.gz: e9a46f390f4f2f9adc3cddcae4e65e217ee2b668
5
5
  SHA512:
6
- metadata.gz: 5cb3b3b0c1f1faac2bbdf2bf7f00bbe865432ab2b26ae39fea051b2bfcf95c4583c52332094e8196ca4a86575dc869ff5dba23495f2d321c5baed85f203e1a62
7
- data.tar.gz: c5f0128d0d3af334102449d2223d66be96f437698287506dcaa5f8c9d517ea4360839dcb406e2974195564fbb12e07bb899e55e90fbbb6e2ca3b29b969cb638f
6
+ metadata.gz: c19de60b56f2c059ea64893124dbfa6e249379a89ea3d20a8164465c5dcf7ef8ea90d8c4b677df88a350fcda34abcad5c7b853d7ecfef6fbee4c98487b04a5bd
7
+ data.tar.gz: 5e061937da4fb68c6086d6a90c57eedda356e3a2bc59963bbe644ad944f944fde7e50ad84f59b1ab035ffec9bac67666a20962b624e6603cad7f1431c5ed7f6d
@@ -2,6 +2,5 @@ require 'albacore/version'
2
2
  require 'albacore/albacore_module'
3
3
  require 'albacore/rake_overrides'
4
4
  require 'albacore/dsl'
5
-
6
5
  module Albacore
7
6
  end
@@ -2,6 +2,9 @@
2
2
 
3
3
  require 'albacore/application'
4
4
  require 'albacore/logging'
5
+ require 'albacore/fsharp_project'
6
+ require 'albacore/csharp_project'
7
+ require 'albacore/vb_project'
5
8
 
6
9
  # The albacore module instance methods.
7
10
  module Albacore
@@ -75,6 +78,21 @@ module Albacore
75
78
  !!::Rake::Win32.windows?
76
79
  end
77
80
 
81
+ def create_project(project)
82
+ path=if project.is_a? String
83
+ Pathname.new(project)
84
+ else
85
+ project
86
+ end
87
+ case path.extname
88
+ when ".fsproj"
89
+ FsharpProject.new(path)
90
+ when ".csproj"
91
+ CsharpProject.new(path)
92
+ when ".vbproj"
93
+ VbProject.new(path)
94
+ end
95
+ end
78
96
  Albacore.log_level = Logger::DEBUG if ENV["DEBUG"]
79
97
  end
80
98
  end
@@ -0,0 +1,16 @@
1
+ require_relative 'project'
2
+ module Albacore
3
+ class CsharpProject < Project
4
+ def initialize(project_path)
5
+ super(project_path)
6
+ sanity_checks
7
+ end
8
+
9
+
10
+ private
11
+ def sanity_checks
12
+ super
13
+ warn { "project '#{@proj_filename}' is not a csharp project." } unless (File.extname(@proj_filename) =='.csproj')
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,28 @@
1
+ require_relative 'project'
2
+ module Albacore
3
+ class FsharpProject < Project
4
+ def initialize(project_path)
5
+ super(project_path)
6
+ sanity_checks
7
+ end
8
+
9
+ def default_assembly_version
10
+ begin
11
+ info= File.read(assembly_info_path)
12
+ v = info.each_line
13
+ .select { |l| !(l.start_with?('//')||l.start_with?('(*')) && l.include?('AssemblyVersion(') }.first
14
+ reg = /"(.*?)"/
15
+ reg.match(v).captures.first
16
+ rescue
17
+ '1.0.0.0'
18
+ end
19
+
20
+ end
21
+
22
+ private
23
+ def sanity_checks
24
+ super
25
+ warn { "project '#{@proj_filename}' is not an fsharp project." } unless (File.extname(@proj_filename) =='.fsproj')
26
+ end
27
+ end
28
+ end
@@ -90,6 +90,9 @@ module Paths
90
90
  ::Albacore::Paths.normalise_slashes p
91
91
  end
92
92
 
93
+ def extname
94
+ @inner.extname
95
+ end
93
96
  def ==(o)
94
97
  trace { "#{self} ==( #{o} )" }
95
98
  (o.respond_to? :p) && o.p == p
@@ -3,7 +3,7 @@ require 'albacore/logging'
3
3
  require 'albacore/semver'
4
4
  require 'albacore/package_repo'
5
5
  require 'albacore/paket'
6
-
6
+ require 'pathname'
7
7
  module Albacore
8
8
 
9
9
  # error raised from Project#output_path if the given configuration wasn't
@@ -19,8 +19,8 @@ module Albacore
19
19
 
20
20
  def initialize proj_path
21
21
  raise ArgumentError, 'project path does not exist' unless File.exists? proj_path.to_s
22
- proj_path = proj_path.to_s unless proj_path.is_a? String
23
- @proj_xml_node = Nokogiri.XML(open(proj_path))
22
+ proj_path = proj_path.to_s unless proj_path.is_a? String
23
+ @proj_xml_node = Nokogiri.XML(open(proj_path))
24
24
  @proj_path_base, @proj_filename = File.split proj_path
25
25
  sanity_checks
26
26
  end
@@ -68,7 +68,7 @@ module Albacore
68
68
  # gets any authors from the project file
69
69
  def authors
70
70
  read_property 'Authors'
71
- end
71
+ end
72
72
 
73
73
  def description
74
74
  read_property 'Description'
@@ -87,7 +87,7 @@ module Albacore
87
87
 
88
88
  def try_output_path conf
89
89
  default_platform = @proj_xml_node.css('Project PropertyGroup Platform').first.inner_text || 'AnyCPU'
90
- path = @proj_xml_node.css("Project PropertyGroup[Condition*='#{conf}|#{default_platform}'] OutputPath")
90
+ path = @proj_xml_node.css("Project PropertyGroup[Condition*='#{conf}|#{default_platform}'] OutputPath")
91
91
  # path = @proj_xml_node.xpath("//Project/PropertyGroup[matches(@Condition, '#{conf}')]/OutputPath")
92
92
 
93
93
  debug { "#{name}: output path node[#{conf}]: #{ (path.empty? ? 'empty' : path.inspect) } [albacore: project]" }
@@ -96,11 +96,11 @@ module Albacore
96
96
  nil
97
97
  end
98
98
 
99
- # This is the output path if the project file doens't have a configured
99
+ # This is the output path if the project file doesn't have a configured
100
100
  # 'Configuration' condition like all default project files have that come
101
101
  # from Visual Studio/Xamarin Studio.
102
102
  def fallback_output_path
103
- fallback = @proj_xml_node.css("Project PropertyGroup OutputPath").first
103
+ fallback = @proj_xml_node.css("Project PropertyGroup OutputPath").first
104
104
  condition = fallback.parent['Condition'] || 'No \'Condition\' specified'
105
105
  warn "chose an OutputPath in: '#{self}' for Configuration: <#{condition}> [albacore: project]"
106
106
  fallback.inner_text
@@ -119,7 +119,7 @@ module Albacore
119
119
  end
120
120
 
121
121
  def faulty_refs
122
- find_refs.to_a.keep_if{ |r| r.children.css("HintPath").empty? }
122
+ find_refs.to_a.keep_if { |r| r.children.css("HintPath").empty? }
123
123
  end
124
124
 
125
125
  def has_faulty_refs?
@@ -154,15 +154,15 @@ module Albacore
154
154
 
155
155
  # returns a list of the files included in the project
156
156
  def included_files
157
- ['Compile','Content','EmbeddedResource','None'].map { |item_name|
157
+ ['Compile', 'Content', 'EmbeddedResource', 'None'].map { |item_name|
158
158
  proj_xml_node.xpath("/x:Project/x:ItemGroup/x:#{item_name}",
159
- 'x' => "http://schemas.microsoft.com/developer/msbuild/2003").collect { |f|
159
+ 'x' => "http://schemas.microsoft.com/developer/msbuild/2003").collect { |f|
160
160
  debug "#{name}: #included_files looking at '#{f}' [albacore: project]"
161
- link = f.elements.select{ |el| el.name == 'Link' }.map { |el| el.content }.first
161
+ link = f.elements.select { |el| el.name == 'Link' }.map { |el| el.content }.first
162
162
  OpenStruct.new(
163
- :item_name => item_name.downcase,
164
- :link => link,
165
- :include => f['Include']
163
+ :item_name => item_name.downcase,
164
+ :link => link,
165
+ :include => f['Include']
166
166
  )
167
167
  }
168
168
  }.flatten
@@ -210,6 +210,37 @@ module Albacore
210
210
  path
211
211
  end
212
212
 
213
+ # Get AssemblyInfo path
214
+ # @return string or project base path if path not found
215
+ def assembly_info_path
216
+ result=@proj_xml_node.css("Compile[Include*='AssemblyInfo']").first #
217
+ p = if result.nil?
218
+ @proj_path_base
219
+ else
220
+ File.expand_path(File.join(@proj_path_base, '/', Albacore::Paths.normalise_slashes(result.attributes["Include"].value)))
221
+ end
222
+ p
223
+ end
224
+
225
+
226
+
227
+ # Reads assembly version information
228
+ # Returns 1.0.0.0 if AssemblyVersion is not found
229
+ # @return string
230
+ def default_assembly_version
231
+ begin
232
+ info= File.read(assembly_info_path)
233
+ v = info.each_line
234
+ .select { |l| !(l.start_with?('//')||l.start_with?('/*')) && l.include?('AssemblyVersion(') }.first
235
+ reg = /"(.*?)"/
236
+ reg.match(v).captures.first
237
+ rescue
238
+ '1.0.0.0'
239
+ end
240
+
241
+ end
242
+
243
+
213
244
  private
214
245
  def nuget_packages
215
246
  return nil unless has_packages_config?
@@ -226,7 +257,7 @@ module Albacore
226
257
 
227
258
  def all_paket_deps
228
259
  return @all_paket_deps if @all_paket_deps
229
- arr = File.open('paket.lock', 'r') do |io|
260
+ arr = File.open('paket.lock', 'r') do |io|
230
261
  Albacore::Paket.parse_paket_lock(io.readlines.map(&:chomp))
231
262
  end
232
263
  @all_paket_deps = Hash[arr]
@@ -280,4 +311,5 @@ module Albacore
280
311
  @proj_xml.css("Project ItemGroup Reference[@Include*='#{pkg_id},']").first
281
312
  end
282
313
  end
314
+
283
315
  end
@@ -98,6 +98,7 @@ module Albacore
98
98
  usings << ns
99
99
  end
100
100
 
101
+ # @return Map object
101
102
  def opts
102
103
  raise MissingOutputError, "#file_path or #out is not set" unless (file_path or out)
103
104
  ns = @namespace || '' # defaults to empty namespace if not set.
@@ -12,7 +12,7 @@ module Albacore
12
12
  attr_accessor :ignores
13
13
  end
14
14
 
15
- # since msbuild projects have a habbit of ignoring case differences, lets use downcase for comparison
15
+ # since msbuild projects have a habit of ignoring case differences, lets use downcase for comparison
16
16
  # in windows / and \ can sometimes be used interchangeably
17
17
  class FileReference
18
18
  attr_reader :file, :downcase_and_path_replaced
@@ -0,0 +1,16 @@
1
+ require_relative 'project'
2
+ module Albacore
3
+ class VbProject < Project
4
+ def initialize(project_path)
5
+ super(project_path)
6
+ sanity_checks
7
+ end
8
+
9
+
10
+ private
11
+ def sanity_checks
12
+ super
13
+ warn { "project '#{@proj_filename}' is not a Visual Basic project." } unless (File.extname(@proj_filename) =='.vbproj')
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module Albacore
2
- VERSION = "2.6.2"
2
+ VERSION = "2.6.3"
3
3
  end
@@ -1,3 +1,4 @@
1
+ require 'spec_helper'
1
2
  require 'albacore/task_types/asmver'
2
3
  require 'albacore/task_types/asmver/engine'
3
4
  require 'albacore/task_types/asmver/file_generator'
@@ -1,3 +1,4 @@
1
+ require 'spec_helper'
1
2
  require 'albacore/task_types/asmver'
2
3
 
3
4
  describe ::Albacore::Asmver::Config, 'when setting attributes and out' do
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require_relative 'spec_helper'
2
2
  require 'albacore/semver'
3
3
  require 'albacore/project'
4
4
  require 'albacore/paths'
@@ -7,7 +7,7 @@ describe Albacore::Project, "when loading packages.config" do
7
7
  subject do
8
8
  p = File.expand_path('../testdata/Project/Project.fsproj', __FILE__)
9
9
  #puts "path: #{p}"
10
- Albacore::Project.new(p)
10
+ Albacore.create_project(p)
11
11
  end
12
12
  let :nlog do
13
13
  subject.declared_packages.find { |p| p.id == 'NLog' }
@@ -58,8 +58,9 @@ describe Albacore::Project, "when reading project file" do
58
58
  def project_path
59
59
  File.expand_path('../testdata/Project/Project.fsproj', __FILE__)
60
60
  end
61
+
61
62
  subject do
62
- Albacore::Project.new project_path
63
+ Albacore.create_project project_path
63
64
  end
64
65
  let :library1 do
65
66
  subject.included_files.find { |p| p.include == 'Library1.fs' }
@@ -109,6 +110,45 @@ end
109
110
  describe Albacore::Project, 'when given a PathnameWrap' do
110
111
  it 'should allow argument of PathnameWrap' do
111
112
  require 'albacore/paths'
112
- Albacore::Project.new(Paths::PathnameWrap.new(File.expand_path('../testdata/Project/Project.fsproj', __FILE__)))
113
+ Albacore.create_project(Paths::PathnameWrap.new(File.expand_path('../testdata/Project/Project.fsproj', __FILE__)))
114
+ end
115
+ end
116
+ describe Albacore::Project do
117
+
118
+ it 'should read version from AssemblyInfo.cs' do
119
+ p = '../testdata/csharp/Exemplar/Exemplar/Exemplar.csproj'
120
+ project = Albacore.create_project(Paths::PathnameWrap.new(File.expand_path(p, __FILE__)))
121
+ result = project.default_assembly_version
122
+ expected = '1.0.0.0'
123
+ expect(expected).to eq(result)
124
+ end
125
+ it 'should read version from AssemblyInfo.cs in ModifiedAssemblyVersion' do
126
+ p = '../testdata/csharp/ModifiedAssemblyVersion/ModifiedAssemblyVersion/ModifiedAssemblyVersion.csproj'
127
+ project = Albacore.create_project(Paths::PathnameWrap.new(File.expand_path(p, __FILE__)))
128
+ result = project.default_assembly_version
129
+ expected = '2.0.0.0'
130
+ expect(expected).to eq(result)
131
+ end
132
+ it 'should return 1.0.0.0 when AssemblyVersion is not found' do
133
+ p = '../testdata/Project/Project.fsproj'
134
+ project = Albacore.create_project(Paths::PathnameWrap.new(File.expand_path(p, __FILE__)))
135
+ result = project.default_assembly_version
136
+ expected = '1.0.0.0'
137
+ expect(expected).to eq(result)
138
+ end
139
+ it 'properties_path should return project base path if assemblyinfo not found' do
140
+ p = '../testdata/Project/Project.fsproj'
141
+ project = Albacore.create_project(Paths::PathnameWrap.new(File.expand_path(p, __FILE__)))
142
+ result = project.assembly_info_path
143
+ expected = File.dirname(project.path)
144
+ expect(expected).to eq(result)
145
+
146
+ end
147
+ it 'properties path should return project base path if both are equivalent' do
148
+ p = '../testdata/Project/Project.fsproj'
149
+ project = Albacore.create_project(Paths::PathnameWrap.new(File.expand_path(p, __FILE__)))
150
+ result = project.assembly_info_path
151
+ expected = File.dirname(project.path)
152
+ expect(expected).to eq(result)
113
153
  end
114
154
  end
@@ -0,0 +1,28 @@
1
+ 
2
+ Microsoft Visual Studio Solution File, Format Version 12.00
3
+ # Visual Studio 14
4
+ VisualStudioVersion = 14.0.25420.1
5
+ MinimumVisualStudioVersion = 10.0.40219.1
6
+ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Exemplar", "Exemplar\Exemplar.csproj", "{920E7FB5-B5F7-4EDD-B360-22F20171BA3E}"
7
+ EndProject
8
+ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "subproject", "subproject\subproject.csproj", "{ECCE4739-F180-48C3-85EE-2FA2A67ABA9B}"
9
+ EndProject
10
+ Global
11
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
12
+ Debug|Any CPU = Debug|Any CPU
13
+ Release|Any CPU = Release|Any CPU
14
+ EndGlobalSection
15
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
16
+ {920E7FB5-B5F7-4EDD-B360-22F20171BA3E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17
+ {920E7FB5-B5F7-4EDD-B360-22F20171BA3E}.Debug|Any CPU.Build.0 = Debug|Any CPU
18
+ {920E7FB5-B5F7-4EDD-B360-22F20171BA3E}.Release|Any CPU.ActiveCfg = Release|Any CPU
19
+ {920E7FB5-B5F7-4EDD-B360-22F20171BA3E}.Release|Any CPU.Build.0 = Release|Any CPU
20
+ {ECCE4739-F180-48C3-85EE-2FA2A67ABA9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21
+ {ECCE4739-F180-48C3-85EE-2FA2A67ABA9B}.Debug|Any CPU.Build.0 = Debug|Any CPU
22
+ {ECCE4739-F180-48C3-85EE-2FA2A67ABA9B}.Release|Any CPU.ActiveCfg = Release|Any CPU
23
+ {ECCE4739-F180-48C3-85EE-2FA2A67ABA9B}.Release|Any CPU.Build.0 = Release|Any CPU
24
+ EndGlobalSection
25
+ GlobalSection(SolutionProperties) = preSolution
26
+ HideSolutionNode = FALSE
27
+ EndGlobalSection
28
+ EndGlobal
@@ -0,0 +1,12 @@
1
+ using System;
2
+ using System.Collections.Generic;
3
+ using System.Linq;
4
+ using System.Text;
5
+ using System.Threading.Tasks;
6
+
7
+ namespace Exemplar
8
+ {
9
+ public class Class1
10
+ {
11
+ }
12
+ }
@@ -0,0 +1,61 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4
+ <PropertyGroup>
5
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
+ <ProjectGuid>920e7fb5-b5f7-4edd-b360-22f20171ba3e</ProjectGuid>
8
+ <OutputType>Library</OutputType>
9
+ <AppDesignerFolder>Properties</AppDesignerFolder>
10
+ <RootNamespace>Exemplar</RootNamespace>
11
+ <AssemblyName>Exemplar</AssemblyName>
12
+ <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
13
+ <FileAlignment>512</FileAlignment>
14
+ </PropertyGroup>
15
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16
+ <DebugSymbols>true</DebugSymbols>
17
+ <DebugType>full</DebugType>
18
+ <Optimize>false</Optimize>
19
+ <OutputPath>bin\Debug\</OutputPath>
20
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
21
+ <ErrorReport>prompt</ErrorReport>
22
+ <WarningLevel>4</WarningLevel>
23
+ </PropertyGroup>
24
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25
+ <DebugType>pdbonly</DebugType>
26
+ <Optimize>true</Optimize>
27
+ <OutputPath>bin\Release\</OutputPath>
28
+ <DefineConstants>TRACE</DefineConstants>
29
+ <ErrorReport>prompt</ErrorReport>
30
+ <WarningLevel>4</WarningLevel>
31
+ </PropertyGroup>
32
+ <ItemGroup>
33
+ <Reference Include="System"/>
34
+
35
+ <Reference Include="System.Core"/>
36
+ <Reference Include="System.Xml.Linq"/>
37
+ <Reference Include="System.Data.DataSetExtensions"/>
38
+
39
+
40
+ <Reference Include="Microsoft.CSharp"/>
41
+
42
+ <Reference Include="System.Data"/>
43
+
44
+ <Reference Include="System.Net.Http"/>
45
+
46
+ <Reference Include="System.Xml"/>
47
+ </ItemGroup>
48
+ <ItemGroup>
49
+ <Compile Include="Class1.cs" />
50
+ <Compile Include="Properties\AssemblyInfo.cs" />
51
+ </ItemGroup>
52
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
53
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
54
+ Other similar extension points exist, see Microsoft.Common.targets.
55
+ <Target Name="BeforeBuild">
56
+ </Target>
57
+ <Target Name="AfterBuild">
58
+ </Target>
59
+ -->
60
+
61
+ </Project>
@@ -0,0 +1,36 @@
1
+ using System.Reflection;
2
+ using System.Runtime.CompilerServices;
3
+ using System.Runtime.InteropServices;
4
+
5
+ // General Information about an assembly is controlled through the following
6
+ // set of attributes. Change these attribute values to modify the information
7
+ // associated with an assembly.
8
+ [assembly: AssemblyTitle("Exemplar")]
9
+ [assembly: AssemblyDescription("")]
10
+ [assembly: AssemblyConfiguration("")]
11
+ [assembly: AssemblyCompany("")]
12
+ [assembly: AssemblyProduct("Exemplar")]
13
+ [assembly: AssemblyCopyright("Copyright © 2016")]
14
+ [assembly: AssemblyTrademark("")]
15
+ [assembly: AssemblyCulture("")]
16
+
17
+ // Setting ComVisible to false makes the types in this assembly not visible
18
+ // to COM components. If you need to access a type in this assembly from
19
+ // COM, set the ComVisible attribute to true on that type.
20
+ [assembly: ComVisible(false)]
21
+
22
+ // The following GUID is for the ID of the typelib if this project is exposed to COM
23
+ [assembly: Guid("920e7fb5-b5f7-4edd-b360-22f20171ba3e")]
24
+
25
+ // Version information for an assembly consists of the following four values:
26
+ //
27
+ // Major Version
28
+ // Minor Version
29
+ // Build Number
30
+ // Revision
31
+ //
32
+ // You can specify all the values or you can default the Build and Revision Numbers
33
+ // by using the '*' as shown below:
34
+ // [assembly: AssemblyVersion("1.0.*")]
35
+ [assembly: AssemblyVersion("1.0.0.0")]
36
+ [assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,12 @@
1
+ using System;
2
+ using System.Collections.Generic;
3
+ using System.Linq;
4
+ using System.Text;
5
+ using System.Threading.Tasks;
6
+
7
+ namespace subproject
8
+ {
9
+ public class Class1
10
+ {
11
+ }
12
+ }
@@ -0,0 +1,36 @@
1
+ using System.Reflection;
2
+ using System.Runtime.CompilerServices;
3
+ using System.Runtime.InteropServices;
4
+
5
+ // General Information about an assembly is controlled through the following
6
+ // set of attributes. Change these attribute values to modify the information
7
+ // associated with an assembly.
8
+ [assembly: AssemblyTitle("subproject")]
9
+ [assembly: AssemblyDescription("")]
10
+ [assembly: AssemblyConfiguration("")]
11
+ [assembly: AssemblyCompany("")]
12
+ [assembly: AssemblyProduct("subproject")]
13
+ [assembly: AssemblyCopyright("Copyright © 2016")]
14
+ [assembly: AssemblyTrademark("")]
15
+ [assembly: AssemblyCulture("")]
16
+
17
+ // Setting ComVisible to false makes the types in this assembly not visible
18
+ // to COM components. If you need to access a type in this assembly from
19
+ // COM, set the ComVisible attribute to true on that type.
20
+ [assembly: ComVisible(false)]
21
+
22
+ // The following GUID is for the ID of the typelib if this project is exposed to COM
23
+ [assembly: Guid("ecce4739-f180-48c3-85ee-2fa2a67aba9b")]
24
+
25
+ // Version information for an assembly consists of the following four values:
26
+ //
27
+ // Major Version
28
+ // Minor Version
29
+ // Build Number
30
+ // Revision
31
+ //
32
+ // You can specify all the values or you can default the Build and Revision Numbers
33
+ // by using the '*' as shown below:
34
+ // [assembly: AssemblyVersion("1.0.*")]
35
+ [assembly: AssemblyVersion("1.0.0.0")]
36
+ [assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,61 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4
+ <PropertyGroup>
5
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
+ <ProjectGuid>ecce4739-f180-48c3-85ee-2fa2a67aba9b</ProjectGuid>
8
+ <OutputType>Library</OutputType>
9
+ <AppDesignerFolder>Properties</AppDesignerFolder>
10
+ <RootNamespace>subproject</RootNamespace>
11
+ <AssemblyName>subproject</AssemblyName>
12
+ <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
13
+ <FileAlignment>512</FileAlignment>
14
+ </PropertyGroup>
15
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16
+ <DebugSymbols>true</DebugSymbols>
17
+ <DebugType>full</DebugType>
18
+ <Optimize>false</Optimize>
19
+ <OutputPath>bin\Debug\</OutputPath>
20
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
21
+ <ErrorReport>prompt</ErrorReport>
22
+ <WarningLevel>4</WarningLevel>
23
+ </PropertyGroup>
24
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25
+ <DebugType>pdbonly</DebugType>
26
+ <Optimize>true</Optimize>
27
+ <OutputPath>bin\Release\</OutputPath>
28
+ <DefineConstants>TRACE</DefineConstants>
29
+ <ErrorReport>prompt</ErrorReport>
30
+ <WarningLevel>4</WarningLevel>
31
+ </PropertyGroup>
32
+ <ItemGroup>
33
+ <Reference Include="System"/>
34
+
35
+ <Reference Include="System.Core"/>
36
+ <Reference Include="System.Xml.Linq"/>
37
+ <Reference Include="System.Data.DataSetExtensions"/>
38
+
39
+
40
+ <Reference Include="Microsoft.CSharp"/>
41
+
42
+ <Reference Include="System.Data"/>
43
+
44
+ <Reference Include="System.Net.Http"/>
45
+
46
+ <Reference Include="System.Xml"/>
47
+ </ItemGroup>
48
+ <ItemGroup>
49
+ <Compile Include="Class1.cs" />
50
+ <Compile Include="Properties\AssemblyInfo.cs" />
51
+ </ItemGroup>
52
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
53
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
54
+ Other similar extension points exist, see Microsoft.Common.targets.
55
+ <Target Name="BeforeBuild">
56
+ </Target>
57
+ <Target Name="AfterBuild">
58
+ </Target>
59
+ -->
60
+
61
+ </Project>
@@ -0,0 +1,22 @@
1
+ 
2
+ Microsoft Visual Studio Solution File, Format Version 12.00
3
+ # Visual Studio 14
4
+ VisualStudioVersion = 14.0.25420.1
5
+ MinimumVisualStudioVersion = 10.0.40219.1
6
+ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModifiedAssemblyVersion", "ModifiedAssemblyVersion\ModifiedAssemblyVersion.csproj", "{FF3D9B09-5339-4143-B1BD-3521FD2AE3DB}"
7
+ EndProject
8
+ Global
9
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
10
+ Debug|Any CPU = Debug|Any CPU
11
+ Release|Any CPU = Release|Any CPU
12
+ EndGlobalSection
13
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
14
+ {FF3D9B09-5339-4143-B1BD-3521FD2AE3DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15
+ {FF3D9B09-5339-4143-B1BD-3521FD2AE3DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
16
+ {FF3D9B09-5339-4143-B1BD-3521FD2AE3DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
17
+ {FF3D9B09-5339-4143-B1BD-3521FD2AE3DB}.Release|Any CPU.Build.0 = Release|Any CPU
18
+ EndGlobalSection
19
+ GlobalSection(SolutionProperties) = preSolution
20
+ HideSolutionNode = FALSE
21
+ EndGlobalSection
22
+ EndGlobal
@@ -0,0 +1,12 @@
1
+ using System;
2
+ using System.Collections.Generic;
3
+ using System.Linq;
4
+ using System.Text;
5
+ using System.Threading.Tasks;
6
+
7
+ namespace ModifiedAssemblyVersion
8
+ {
9
+ public class Class1
10
+ {
11
+ }
12
+ }
@@ -0,0 +1,61 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4
+ <PropertyGroup>
5
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
+ <ProjectGuid>ff3d9b09-5339-4143-b1bd-3521fd2ae3db</ProjectGuid>
8
+ <OutputType>Library</OutputType>
9
+ <AppDesignerFolder>Properties</AppDesignerFolder>
10
+ <RootNamespace>ModifiedAssemblyVersion</RootNamespace>
11
+ <AssemblyName>ModifiedAssemblyVersion</AssemblyName>
12
+ <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
13
+ <FileAlignment>512</FileAlignment>
14
+ </PropertyGroup>
15
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16
+ <DebugSymbols>true</DebugSymbols>
17
+ <DebugType>full</DebugType>
18
+ <Optimize>false</Optimize>
19
+ <OutputPath>bin\Debug\</OutputPath>
20
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
21
+ <ErrorReport>prompt</ErrorReport>
22
+ <WarningLevel>4</WarningLevel>
23
+ </PropertyGroup>
24
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25
+ <DebugType>pdbonly</DebugType>
26
+ <Optimize>true</Optimize>
27
+ <OutputPath>bin\Release\</OutputPath>
28
+ <DefineConstants>TRACE</DefineConstants>
29
+ <ErrorReport>prompt</ErrorReport>
30
+ <WarningLevel>4</WarningLevel>
31
+ </PropertyGroup>
32
+ <ItemGroup>
33
+ <Reference Include="System"/>
34
+
35
+ <Reference Include="System.Core"/>
36
+ <Reference Include="System.Xml.Linq"/>
37
+ <Reference Include="System.Data.DataSetExtensions"/>
38
+
39
+
40
+ <Reference Include="Microsoft.CSharp"/>
41
+
42
+ <Reference Include="System.Data"/>
43
+
44
+ <Reference Include="System.Net.Http"/>
45
+
46
+ <Reference Include="System.Xml"/>
47
+ </ItemGroup>
48
+ <ItemGroup>
49
+ <Compile Include="Class1.cs" />
50
+ <Compile Include="Properties\AssemblyInfo.cs" />
51
+ </ItemGroup>
52
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
53
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
54
+ Other similar extension points exist, see Microsoft.Common.targets.
55
+ <Target Name="BeforeBuild">
56
+ </Target>
57
+ <Target Name="AfterBuild">
58
+ </Target>
59
+ -->
60
+
61
+ </Project>
@@ -0,0 +1,36 @@
1
+ using System.Reflection;
2
+ using System.Runtime.CompilerServices;
3
+ using System.Runtime.InteropServices;
4
+
5
+ // General Information about an assembly is controlled through the following
6
+ // set of attributes. Change these attribute values to modify the information
7
+ // associated with an assembly.
8
+ [assembly: AssemblyTitle("ModifiedAssemblyVersion")]
9
+ [assembly: AssemblyDescription("")]
10
+ [assembly: AssemblyConfiguration("")]
11
+ [assembly: AssemblyCompany("")]
12
+ [assembly: AssemblyProduct("ModifiedAssemblyVersion")]
13
+ [assembly: AssemblyCopyright("Copyright © 2016")]
14
+ [assembly: AssemblyTrademark("")]
15
+ [assembly: AssemblyCulture("")]
16
+
17
+ // Setting ComVisible to false makes the types in this assembly not visible
18
+ // to COM components. If you need to access a type in this assembly from
19
+ // COM, set the ComVisible attribute to true on that type.
20
+ [assembly: ComVisible(false)]
21
+
22
+ // The following GUID is for the ID of the typelib if this project is exposed to COM
23
+ [assembly: Guid("ff3d9b09-5339-4143-b1bd-3521fd2ae3db")]
24
+
25
+ // Version information for an assembly consists of the following four values:
26
+ //
27
+ // Major Version
28
+ // Minor Version
29
+ // Build Number
30
+ // Revision
31
+ //
32
+ // You can specify all the values or you can default the Build and Revision Numbers
33
+ // by using the '*' as shown below:
34
+ // [assembly: AssemblyVersion("1.0.*")]
35
+ [assembly: AssemblyVersion("2.0.0.0")]
36
+ [assembly: AssemblyFileVersion("2.0.0.0")]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: albacore
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Feldt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-01 00:00:00.000000000 Z
12
+ date: 2017-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -133,6 +133,7 @@ files:
133
133
  - "./lib/albacore/config_dsl.rb"
134
134
  - "./lib/albacore/cpack_app_spec.rb"
135
135
  - "./lib/albacore/cross_platform_cmd.rb"
136
+ - "./lib/albacore/csharp_project.rb"
136
137
  - "./lib/albacore/dsl.rb"
137
138
  - "./lib/albacore/errors/command_failed_error.rb"
138
139
  - "./lib/albacore/errors/command_not_found_error.rb"
@@ -142,6 +143,7 @@ files:
142
143
  - "./lib/albacore/ext/teamcity.rb"
143
144
  - "./lib/albacore/facts.rb"
144
145
  - "./lib/albacore/fpm_app_spec.rb"
146
+ - "./lib/albacore/fsharp_project.rb"
145
147
  - "./lib/albacore/logging.rb"
146
148
  - "./lib/albacore/nuget_model.rb"
147
149
  - "./lib/albacore/package.rb"
@@ -178,6 +180,7 @@ files:
178
180
  - "./lib/albacore/tools/fluent_migrator.rb"
179
181
  - "./lib/albacore/tools/restore_hint_paths.rb"
180
182
  - "./lib/albacore/tools/zippy.rb"
183
+ - "./lib/albacore/vb_project.rb"
181
184
  - "./lib/albacore/version.rb"
182
185
  - "./resources/chocolateyInstall.ps1"
183
186
  - "./resources/installSite.ps1"
@@ -394,6 +397,17 @@ files:
394
397
  - spec/testdata/TestingDependencies/vendor/FSharp.Core.optdata
395
398
  - spec/testdata/TestingDependencies/vendor/FSharp.Core.sigdata
396
399
  - spec/testdata/TestingDependencies/vendor/FSharp.Core.xml
400
+ - spec/testdata/csharp/Exemplar/Exemplar.sln
401
+ - spec/testdata/csharp/Exemplar/Exemplar/Class1.cs
402
+ - spec/testdata/csharp/Exemplar/Exemplar/Exemplar.csproj
403
+ - spec/testdata/csharp/Exemplar/Exemplar/Properties/AssemblyInfo.cs
404
+ - spec/testdata/csharp/Exemplar/subproject/Class1.cs
405
+ - spec/testdata/csharp/Exemplar/subproject/Properties/AssemblyInfo.cs
406
+ - spec/testdata/csharp/Exemplar/subproject/subproject.csproj
407
+ - spec/testdata/csharp/ModifiedAssemblyVersion/ModifiedAssemblyVersion.sln
408
+ - spec/testdata/csharp/ModifiedAssemblyVersion/ModifiedAssemblyVersion/Class1.cs
409
+ - spec/testdata/csharp/ModifiedAssemblyVersion/ModifiedAssemblyVersion/ModifiedAssemblyVersion.csproj
410
+ - spec/testdata/csharp/ModifiedAssemblyVersion/ModifiedAssemblyVersion/Properties/AssemblyInfo.cs
397
411
  - spec/testdata/example.nuspec
398
412
  - spec/testdata/example.symbols.nuspec
399
413
  - spec/tools/fluent_migrator_spec.rb
@@ -637,6 +651,17 @@ test_files:
637
651
  - spec/testdata/TestingDependencies/vendor/FSharp.Core.optdata
638
652
  - spec/testdata/TestingDependencies/vendor/FSharp.Core.sigdata
639
653
  - spec/testdata/TestingDependencies/vendor/FSharp.Core.xml
654
+ - spec/testdata/csharp/Exemplar/Exemplar.sln
655
+ - spec/testdata/csharp/Exemplar/Exemplar/Class1.cs
656
+ - spec/testdata/csharp/Exemplar/Exemplar/Exemplar.csproj
657
+ - spec/testdata/csharp/Exemplar/Exemplar/Properties/AssemblyInfo.cs
658
+ - spec/testdata/csharp/Exemplar/subproject/Class1.cs
659
+ - spec/testdata/csharp/Exemplar/subproject/Properties/AssemblyInfo.cs
660
+ - spec/testdata/csharp/Exemplar/subproject/subproject.csproj
661
+ - spec/testdata/csharp/ModifiedAssemblyVersion/ModifiedAssemblyVersion.sln
662
+ - spec/testdata/csharp/ModifiedAssemblyVersion/ModifiedAssemblyVersion/Class1.cs
663
+ - spec/testdata/csharp/ModifiedAssemblyVersion/ModifiedAssemblyVersion/ModifiedAssemblyVersion.csproj
664
+ - spec/testdata/csharp/ModifiedAssemblyVersion/ModifiedAssemblyVersion/Properties/AssemblyInfo.cs
640
665
  - spec/testdata/example.nuspec
641
666
  - spec/testdata/example.symbols.nuspec
642
667
  - spec/tools/fluent_migrator_spec.rb