dev 1.0.62 → 1.0.63
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dev/Project.rb +5 -3
- metadata +1 -1
data/lib/dev/Project.rb
CHANGED
@@ -367,20 +367,22 @@ class Project < Hash
|
|
367
367
|
} if self[:type]=="gem"
|
368
368
|
|
369
369
|
Dir.glob("*.csproj").each{|cs|
|
370
|
-
extract_platforms(cs)
|
370
|
+
platforms = extract_platforms(cs)
|
371
|
+
platforms = ["AnyCPU"] if platforms.nil?
|
372
|
+
platforms.each{ |platform|
|
371
373
|
if(platform=="AnyCPU")
|
372
374
|
if(!has_key?(:any_release_compile_flags))
|
373
375
|
self[:any_release_compile_flags]="/property:Configuration=Release /property:Platform=\"Any CPU\" /p:OutputPath=./bin/x86/Release"
|
374
376
|
end
|
375
377
|
array<<"<paths,msbuild> #{cs} <any_release_compile_flags>"
|
376
378
|
end
|
377
|
-
if(platform
|
379
|
+
if(platform=="x86")
|
378
380
|
if(!has_key?(:x86_release_compile_flags))
|
379
381
|
self[:x86_release_compile_flags]="/property:Configuration=Release /property:Platform=\"x86\" /p:OutputPath=./bin/x86/Release"
|
380
382
|
end
|
381
383
|
array<<"<paths,msbuild> #{cs} <x86_release_compile_flags>"
|
382
384
|
end
|
383
|
-
if(platform
|
385
|
+
if(platform=="x64")
|
384
386
|
if(!has_key?(:x64_release_compile_flags))
|
385
387
|
self[:x64_release_compile_flags]="/property:Configuration=Release /property:Platform=\"x64\" /p:OutputPath=./bin/x86/Release"
|
386
388
|
end
|