dev 2.1.32 → 2.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/apps/msbuild.rb +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c89d9f1e027ef848be89f0e18a1a6d8b8cd26b17
|
4
|
+
data.tar.gz: 1127aea458e8e0275403e5cc6efa0f08e67f79f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4109b8ff803db500ae2168687244e43514685d16250fbcaccff3e28ba26bf15e30002d0d378e572b35cd3db152df01feef89eeb11fadbc2e2ce0a6359593a73
|
7
|
+
data.tar.gz: 8a1358747fa838f8012504763b561963777f47a744c32d7094223a7a010c74b921435d2a867b49424c91d626c69e4bc226d464c004265689a20a29ae4b03fa2e
|
data/lib/apps/msbuild.rb
CHANGED
@@ -6,6 +6,7 @@ puts __FILE__ if defined?(DEBUG)
|
|
6
6
|
# Visual Studio 2015 version 14.0, solution format version 12.00
|
7
7
|
class MSBuild < Hash
|
8
8
|
|
9
|
+
@@ignore_configurations=Array.new
|
9
10
|
def initialize
|
10
11
|
if(File.exists?("C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe"))
|
11
12
|
self[:vs14]="C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe"
|
@@ -15,11 +16,16 @@ class MSBuild < Hash
|
|
15
16
|
puts "MSBUILD[:vs14]='PATH_TO_MSBUILD' may be used to specify msbuild path."
|
16
17
|
end
|
17
18
|
end
|
19
|
+
|
18
20
|
self[:vs9]="C:\\Windows\\Microsoft.NET\\Framework\\v3.5\\msbuild.exe" if(File.exists?("C:\\Windows\\Microsoft.NET\\Framework\\v3.5\\msbuild.exe"))
|
19
21
|
self[:vs10]="C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe" if(File.exists?("C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe"))
|
20
22
|
self[:vs12]="C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\msbuild.exe" if(File.exists?("C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\msbuild.exe"))
|
21
23
|
end
|
22
|
-
|
24
|
+
|
25
|
+
def self.ignore_configuration(configuration)
|
26
|
+
@@ignore_configurations.add(configuration) if(!@@ignore_configurations.include?(configuration))
|
27
|
+
end
|
28
|
+
|
23
29
|
def self.has_version? version
|
24
30
|
if(defined?(MSBUILD))
|
25
31
|
MSBUILD.has_key?(version)
|
@@ -62,7 +68,9 @@ class MSBuild < Hash
|
|
62
68
|
sln_text=File.read(sln_filename,:encoding=>'UTF-8')
|
63
69
|
sln_text.scan( /= ([\w]+)\|/ ).each{|m|
|
64
70
|
c=m.first.to_s
|
65
|
-
|
71
|
+
if(!@@ignore_configurations.include?(c))
|
72
|
+
configs << c if !configs.include?(c)
|
73
|
+
end
|
66
74
|
}
|
67
75
|
return configs
|
68
76
|
end
|