Browse Source

a little build script to test things outside of VS

Brendan Forster 9 years ago
parent
commit
75067c88bf
1 changed files with 13 additions and 0 deletions
  1. 13 0
      Rx.NET/Source/build-new.ps1

+ 13 - 0
Rx.NET/Source/build-new.ps1

@@ -0,0 +1,13 @@
+$msbuild = Get-ItemProperty "hklm:\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0"
+# TODO: if not found, bail out
+
+$msbuildExe = Join-Path $msbuild.MSBuildToolsPath "msbuild.exe"
+$build = "1.0.0-rc1-update1"
+
+dnvm use $build -r clr -arch x64 -p
+
+$runtimeDir = Join-Path $env:USERPROFILE "\.dnx\runtimes\dnx-clr-win-x64.$build"
+
+dnu restore . --quiet
+
+. $msbuildExe .\Rx-New.sln /m /p:Configuration=Release /p:RuntimeToolingDirectory=$runtimeDir /v:minimal