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 56edfac commit 2a099a0
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<!-- Settings that append the existing setting value -->
<PropertyGroup>
<DefineConstants>$(DefineConstants);$(OS)</DefineConstants>
<NoWarn>$(NoWarn);NU5105</NoWarn>
<!-- TODO: https://github.com/dotnet/runtime/issues/3828 -->
<NoWarn>$(NoWarn);NU5105;NETSDK1074</NoWarn>
<WarningsNotAsErrors>$(WarningsNotAsErrors);NETSDK1074</WarningsNotAsErrors>
</PropertyGroup>

<!-- Settings that allow testing and packing to work by default -->
Expand Down
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 2a099a0

Please sign in to comment.