Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ jobs:
output="artifacts/cli/$rid"
dotnet publish src/PackageCascade.Cli/PackageCascade.Cli.csproj \
-c Release -r "$rid" --self-contained true -o "$output" \
-p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true \
-p:DebugType=embedded \
-p:Version="$VERSION" -p:ContinuousIntegrationBuild=true -p:RepositoryUrl="$REPOSITORY_URL"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
with:
global-json-file: global.json
- name: Publish CLI
run: dotnet publish src/PackageCascade.Cli/PackageCascade.Cli.csproj -c Release -r ${{ matrix.rid }} --self-contained true -o artifacts/cli -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeAllContentForSelfExtract=true -p:DebugType=embedded
run: dotnet publish src/PackageCascade.Cli/PackageCascade.Cli.csproj -c Release -r ${{ matrix.rid }} --self-contained true -o artifacts/cli -p:DebugType=embedded
- name: Run CLI help
shell: bash
run: ./artifacts/cli/${{ matrix.binary }} --help
Expand Down
10 changes: 10 additions & 0 deletions src/PackageCascade.Cli/PackageCascade.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Release' and '$(RuntimeIdentifier)' != ''">
<PublishSingleFile>true</PublishSingleFile>
</PropertyGroup>

<PropertyGroup Condition="'$(PublishSingleFile)' == 'true'">
<!-- In-process MSBuild loads assemblies from disk, so the bundle must extract all content. -->
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
</PropertyGroup>

<ItemGroup>
<InternalsVisibleTo Include="PackageCascade.Cli.Tests.Unit" />
</ItemGroup>
Expand Down
Loading