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 11, 2023
1 parent 3b0f737 commit fd53350
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 0 deletions.
7 changes: 7 additions & 0 deletions samples/AverageFrameRate/AverageFrameRate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<StartupObject />
</PropertyGroup>

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

<ItemGroup>
<Content Include="lazy.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
7 changes: 7 additions & 0 deletions samples/BitmapViewer/BitmapViewer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<StartupObject />
</PropertyGroup>

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

<ItemGroup>
<Content Include="Sample.bmp">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
7 changes: 7 additions & 0 deletions samples/ParticleSystem/ParticleSystem.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<StartupObject />
</PropertyGroup>

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

<ItemGroup>
<Content Include="lazy.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
7 changes: 7 additions & 0 deletions samples/PlasmaFractal/PlasmaFractal.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<StartupObject />
</PropertyGroup>

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

<ItemGroup>
<Content Include="lazy.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
7 changes: 7 additions & 0 deletions samples/RayTracer/RayTracer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<StartupObject />
</PropertyGroup>

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

<ItemGroup>
<Content Include="lazy.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
7 changes: 7 additions & 0 deletions samples/SwirlStars/SwirlStars.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<StartupObject />
</PropertyGroup>

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

<ItemGroup>
<Content Include="lazy.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
7 changes: 7 additions & 0 deletions samples/TunnelEffect/TunnelEffect.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<StartupObject />
</PropertyGroup>

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

<ItemGroup>
<Content Include="lazy.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
7 changes: 7 additions & 0 deletions samples/WavePlayer/WavePlayer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<StartupObject />
</PropertyGroup>

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

<ItemGroup>
<Content Include="lazy.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down

0 comments on commit fd53350

Please sign in to comment.