Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated build scripts to work properly with NuGet package restore

  • Loading branch information...
commit f124e91c5238670ab84a9420df572d3ac3e180fd 1 parent dceac68
@nikmd23 nikmd23 authored
Showing with 5 additions and 7 deletions.
  1. +3 −1 .nuget/packages.config
  2. +1 −6 default.ps1
  3. +1 −0  psake.bat
View
4 .nuget/packages.config
@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="NuGet.CommandLine" version="2.0.40000" />
+ <package id="psake" version="4.2.0.1" />
+ <package id="SharpZipLib" version="0.86.0" />
+ <package id="xunit.runners" version="1.9.0.1566" />
</packages>
View
7 default.ps1
@@ -1,6 +1,3 @@
-#properties ---------------------------------------------------------------------------------------------------------
-$framework = '4.0'
-
properties {
$base_dir = resolve-path .
$build_dir = "$base_dir\builds"
@@ -67,11 +64,9 @@ task merge -depends test {
"Merging"
" Glimpse.Core"
- del "$source_dir\Glimpse.Core\bin\Release\Newtonsoft.Json.pdb" #get rid of JSON PDF file, causes issues with Glimpse symbol package
exec { & $tools_dir\ilmerge.exe /targetplatform:"v4,$framework_dir" /log /out:"$source_dir\Glimpse.Core\nuspec\lib\net40\Glimpse.Core.dll" /internalize:$tools_dir\ILMergeInternalize.txt "$source_dir\Glimpse.Core\bin\Release\Glimpse.Core.dll" "$source_dir\Glimpse.Core\bin\Release\Newtonsoft.Json.dll" "$source_dir\Glimpse.Core\bin\Release\Castle.Core.dll" "$source_dir\Glimpse.Core\bin\Release\NLog.dll" "$source_dir\Glimpse.Core\bin\Release\AntiXssLibrary.dll" "$source_dir\Glimpse.Core\bin\Release\Tavis.UriTemplates.dll" }
" Glimpse.Core.Net35"
- del "$source_dir\Glimpse.Core.Net35\bin\Release\Newtonsoft.Json.pdb" #get rid of JSON PDF file, causes issues with Glimpse symbol package
exec { & $tools_dir\ilmerge.exe /log /out:"$source_dir\Glimpse.Core\nuspec\lib\net35\Glimpse.Core.dll" /internalize:$tools_dir\ILMergeInternalize.txt "$source_dir\Glimpse.Core.Net35\bin\Release\Glimpse.Core.dll" "$source_dir\Glimpse.Core.Net35\bin\Release\Newtonsoft.Json.dll" "$source_dir\Glimpse.Core.Net35\bin\Release\Castle.Core.dll" "$source_dir\Glimpse.Core.Net35\bin\Release\NLog.dll" "$source_dir\Glimpse.Core.Net35\bin\Release\AntiXssLibrary.dll" "$source_dir\Glimpse.Core.Net35\bin\Release\Tavis.UriTemplates.dll"}
" Glimpse.AspNet"
@@ -85,7 +80,7 @@ task merge -depends test {
task pack -depends merge {
"Packing"
- cd $package_dir\NuGet.CommandLine.*\tools\
+ cd $base_dir\.NuGet
" Glimpse.nuspec"
$version = Get-AssemblyInformationalVersion $source_dir\Glimpse.Core\Properties\AssemblyInfo.cs
View
1  psake.bat
@@ -1,2 +1,3 @@
@echo off
+.nuget\NuGet.exe install .nuget\packages.config -OutputDirectory packages
powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "& {Import-Module '.\packages\psake.*\tools\psake.psm1'; invoke-psake .\default.ps1 %*; if ($LastExitCode -ne 0) {write-host "ERROR: $LastExitCode" -fore RED; exit $lastexitcode} }"
Please sign in to comment.
Something went wrong with that request. Please try again.