Skip to content

Commit

Permalink
Only default WindowsAppSdkBootstrapInitializer if OutputType=Exe|Wine…
Browse files Browse the repository at this point in the history
…xe, per #2456 (comment) (#2775)
  • Loading branch information
DrusTheAxe authored Aug 10, 2022
1 parent 5d49c0d commit edc79b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/NuSpecs/Microsoft.WindowsAppSDK.BootstrapCommon.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

<!-- Targets file common to both managed and native projects that helps enable access to Framework packages-->

<PropertyGroup Condition="'$(WindowsAppSdkBootstrapInitialize)'=='' and '$(WindowsAppSDKSelfContained)'!='true' and '$(WindowsPackageType)'=='None'">
<PropertyGroup Condition="'$(WindowsAppSdkBootstrapInitialize)'=='' and '$(WindowsAppSDKSelfContained)'!='true' and '$(WindowsPackageType)'=='None' and ('$(OutputType)'=='Exe' or '$(OutputType)'=='Winexe')">
<!--Allows GenerateBootstrapCS/GenerateBootstrapCpp to run-->
<WindowsAppSdkBootstrapInitialize>true</WindowsAppSdkBootstrapInitialize>
</PropertyGroup>

<PropertyGroup Condition="'$(WindowsAppSdkBootstrapInitialize)'== 'true'">
<PublishAppxPackage>false</PublishAppxPackage>
</PropertyGroup>
</PropertyGroup>

</Project>

0 comments on commit edc79b1

Please sign in to comment.