Make sure Platform is TreatAsLocalProperty so it can be set properly.

This commit is contained in:
Michael Yanni 2024-03-04 13:16:21 -08:00
parent 35bfedb19b
commit f0325a2a6a

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Platform needs to be set with TreatAsLocalProperty since it is a global property and cannot be overridden otherwise. -->
<Project TreatAsLocalProperty="Platform">
<PropertyGroup>
<BuildArchitecture Condition="'$(BuildArchitecture)' == ''">$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</BuildArchitecture>