From 78858b0edbac3479cbcef685f77ba737cea85710 Mon Sep 17 00:00:00 2001 From: anurse Date: Tue, 6 Oct 2015 11:01:42 -0700 Subject: [PATCH] cleanup unused PS1 files --- dotnet-compile.ps1 | 30 ------------------------------ dotnet-publish.ps1 | 31 ------------------------------- 2 files changed, 61 deletions(-) delete mode 100644 dotnet-compile.ps1 delete mode 100644 dotnet-publish.ps1 diff --git a/dotnet-compile.ps1 b/dotnet-compile.ps1 deleted file mode 100644 index 3108bff6c..000000000 --- a/dotnet-compile.ps1 +++ /dev/null @@ -1,30 +0,0 @@ -$OutputName = Split-Path -Leaf (Get-Location) -$OutputPath = Join-Path (Get-Location) "bin" - -if(!(Test-Path $OutputPath)) { - mkdir $OutputPath | Out-Null -} -$OutputPath = (Convert-Path $OutputPath) - - -# Resolve compilation dependencies -Write-Host "Resolving dependencies..." -$refs = dnx -p "$PSScriptRoot\src\DotNet.Tools.DependencyResolver" run --packages "$env:USERPROFILE\.dnx\packages" --target "DNXCore,Version=v5.0" --assets compile - -# Resolve source files -Write-Host "Finding source files..." -$srcs = dnx -p "$PSScriptRoot\src\DotNet.Tools.SourceResolver" run - -# Build csc response file -$resp = @($refs | foreach { "/r:$_" }) -$resp += @($srcs | foreach { $_ }) -$resp += @( - "/out:$OutputPath\$OutputName.dll" - "/nostdlib" -) - -Write-Host "Compiling..." -$resp > "$OutputPath\csc.rsp" -csc "@$OutputPath\csc.rsp" - -Write-Host " $OutputName -> $OutputPath\$OutputName.dll" \ No newline at end of file diff --git a/dotnet-publish.ps1 b/dotnet-publish.ps1 deleted file mode 100644 index e27dab2a5..000000000 --- a/dotnet-publish.ps1 +++ /dev/null @@ -1,31 +0,0 @@ -$OutputName = Split-Path -Leaf (Get-Location) -$OutputPath = Join-Path (Join-Path (Get-Location) "bin") "publish" - -& $PSScriptRoot\dotnet-compile.ps1 - -if(Test-Path $OutputPath) { - del -Recurse -Force $OutputPath -} -mkdir $OutputPath | Out-Null -$OutputPath = (Convert-Path $OutputPath) - -# Resolve runtime and native dependencies -Write-Host "Resolving dependencies..." -$refs = dnx -p "$PSScriptRoot\src\DotNet.Tools.DependencyResolver" run --packages "$env:USERPROFILE\.dnx\packages" --target "DNXCore,Version=v5.0/win7-x64" --assets runtime --assets native - -# Copy everything to one directory -$refs | foreach { - Write-Host "Publishing $_ ..." - cp $_ $OutputPath -} - -$ProjectBinary = (Join-Path (Get-Location) "bin\$OutputName.dll") -Write-Host "Publishing $ProjectBinary ..." -cp $ProjectBinary $OutputPath - -# CoreConsole should have come along for the ride -$CoreConsolePath = Join-Path $OutputPath "CoreConsole.exe" -if(!(Test-Path $CoreConsolePath)) { - throw "Unable to locate CoreConsole.exe. You must have a dependency on Microsoft.NETCore.ConsoleHost (for now ;))" -} -mv $CoreConsolePath (Join-Path $OutputPath "$OutputName.exe") \ No newline at end of file