Skip to content

Commit 6045552

Browse files
committed
Fix AOT builds
1 parent 3b56ad9 commit 6045552

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.github/shared.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ definitions:
127127
- *setup-dotnet
128128
- name: Publish
129129
run: |
130-
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:PublishAot=true -o build
130+
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:VerliteAot=true -o build
131131
mkdir -p artifacts
132132
cp "build/${exe}" "artifacts/${exe}"
133133
cd artifacts/

.github/workflows/continuous-delivery.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
101101
- name: Publish
102102
run: |
103-
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:PublishAot=true -o build
103+
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:VerliteAot=true -o build
104104
mkdir -p artifacts
105105
cp "build/${exe}" "artifacts/${exe}"
106106
cd artifacts/

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
101101
- name: Publish
102102
run: |
103-
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:PublishAot=true -o build
103+
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:VerliteAot=true -o build
104104
mkdir -p artifacts
105105
cp "build/${exe}" "artifacts/${exe}"
106106
cd artifacts/

.github/workflows/deploy-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
102102
- name: Publish
103103
run: |
104-
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:PublishAot=true -o build
104+
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:VerliteAot=true -o build
105105
mkdir -p artifacts
106106
cp "build/${exe}" "artifacts/${exe}"
107107
cd artifacts/

src/Verlite.CLI/Verlite.CLI.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
<PropertyGroup Condition="'$(VerliteAot)'=='true'">
4+
<PublishAot>true</PublishAot>
5+
</PropertyGroup>
6+
37
<PropertyGroup Condition="'$(PublishAot)'!='true'">
48
<TargetFramework>netcoreapp2.1</TargetFramework>
59
<TargetFrameworks>netcoreapp2.1;net5.0;</TargetFrameworks>

0 commit comments

Comments
 (0)