Permalink
Browse files

autoconvert newlines

  • Loading branch information...
handcraftsman committed Apr 6, 2010
1 parent c123570 commit 56c8cf400bf73adfba596dbbc45580e69b9943c6
Showing with 17,270 additions and 17,270 deletions.
  1. +7 −7 Build.bat
  2. +80 −80 RakeFile
  3. +80 −80 build_support/BuildUtils.rb
  4. +30 −30 build_support/Ruby_Not_Installed.txt
  5. +2 −2 lib/FluentAssert/provenance.txt
  6. +5 −5 lib/JetBrains.Annotations/provenance.txt
  7. +277 −277 lib/NUnit/NUnitFitTests.html
  8. +84 −84 lib/NUnit/NUnitTests.config
  9. +14 −14 lib/NUnit/NUnitTests.nunit
  10. +3 −3 lib/NUnit/agent.conf
  11. +18 −18 lib/NUnit/agent.log.conf
  12. +18 −18 lib/NUnit/launcher.log.conf
  13. +15 −15 lib/NUnit/license.txt
  14. +86 −86 lib/NUnit/nunit-agent-x86.exe.config
  15. +86 −86 lib/NUnit/nunit-agent.exe.config
  16. +86 −86 lib/NUnit/nunit-console-x86.exe.config
  17. +86 −86 lib/NUnit/nunit-console.exe.config
  18. +94 −94 lib/NUnit/nunit-x86.exe.config
  19. +94 −94 lib/NUnit/nunit.exe.config
  20. +86 −86 lib/NUnit/pnunit-agent.exe.config
  21. +86 −86 lib/NUnit/pnunit-launcher.exe.config
  22. +3 −3 lib/NUnit/provenance.txt
  23. +43 −43 lib/NUnit/runFile.exe.config
  24. +1 −1 lib/NUnit/runpnunit.bat
  25. +23 −23 lib/NUnit/test.conf
  26. +5,413 −5,413 lib/RhinoMocks/Rhino.Mocks.xml
  27. +3 −3 lib/RhinoMocks/WhereDidThisComeFrom.txt
  28. +1 −1 lib/RhinoMocks/acknowledgements.txt
  29. +24 −24 lib/RhinoMocks/license.txt
  30. +2 −2 lib/StructureMap/WhereDidThisComeFrom.txt
  31. +1,106 −1,106 src/FluentWebControls.4.5.resharper
  32. +18 −18 src/FluentWebControls.Tests/AlignAttributeTest.cs
  33. +309 −309 src/FluentWebControls.Tests/ButtonDataTest.cs
  34. +81 −81 src/FluentWebControls.Tests/ButtonTest.cs
  35. +99 −99 src/FluentWebControls.Tests/CheckBoxDataTest.cs
  36. +29 −29 src/FluentWebControls.Tests/CheckBoxTest.cs
  37. +94 −94 src/FluentWebControls.Tests/ComboSelectDataTest.cs
  38. +19 −19 src/FluentWebControls.Tests/CommandColumnTest.cs
  39. +128 −128 src/FluentWebControls.Tests/CommandGridColumnTest.cs
  40. +164 −164 src/FluentWebControls.Tests/DropDownListDataTest.cs
  41. +32 −32 src/FluentWebControls.Tests/DropDownListTest.cs
  42. +155 −155 src/FluentWebControls.Tests/Extensions/ButtonDataExtensionsTest.cs
  43. +135 −135 src/FluentWebControls.Tests/Extensions/CheckBoxDataExtensionsTest.cs
  44. +96 −96 src/FluentWebControls.Tests/Extensions/ComboSelectDataExtensionsTest.cs
  45. +57 −57 src/FluentWebControls.Tests/Extensions/CommandColumnExtensionsTest.cs
  46. +189 −189 src/FluentWebControls.Tests/Extensions/DropDownListDataExtensionsTest.cs
  47. +80 −80 src/FluentWebControls.Tests/Extensions/GridDataExtensionsTest.cs
  48. +35 −35 src/FluentWebControls.Tests/Extensions/HiddenDataExtensionsTest.cs
  49. +136 −136 src/FluentWebControls.Tests/Extensions/KeyValuePairExtensionsTests.cs
  50. +48 −48 src/FluentWebControls.Tests/Extensions/LabelDataExtensionsTest.cs
  51. +179 −179 src/FluentWebControls.Tests/Extensions/LinkDataExtensionsTest.cs
  52. +272 −272 src/FluentWebControls.Tests/Extensions/PagedListExtensionsTest.cs
  53. +23 −23 src/FluentWebControls.Tests/Extensions/PropertyMetaData.cs
  54. +57 −57 src/FluentWebControls.Tests/Extensions/RegularColumnExtensionsTest.cs
  55. +57 −57 src/FluentWebControls.Tests/Extensions/SortableColumnExtensionsTest.cs
  56. +68 −68 src/FluentWebControls.Tests/Extensions/StringExtensionsTests.cs
  57. +87 −87 src/FluentWebControls.Tests/Extensions/TExtensionsTests.cs
  58. +113 −113 src/FluentWebControls.Tests/Extensions/TextAreaDataExtensionsTest.cs
  59. +145 −145 src/FluentWebControls.Tests/Extensions/TextBoxDataExtensionsTest.cs
  60. +141 −141 src/FluentWebControls.Tests/FluentWebControls.Tests.csproj
  61. +42 −42 src/FluentWebControls.Tests/GridColumnTest.cs
  62. +130 −130 src/FluentWebControls.Tests/GridDataTest.cs
  63. +56 −56 src/FluentWebControls.Tests/HiddenDataTest.cs
  64. +71 −71 src/FluentWebControls.Tests/HiddenTest.cs
  65. +112 −112 src/FluentWebControls.Tests/LabelDataTest.cs
  66. +50 −50 src/FluentWebControls.Tests/LabelTest.cs
  67. +86 −86 src/FluentWebControls.Tests/LinkDataTest.cs
  68. +130 −130 src/FluentWebControls.Tests/LinkTest.cs
  69. +21 −21 src/FluentWebControls.Tests/PagedGridTest.cs
  70. +38 −38 src/FluentWebControls.Tests/Properties/AssemblyInfo.cs
  71. +19 −19 src/FluentWebControls.Tests/RegularColumnTest.cs
  72. +23 −23 src/FluentWebControls.Tests/ScrollableGridTest.cs
  73. +19 −19 src/FluentWebControls.Tests/SortableColumnTest.cs
  74. +53 −53 src/FluentWebControls.Tests/SortableGridColumnTest.cs
  75. +16 −16 src/FluentWebControls.Tests/TestData.cs
  76. +21 −21 src/FluentWebControls.Tests/TestWebControlsUtility.cs
  77. +90 −90 src/FluentWebControls.Tests/TextAreaDataTest.cs
  78. +40 −40 src/FluentWebControls.Tests/TextAreaTest.cs
  79. +220 −220 src/FluentWebControls.Tests/TextBoxDataTest.cs
  80. +51 −51 src/FluentWebControls.Tests/TextBoxTest.cs
  81. +79 −79 src/FluentWebControls.Tests/ValidatableWebControlBaseTest.cs
  82. +26 −26 src/FluentWebControls.sln
  83. +30 −30 src/FluentWebControls/AlignAttribute.cs
  84. +28 −28 src/FluentWebControls/Button.cs
  85. +169 −169 src/FluentWebControls/ButtonData.cs
  86. +33 −33 src/FluentWebControls/CheckBox.cs
  87. +100 −100 src/FluentWebControls/CheckBoxData.cs
  88. +41 −41 src/FluentWebControls/ComboSelect.cs
  89. +65 −65 src/FluentWebControls/ComboSelectData.cs
  90. +76 −76 src/FluentWebControls/CommandColumn.cs
  91. +19 −19 src/FluentWebControls/CommandGridColumn.cs
  92. +9 −9 src/FluentWebControls/Configuration.cs
  93. +18 −18 src/FluentWebControls/ControllerInfo.cs
  94. +83 −83 src/FluentWebControls/DataColumn.cs
  95. +31 −31 src/FluentWebControls/DropDownList.cs
  96. +213 −213 src/FluentWebControls/DropDownListData.cs
  97. +71 −71 src/FluentWebControls/Extensions/ButtonDataExtensions.cs
  98. +40 −40 src/FluentWebControls/Extensions/CheckBoxDataExtensions.cs
  99. +68 −68 src/FluentWebControls/Extensions/ComboSelectDataExtensions.cs
  100. +28 −28 src/FluentWebControls/Extensions/CommandColumnExtensions.cs
  101. +46 −46 src/FluentWebControls/Extensions/DataColumnExtensions.cs
  102. +117 −117 src/FluentWebControls/Extensions/DropDownListDataExtensions.cs
  103. +22 −22 src/FluentWebControls/Extensions/GridCommandColumnExtensions.cs
  104. +37 −37 src/FluentWebControls/Extensions/GridDataExtensions.cs
  105. +18 −18 src/FluentWebControls/Extensions/HiddenDataExtensions.cs
  106. +12 −12 src/FluentWebControls/Extensions/IBooleanMapExtensions.cs
  107. +23 −23 src/FluentWebControls/Extensions/IChoiceListMapExtensions.cs
  108. +27 −27 src/FluentWebControls/Extensions/IFreeTextMapExtensions.cs
  109. +31 −31 src/FluentWebControls/Extensions/IWebControlExtensions.cs
  110. +23 −23 src/FluentWebControls/Extensions/KeyValuePairExtensions.cs
  111. +30 −30 src/FluentWebControls/Extensions/LabelDataExtensions.cs
  112. +128 −128 src/FluentWebControls/Extensions/LinkDataExtensions.cs
  113. +118 −118 src/FluentWebControls/Extensions/PagedListExtensions.cs
  114. +34 −34 src/FluentWebControls/Extensions/RegularColumnExtensions.cs
  115. +34 −34 src/FluentWebControls/Extensions/SortableColumnExtensions.cs
  116. +76 −76 src/FluentWebControls/Extensions/StringExtensions.cs
  117. +28 −28 src/FluentWebControls/Extensions/TExtensions.cs
  118. +54 −54 src/FluentWebControls/Extensions/TableDataExtensions.cs
  119. +39 −39 src/FluentWebControls/Extensions/TextAreaDataExtensions.cs
  120. +46 −46 src/FluentWebControls/Extensions/TextBoxDataExtensions.cs
  121. +37 −37 src/FluentWebControls/Extensions/ValidatableWebControlBaseExtensions.cs
  122. +233 −233 src/FluentWebControls/Fluent.cs
  123. +157 −157 src/FluentWebControls/FluentWebControls.csproj
  124. +64 −64 src/FluentWebControls/GridColumn.cs
  125. +28 −28 src/FluentWebControls/GridCommandColumn.cs
  126. +204 −204 src/FluentWebControls/GridData.cs
  127. +26 −26 src/FluentWebControls/Hidden.cs
  128. +36 −36 src/FluentWebControls/HiddenData.cs
  129. +5 −5 src/FluentWebControls/IControllerAwareWebControl.cs
  130. +22 −22 src/FluentWebControls/IGridColumn.cs
  131. +9 −9 src/FluentWebControls/IHtmlColumn.cs
  132. +7 −7 src/FluentWebControls/IWebControl.cs
  133. +13 −13 src/FluentWebControls/Interfaces/IBusinessObjectPropertyMetaDataFactory.cs
  134. +36 −36 src/FluentWebControls/Interfaces/IPagedList.cs
  135. +17 −17 src/FluentWebControls/Interfaces/IPagedListParameters.cs
  136. +13 −13 src/FluentWebControls/Interfaces/IPathUtility.cs
  137. +20 −20 src/FluentWebControls/Interfaces/IPropertyMetaData.cs
  138. +65 −65 src/FluentWebControls/Interfaces/PagedList.cs
  139. +34 −34 src/FluentWebControls/Label.cs
  140. +59 −59 src/FluentWebControls/LabelData.cs
  141. +38 −38 src/FluentWebControls/Link.cs
  142. +193 −193 src/FluentWebControls/LinkData.cs
  143. +20 −20 src/FluentWebControls/Mapping/BooleanMap.cs
  144. +54 −54 src/FluentWebControls/Mapping/ChoiceListMap.cs
  145. +34 −34 src/FluentWebControls/Mapping/FreeTextMap.cs
  146. +7 −7 src/FluentWebControls/Mapping/IBooleanMap.cs
  147. +13 −13 src/FluentWebControls/Mapping/IChoiceListMap.cs
  148. +10 −10 src/FluentWebControls/Mapping/IFreeTextMap.cs
  149. +5 −5 src/FluentWebControls/Mapping/IListUIMap.cs
  150. +6 −6 src/FluentWebControls/Mapping/IUIMap.cs
  151. +69 −69 src/FluentWebControls/Mapping/ListUIMap.cs
  152. +18 −18 src/FluentWebControls/Mapping/UIColumn.cs
  153. +206 −206 src/FluentWebControls/Mapping/UIMap.cs
  154. +52 −52 src/FluentWebControls/PagedGrid.cs
  155. +98 −98 src/FluentWebControls/PagedGridData.cs
  156. +38 −38 src/FluentWebControls/Properties/AssemblyInfo.cs
  157. +24 −24 src/FluentWebControls/RegularColumn.cs
  158. +65 −65 src/FluentWebControls/RegularGridColumn.cs
  159. +60 −60 src/FluentWebControls/ScrollableGrid.cs
  160. +99 −99 src/FluentWebControls/ScrollableGridData.cs
  161. +16 −16 src/FluentWebControls/SortableColumn.cs
  162. +56 −56 src/FluentWebControls/SortableGridColumn.cs
  163. +11 −11 src/FluentWebControls/Table.cs
  164. +91 −91 src/FluentWebControls/TableData.cs
  165. +17 −17 src/FluentWebControls/TextArea.cs
  166. +123 −123 src/FluentWebControls/TextAreaData.cs
  167. +22 −22 src/FluentWebControls/TextBox.cs
  168. +171 −171 src/FluentWebControls/TextBoxData.cs
  169. +77 −77 src/FluentWebControls/ValidatableWebControlBase.cs
  170. +10 −10 src/FluentWebControls/Validation/FieldValidationType.cs
  171. +22 −22 src/FluentWebControls/WebControlBase.cs
