Skip to content

Commit 3ebdd90

Browse files
committed
fix(build): Opt-in to self contained builds
May help in some environments where this is not desirable
1 parent 71b8eda commit 3ebdd90

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/build-dist.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (Test-Path $publishDir) {
2323
Remove-Item $publishDir -Recurse -Force
2424
}
2525

26-
dotnet build -c Release -p:DebugType=None -p:DebugSymbols=false -p:AppConfigVariant=$Variant src/SyncTrayzor/SyncTrayzor.csproj
26+
dotnet build -c Release -p:DebugType=None -p:DebugSymbols=false -p:SelfContained=true -p:AppConfigVariant=$Variant src/SyncTrayzor/SyncTrayzor.csproj
2727
if ($LASTEXITCODE -ne 0) {
2828
Write-Error "Failed to build SyncTrayzor. Exiting."
2929
exit $LASTEXITCODE

src/ProcessRunner/ProcessRunner.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<AssemblyTitle>SyncTrayzor ProcessRunner</AssemblyTitle>
77
<Product>SyncTrayzor</Product>
88
<Copyright>Copyright © Antony Male 2015</Copyright>
9-
<SelfContained Condition="'$(SelfContained)' == ''">true</SelfContained>
9+
<SelfContained Condition="'$(SelfContained)' == ''">false</SelfContained>
1010
</PropertyGroup>
1111
<ItemGroup>
1212
<PackageReference Include="Mono.Options" Version="6.12.0.148"/>

src/SyncTrayzor/SyncTrayzor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<UseWPF>true</UseWPF>
2121
<ApplicationHighDpiMode>PerMonitorV2</ApplicationHighDpiMode>
2222
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
23-
<SelfContained Condition="'$(SelfContained)' == ''">true</SelfContained>
23+
<SelfContained Condition="'$(SelfContained)' == ''">false</SelfContained>
2424
<Optimize>true</Optimize>
2525
<!-- Hack to a) use the current processor architecture b) forcing a windows runtime, such that build on Linux works -->
2626
<RuntimeIdentifier>win-$([System.String]::Copy('$(NETCoreSdkRuntimeIdentifier)').Split('-')[1])</RuntimeIdentifier>

0 commit comments

Comments
 (0)