cleanup unused PS1 files
This commit is contained in:
parent
43873a37b5
commit
78858b0edb
2 changed files with 0 additions and 61 deletions
|
@ -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"
|
|
@ -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")
|
Loading…
Reference in a new issue