View
@@ -1,8 +1,8 @@
-@ECHO OFF
-rake %*
-IF %ERRORLEVEL%==9009 GOTO:rake_failed
-GOTO:EOF
-
-:rake_failed
-type build_support\Ruby_Not_Installed.txt
+@ECHO OFF
+rake %*
+IF %ERRORLEVEL%==9009 GOTO:rake_failed
+GOTO:EOF
+
+:rake_failed
+type build_support\Ruby_Not_Installed.txt
GOTO :EOF
View
160 RakeFile
@@ -1,81 +1,81 @@
-COMPILE_TARGET = "debug"
-require "build_support/BuildUtils.rb"
-
-include FileTest
-
-require 'rubygems'
-
-require 'zip/zip'
-require 'zip/zipfilesystem'
-
-RESULTS_DIR = "results"
-BUILD_NUMBER = "0.2.0.0"
-PRODUCT = "FluentWebControls"
-COPYRIGHT = 'Copyright 2009 McCreary, Veselka, Bragg & Allen, P.C. All rights reserved.';
-COMMON_ASSEMBLY_INFO = 'src/CommonAssemblyInfo.cs';
-CLR_VERSION = "v3.5"
-
-versionNumber = ENV["BUILD_NUMBER"].nil? ? 0 : ENV["BUILD_NUMBER"]
-
-props = { :archive => "build_fluentwebcontrols" }
-
-desc "Compiles, unit tests"
-task :all => [:default]
-
-desc "**Default**, compiles and runs tests"
-task :default => [:compile, :test] do
- puts "Build Succeeded"
-end
-
-desc "Displays a list of tasks"
-task :help do
- taskHash = Hash[*(`rake.cmd -T`.split(/\n/).collect { |l| l.match(/rake (\S+)\s+\#\s(.+)/).to_a }.collect { |l| [l[1], l[2]] }).flatten]
-
- indent = " "
-
- puts "rake #{indent}#Runs the 'default' task"
-
- taskHash.each_pair do |key, value|
- if key.nil?
- next
- end
- puts "rake #{key}#{indent.slice(0, indent.length - key.length)}##{value}"
- end
-end
-
-desc "Update the version information for the build"
-task :version do
- builder = AsmInfoBuilder.new(BUILD_NUMBER, {'Product' => PRODUCT, 'Copyright' => COPYRIGHT})
- buildNumber = builder.buildnumber
- puts "The build number is #{buildNumber}"
- builder.write COMMON_ASSEMBLY_INFO
-end
-
-desc "Prepares the working directory for a new build"
-task :clean do
- #TODO: do any other tasks required to clean/prepare the working directory
- Dir.mkdir props[:archive] unless exists?(props[:archive])
-end
-
-desc "Compiles the app"
-task :compile => [:clean, :version] do
- MSBuildRunner.compile :compilemode => COMPILE_TARGET, :solutionfile => 'src/FluentWebControls.sln', :clrversion => CLR_VERSION
-
- outDir = "src/FluentWebControls/bin/#{COMPILE_TARGET}"
-
- Dir.glob(File.join(outDir, "*.{dll,pdb}")){|file|
- copy(file, props[:archive]) if File.file?(file)
- }
-end
-
-desc "Runs unit tests"
-task :test => [:unit_test]
-
-desc "Runs FluentWebControls.Tests unit tests"
-task :unit_test => :compile do
- runner = NUnitRunner.new :compilemode => COMPILE_TARGET, :source => 'src', :platform => 'x86'
- runner.executeTests ['FluentWebControls.Tests']
-end
-
-desc "Target used for the CI server"
+COMPILE_TARGET = "debug"
+require "build_support/BuildUtils.rb"
+
+include FileTest
+
+require 'rubygems'
+
+require 'zip/zip'
+require 'zip/zipfilesystem'
+
+RESULTS_DIR = "results"
+BUILD_NUMBER = "0.2.0.0"
+PRODUCT = "FluentWebControls"
+COPYRIGHT = 'Copyright 2009 McCreary, Veselka, Bragg & Allen, P.C. All rights reserved.';
+COMMON_ASSEMBLY_INFO = 'src/CommonAssemblyInfo.cs';
+CLR_VERSION = "v3.5"
+
+versionNumber = ENV["BUILD_NUMBER"].nil? ? 0 : ENV["BUILD_NUMBER"]
+
+props = { :archive => "build_fluentwebcontrols" }
+
+desc "Compiles, unit tests"
+task :all => [:default]
+
+desc "**Default**, compiles and runs tests"
+task :default => [:compile, :test] do
+ puts "Build Succeeded"
+end
+
+desc "Displays a list of tasks"
+task :help do
+ taskHash = Hash[*(`rake.cmd -T`.split(/\n/).collect { |l| l.match(/rake (\S+)\s+\#\s(.+)/).to_a }.collect { |l| [l[1], l[2]] }).flatten]
+
+ indent = " "
+
+ puts "rake #{indent}#Runs the 'default' task"
+
+ taskHash.each_pair do |key, value|
+ if key.nil?
+ next
+ end
+ puts "rake #{key}#{indent.slice(0, indent.length - key.length)}##{value}"
+ end
+end
+
+desc "Update the version information for the build"
+task :version do
+ builder = AsmInfoBuilder.new(BUILD_NUMBER, {'Product' => PRODUCT, 'Copyright' => COPYRIGHT})
+ buildNumber = builder.buildnumber
+ puts "The build number is #{buildNumber}"
+ builder.write COMMON_ASSEMBLY_INFO
+end
+
+desc "Prepares the working directory for a new build"
+task :clean do
+ #TODO: do any other tasks required to clean/prepare the working directory
+ Dir.mkdir props[:archive] unless exists?(props[:archive])
+end
+
+desc "Compiles the app"
+task :compile => [:clean, :version] do
+ MSBuildRunner.compile :compilemode => COMPILE_TARGET, :solutionfile => 'src/FluentWebControls.sln', :clrversion => CLR_VERSION
+
+ outDir = "src/FluentWebControls/bin/#{COMPILE_TARGET}"
+
+ Dir.glob(File.join(outDir, "*.{dll,pdb}")){|file|
+ copy(file, props[:archive]) if File.file?(file)
+ }
+end
+
+desc "Runs unit tests"
+task :test => [:unit_test]
+
+desc "Runs FluentWebControls.Tests unit tests"
+task :unit_test => :compile do
+ runner = NUnitRunner.new :compilemode => COMPILE_TARGET, :source => 'src', :platform => 'x86'
+ runner.executeTests ['FluentWebControls.Tests']
+end
+
+desc "Target used for the CI server"
task :ci => [:unit_test]
View
@@ -1,80 +1,80 @@
-require 'erb'
-
-class NUnitRunner
- include FileTest
-
- def initialize(paths)
- @sourceDir = paths.fetch(:source, 'source')
- @resultsDir = paths.fetch(:results, 'results')
- @compilePlatform = paths.fetch(:platform, '')
- @compileTarget = paths.fetch(:compilemode, 'debug')
-
- @nunitExe = File.join('lib', 'nunit', "nunit-console#{(@compilePlatform.empty? ? '' : "-#{@compilePlatform}")}.exe").gsub('/','\\') + ' /nothread'
- end
-
- def executeTests(assemblies)
- Dir.mkdir @resultsDir unless exists?(@resultsDir)
-
- assemblies.each do |assem|
- file = File.expand_path("#{@sourceDir}/#{assem}/bin/#{@compileTarget}/#{assem}.dll")
- sh "#{@nunitExe} #{file}"
- end
- end
-end
-
-class MSBuildRunner
- def self.compile(attributes)
- version = attributes.fetch(:clrversion, 'v3.5')
- compileTarget = attributes.fetch(:compilemode, 'debug')
- solutionFile = attributes[:solutionfile]
-
- frameworkDir = File.join(ENV['windir'].dup, 'Microsoft.NET', 'Framework', version)
- msbuildFile = File.join(frameworkDir, 'msbuild.exe')
-
- sh "#{msbuildFile} #{solutionFile} /nologo /maxcpucount /v:m /property:BuildInParallel=false /property:Configuration=#{compileTarget} /t:Rebuild"
- end
-end
-
-class AspNetCompilerRunner
- def self.compile(attributes)
-
- webPhysDir = attributes.fetch(:webPhysDir, '')
- webVirDir = attributes.fetch(:webVirDir, 'This_Value_Is_Not_Used')
-
- frameworkDir = File.join(ENV['windir'].dup, 'Microsoft.NET', 'Framework', 'v2.0.50727')
- aspNetCompiler = File.join(frameworkDir, 'aspnet_compiler.exe')
-
- sh "#{aspNetCompiler} -nologo -errorstack -c -p #{webPhysDir} -v #{webVirDir}"
- end
-end
-
-class AsmInfoBuilder
- attr_reader :buildnumber
-
- def initialize(baseVersion, properties)
- @properties = properties;
-
- @buildnumber = baseVersion + (ENV["CCNetLabel"].nil? ? '0' : ENV["CCNetLabel"].to_s)
- @properties['Version'] = @properties['InformationalVersion'] = buildnumber;
- end
-
-
-
- def write(file)
- template = %q{
-using System;
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-<% @properties.each {|k, v| %>
-[assembly: Assembly<%=k%>Attribute("<%=v%>")]
-<% } %>
- }.gsub(/^ /, '')
-
- erb = ERB.new(template, 0, "%<>")
-
- File.open(file, 'w') do |file|
- file.puts erb.result(binding)
- end
- end
-end
+require 'erb'
+
+class NUnitRunner
+ include FileTest
+
+ def initialize(paths)
+ @sourceDir = paths.fetch(:source, 'source')
+ @resultsDir = paths.fetch(:results, 'results')
+ @compilePlatform = paths.fetch(:platform, '')
+ @compileTarget = paths.fetch(:compilemode, 'debug')
+
+ @nunitExe = File.join('lib', 'nunit', "nunit-console#{(@compilePlatform.empty? ? '' : "-#{@compilePlatform}")}.exe").gsub('/','\\') + ' /nothread'
+ end
+
+ def executeTests(assemblies)
+ Dir.mkdir @resultsDir unless exists?(@resultsDir)
+
+ assemblies.each do |assem|
+ file = File.expand_path("#{@sourceDir}/#{assem}/bin/#{@compileTarget}/#{assem}.dll")
+ sh "#{@nunitExe} #{file}"
+ end
+ end
+end
+
+class MSBuildRunner
+ def self.compile(attributes)
+ version = attributes.fetch(:clrversion, 'v3.5')
+ compileTarget = attributes.fetch(:compilemode, 'debug')
+ solutionFile = attributes[:solutionfile]
+
+ frameworkDir = File.join(ENV['windir'].dup, 'Microsoft.NET', 'Framework', version)
+ msbuildFile = File.join(frameworkDir, 'msbuild.exe')
+
+ sh "#{msbuildFile} #{solutionFile} /nologo /maxcpucount /v:m /property:BuildInParallel=false /property:Configuration=#{compileTarget} /t:Rebuild"
+ end
+end
+
+class AspNetCompilerRunner
+ def self.compile(attributes)
+
+ webPhysDir = attributes.fetch(:webPhysDir, '')
+ webVirDir = attributes.fetch(:webVirDir, 'This_Value_Is_Not_Used')
+
+ frameworkDir = File.join(ENV['windir'].dup, 'Microsoft.NET', 'Framework', 'v2.0.50727')
+ aspNetCompiler = File.join(frameworkDir, 'aspnet_compiler.exe')
+
+ sh "#{aspNetCompiler} -nologo -errorstack -c -p #{webPhysDir} -v #{webVirDir}"
+ end
+end
+
+class AsmInfoBuilder
+ attr_reader :buildnumber
+
+ def initialize(baseVersion, properties)
+ @properties = properties;
+
+ @buildnumber = baseVersion + (ENV["CCNetLabel"].nil? ? '0' : ENV["CCNetLabel"].to_s)
+ @properties['Version'] = @properties['InformationalVersion'] = buildnumber;
+ end
+
+
+
+ def write(file)
+ template = %q{
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+<% @properties.each {|k, v| %>
+[assembly: Assembly<%=k%>Attribute("<%=v%>")]
+<% } %>
+ }.gsub(/^ /, '')
+
+ erb = ERB.new(template, 0, "%<>")
+
+ File.open(file, 'w') do |file|
+ file.puts erb.result(binding)
+ end
+ end
+end
Oops, something went wrong.

0 comments on commit 56c8cf4

Please sign in to comment.