cleanup unused PS1 files

This commit is contained in:
anurse 2015-10-06 11:01:42 -07:00
parent 43873a37b5
commit 78858b0edb
2 changed files with 0 additions and 61 deletions

View file

@ -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"

View file

@ -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")