Skip to content

Commit

Permalink
Build all projects with win-x64 RID when self-contained
Browse files Browse the repository at this point in the history
  • Loading branch information
bording committed Mar 1, 2024
1 parent ee01957 commit b779358
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Build
run: dotnet build src --configuration Release -graph --property:WindowsSelfContained=true
- name: Build ServiceControl Management
run: dotnet publish src\ServiceControl.Config\ServiceControl.Config.csproj --no-build --output assets
run: dotnet publish src\ServiceControl.Config\ServiceControl.Config.csproj --no-build --output assets --property:WindowsSelfContained=true
- name: Sign NuGet packages
uses: Particular/sign-nuget-packages-action@v1.0.0
with:
Expand Down
4 changes: 4 additions & 0 deletions src/Custom.Build.props
Expand Up @@ -28,6 +28,10 @@
<InstanceName Include="Particular.ServiceControl.Monitoring" />
</ItemGroup>

<PropertyGroup Condition="'$(WindowsSelfContained)' == 'true'">
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>

<!-- workaround for https://github.com/microsoft/MSBuildSdks/issues/477 -->
<PropertyGroup>
<UseArtifactsOutput>false</UseArtifactsOutput>
Expand Down
1 change: 0 additions & 1 deletion src/ServiceControl.Audit/ServiceControl.Audit.csproj
Expand Up @@ -7,7 +7,6 @@
</PropertyGroup>

<PropertyGroup Condition="'$(WindowsSelfContained)' == 'true'">
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
</PropertyGroup>

Expand Down
Expand Up @@ -7,7 +7,6 @@
</PropertyGroup>

<PropertyGroup Condition="'$(WindowsSelfContained)' == 'true'">
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
</PropertyGroup>

Expand Down
1 change: 0 additions & 1 deletion src/ServiceControl/ServiceControl.csproj
Expand Up @@ -8,7 +8,6 @@
</PropertyGroup>

<PropertyGroup Condition="'$(WindowsSelfContained)' == 'true'">
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
</PropertyGroup>

Expand Down

0 comments on commit b779358

Please sign in to comment.