浏览代码

a little build script to test things outside of VS

Brendan Forster 9 年之前
父节点
当前提交
75067c88bf
共有 1 个文件被更改,包括 13 次插入0 次删除
  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