Skip to content

Commit

Permalink
fix: Ensure that Platform is specified by default in Release
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban authored May 14, 2024
1 parent a713fc5 commit b07aae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.Sdk/targets/Uno.SingleProject.WinAppSdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<Target Name="EnsureDefaultPlatformForAnyCPU"
BeforeTargets="ResolveReferences;ResolveProjectReferences;BeforeBuild"
Condition="'$(Platform)' == 'AnyCPU' AND $(Optimize) != 'true'">
Condition="'$(Platform)' == 'AnyCPU'">
<!-- Required to allow `dotnet build` to work without extra parameters -->
<PropertyGroup>
<Platform>$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)</Platform>
Expand Down

0 comments on commit b07aae4

Please sign in to comment.