build: Move publish settings to Trash.csproj

This allows seeing any build issues earlier (before publish)
pull/47/head
Robert Dailey 2 years ago
parent 2d21ffeb38
commit 3973bccd7e

@ -0,0 +1,13 @@
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[string] $runtime
)
$ErrorActionPreference = "Stop"
dotnet publish src\Trash `
--output publish\$runtime `
--configuration Release `
--runtime $runtime `
--self-contained true

@ -6,16 +6,7 @@ param (
$ErrorActionPreference = "Stop"
dotnet publish src\Trash `
--output publish\$runtime `
--configuration Release `
--runtime $runtime `
--self-contained true `
-p:PublishSingleFile=true `
-p:PublishTrimmed=true `
-p:IncludeNativeLibrariesForSelfExtract=true `
-p:PublishReadyToRun=true `
-p:PublishReadyToRunShowWarnings=true
& "$PSScriptRoot\Publish.ps1" $runtime
if (Get-Command chmod -errorAction SilentlyContinue) {
"The chmod command was found. Setting read + execute permission."

@ -3,6 +3,14 @@
<OutputType>Exe</OutputType>
<RootNamespace>Trash</RootNamespace>
<AssemblyName>trash</AssemblyName>
<!-- Publish Settings -->
<PublishSingleFile>true</PublishSingleFile>
<PublishTrimmed>true</PublishTrimmed>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<PublishReadyToRun>true</PublishReadyToRun>
<PublishReadyToRunShowWarnings>true</PublishReadyToRunShowWarnings>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
</PropertyGroup>
<ItemGroup>

Loading…
Cancel
Save