1- $Archs = {" Net40" , " Net45" , " SL5" , " SL4-WindowsPhone71" , " WP8" , " WinRT45" , " Mono" , " Monodroid" , " Monotouch" }
2- $Projects = {" ReactiveUI" , " ReactiveUI.Testing" , " ReactiveUI.Xaml" , " ReactiveUI.Routing" , " ReactiveUI.Blend" , " ReactiveUI.Cocoa" , " ReactiveUI.Gtk" , " ReactiveUI.Android" , " ReactiveUI.NLog" , " ReactiveUI.Mobile" }
1+ $Archs = {" Portable-Net45+WinRT45+WP8" , " Net45" , " WP8" , " WinRT45" , " Mono" , " Monoandroid" , " Monotouch" , " Monomac" }
2+ $Projects = {
3+ " ReactiveUI" , " ReactiveUI.Testing" , " ReactiveUI.Platforms" , " ReactiveUI.Blend" ,
4+ " ReactiveUI.NLog" , " ReactiveUI.Mobile" , " RxUIViewModelGenerator" , " ReactiveUI.Events"
5+ }
36
4- $SlnFileExists = Test-Path " .\ReactiveUI .sln"
7+ $SlnFileExists = Test-Path " .\ReactiveUI_VSAll .sln"
58if ($SlnFileExists -eq $False ) {
69 echo " *** ERROR: Run this in the project root ***"
710 exit -1
811}
912
10- C:\Windows\Microsoft.NET\Framework\v4.0.30319 \MSBuild.exe / t:Rebuild / p:Configuration= Release / p:Platform= " Any CPU" / maxcpucount:1 .\ReactiveUI .sln
13+ C:\Windows\Microsoft.NET\Framework\v4.0.30319 \MSBuild.exe / t:Rebuild / p:Configuration= Release / p:Platform= " Any CPU" / maxcpucount:1 .\ReactiveUI_VSAll .sln
1114
1215# ##
1316# ## Build the Release directory
@@ -42,11 +45,11 @@ cp -r .\NuGet .\NuGet-Release
4245
4346$libDirs = ls - r .\NuGet- Release | ? {$_.Name -eq " lib" }
4447$srcDirs = ls - r .\NuGet- Release | ? {$_.Name -eq " src" } | % {ls $_.FullName }
48+ $toolsDirs = ls - r .\NuGet- Release | ? {$_.Name -eq " tools" }
4549$nugetReleaseDir = Resolve-Path " .\NuGet-Release"
4650
4751# copy binaries
4852foreach ($dir in $libDirs ) {
49- $projName = $dir.FullName.Split (" \\" )[-2 ]
5053 $arches = ls $dir.FullName
5154
5255 foreach ($arch in $arches ) {
@@ -59,6 +62,20 @@ foreach ($dir in $libDirs) {
5962 }
6063}
6164
65+ # copy tools
66+ foreach ($dir in $toolsDirs ) {
67+ echo " foo"
68+ echo $dir.FullName
69+ $files = ls $dir.FullName
70+
71+ foreach ($file in $files ) {
72+ echo " bar"
73+ echo $file.FullName
74+ $src = " .\Release\Net45\" + $file.Name
75+ cp - fo " $src " $file.FullName
76+ }
77+ }
78+
6279# copy source
6380foreach ($dir in $srcDirs ) {
6481 $projName = $dir.Name
@@ -67,11 +84,11 @@ foreach ($dir in $srcDirs) {
6784 robocopy " .\$projFolderName \" " $ ( $dir.FullName ) " * .cs / S
6885}
6986
70- $stubs = ls - r - file .\NuGet- Release | ? {$_.Length -eq 0 }
87+ $stubs = ls - r - file .\NuGet- Release | ? {$_.Length -eq 0 } | ? { ! $_ .FullName.Contains ( " src " )}
7188if ($stubs.Length -gt 0 ) {
7289 echo " *** BUILD FAILED ***"
7390 echo " "
74- echo " *** There are still stubs in the NuGet output, did you fully build? (Hint: Check Silverlight) ***"
91+ echo " *** There are still stubs in the NuGet output, did you fully build? ***"
7592 # exit 1
7693}
7794
0 commit comments