dev 2.1.33 → 2.1.34
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 +22 -18
- 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: cc05f2fa37b71ffb47d67e2230a0a52d2f5eaf4b
|
4
|
+
data.tar.gz: b4a55279b972961af2501fe607501503625aa74f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa483a393fc1d0f9c5575f92b2d71bfe06f3845cdb10bf4ea56921dd9fbc1f758cc17b5536e3a5f6660be69c6816a467858b0d57cd0f8dc6cae88edde1ae0e0c
|
7
|
+
data.tar.gz: 82322e1b539304d38b15594f358f127d08b4bdd48079b78979f76f571aed9c21db2b812b3ed69a00fef277eca4aad1077bd46910c5fa4e053a3728c0972da973
|
data/lib/apps/msbuild.rb
CHANGED
@@ -6,7 +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
|
-
|
9
|
+
#@@ignore_configurations=Array.new
|
10
10
|
def initialize
|
11
11
|
if(File.exists?("C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe"))
|
12
12
|
self[:vs14]="C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe"
|
@@ -22,9 +22,9 @@ class MSBuild < Hash
|
|
22
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"))
|
23
23
|
end
|
24
24
|
|
25
|
-
def self.ignore_configuration(configuration)
|
26
|
-
|
27
|
-
end
|
25
|
+
#def self.ignore_configuration(configuration)
|
26
|
+
# @@ignore_configurations.add(configuration) if(!@@ignore_configurations.include?(configuration))
|
27
|
+
#end
|
28
28
|
|
29
29
|
def self.has_version? version
|
30
30
|
if(defined?(MSBUILD))
|
@@ -55,25 +55,29 @@ class MSBuild < Hash
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def self.get_vs_version(sln_filename)
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
58
|
+
sln_text=File.read(sln_filename,:encoding=>'UTF-8')
|
59
|
+
return :vs9 if sln_text.include?('Format Version 10.00')
|
60
|
+
return :vs12 if sln_text.include?('12.0.30723.0')
|
61
|
+
return :vs12 if sln_text.include?('Visual Studio 2013')
|
62
|
+
return :vs12 if sln_text.include?('12.0.31101.0')
|
63
|
+
return :vs14
|
64
|
+
end
|
65
65
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
66
|
+
def self.get_configurations(sln_filename)
|
67
|
+
configs=Array.new
|
68
|
+
sln_text=File.read(sln_filename,:encoding=>'UTF-8')
|
69
|
+
sln_text.scan( /= ([\w]+)\|/ ).each{|m|
|
70
|
+
c=m.first.to_s
|
71
|
+
ignore = false
|
72
|
+
if(defined?(IGNORE_CONFIGURATIONS))
|
73
|
+
ignore = true if IGNORE_CONFIGURATIONS.include?(c)
|
74
|
+
end
|
75
|
+
if(!ignore)
|
72
76
|
configs << c if !configs.include?(c)
|
73
77
|
end
|
74
78
|
}
|
75
79
|
return configs
|
76
|
-
|
80
|
+
end
|
77
81
|
|
78
82
|
def self.get_platforms(sln_filename)
|
79
83
|
platforms=Array.new
|