Skip to content

Commit 598263f

Browse files
jaredthirskclaude
andcommitted
Fix compression settings in project file
- Only enable compression for self-contained single-file builds - Framework-dependent builds cannot use compression - Fixes NETSDK1176 error in GitHub Actions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 841be27 commit 598263f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wpf/MetricClock.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
<!-- Single-file publishing configuration -->
2525
<PropertyGroup Condition="'$(PublishSingleFile)' == 'true'">
2626
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
27+
</PropertyGroup>
28+
29+
<!-- Compression only for self-contained single-file builds -->
30+
<PropertyGroup Condition="'$(PublishSingleFile)' == 'true' AND '$(SelfContained)' == 'true'">
2731
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
2832
</PropertyGroup>
2933

0 commit comments

Comments
 (0)