Skip to content

Commit

Permalink
Fix NETSDK1074.
Browse files Browse the repository at this point in the history
NETSDK1074: The application host executable will not be customized because adding resources requires that the build be performed on Windows.

See: dotnet/runtime#3828
  • Loading branch information
ronaldvanmanen committed Sep 13, 2023
1 parent 56edfac commit 0eec941
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- run: ./scripts/cibuild.sh --configuration ${{ matrix.configuration }} --architecture ${{ matrix.architecture }}
shell: bash
env:
OVERRIDE_RUNTIME_IDENTIFIER: win-${{ matrix.architecture }}
OVERRIDE_RUNTIME_IDENTIFIER: linux-${{ matrix.architecture }}
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}_${{ matrix.configuration }}_${{ matrix.architecture }}
Expand Down
9 changes: 7 additions & 2 deletions samples/AverageFrameRate/AverageFrameRate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ApplicationIcon />
<StartupObject />
</PropertyGroup>

<PropertyGroup>
<!-- TODO: https://github.com/dotnet/runtime/issues/3828 -->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<NoWarn>$(NoWarn);NETSDK1074</NoWarn>
<WarningsNotAsErrors>$(WarningsNotAsErrors);NETSDK1074</WarningsNotAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 7 additions & 2 deletions samples/BitmapViewer/BitmapViewer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ApplicationIcon />
<StartupObject />
</PropertyGroup>

<PropertyGroup>
<!-- TODO: https://github.com/dotnet/runtime/issues/3828 -->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<NoWarn>$(NoWarn);NETSDK1074</NoWarn>
<WarningsNotAsErrors>$(WarningsNotAsErrors);NETSDK1074</WarningsNotAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 7 additions & 2 deletions samples/ParticleSystem/ParticleSystem.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ApplicationIcon />
<StartupObject />
</PropertyGroup>

<PropertyGroup>
<!-- TODO: https://github.com/dotnet/runtime/issues/3828 -->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<NoWarn>$(NoWarn);NETSDK1074</NoWarn>
<WarningsNotAsErrors>$(WarningsNotAsErrors);NETSDK1074</WarningsNotAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 7 additions & 2 deletions samples/PlasmaFractal/PlasmaFractal.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ApplicationIcon />
<StartupObject />
</PropertyGroup>

<PropertyGroup>
<!-- TODO: https://github.com/dotnet/runtime/issues/3828 -->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<NoWarn>$(NoWarn);NETSDK1074</NoWarn>
<WarningsNotAsErrors>$(WarningsNotAsErrors);NETSDK1074</WarningsNotAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 7 additions & 2 deletions samples/RayTracer/RayTracer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ApplicationIcon />
<StartupObject />
</PropertyGroup>

<PropertyGroup>
<!-- TODO: https://github.com/dotnet/runtime/issues/3828 -->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<NoWarn>$(NoWarn);NETSDK1074</NoWarn>
<WarningsNotAsErrors>$(WarningsNotAsErrors);NETSDK1074</WarningsNotAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 7 additions & 2 deletions samples/SwirlStars/SwirlStars.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ApplicationIcon />
<StartupObject />
</PropertyGroup>

<PropertyGroup>
<!-- TODO: https://github.com/dotnet/runtime/issues/3828 -->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<NoWarn>$(NoWarn);NETSDK1074</NoWarn>
<WarningsNotAsErrors>$(WarningsNotAsErrors);NETSDK1074</WarningsNotAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 7 additions & 2 deletions samples/TunnelEffect/TunnelEffect.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ApplicationIcon />
<StartupObject />
</PropertyGroup>

<PropertyGroup>
<!-- TODO: https://github.com/dotnet/runtime/issues/3828 -->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<NoWarn>$(NoWarn);NETSDK1074</NoWarn>
<WarningsNotAsErrors>$(WarningsNotAsErrors);NETSDK1074</WarningsNotAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 7 additions & 2 deletions samples/WavePlayer/WavePlayer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ApplicationIcon />
<StartupObject />
</PropertyGroup>

<PropertyGroup>
<!-- TODO: https://github.com/dotnet/runtime/issues/3828 -->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<NoWarn>$(NoWarn);NETSDK1074</NoWarn>
<WarningsNotAsErrors>$(WarningsNotAsErrors);NETSDK1074</WarningsNotAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 0eec941

Please sign in to comment.