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)
  • Loading branch information
DrusTheAxe committed Jul 25, 2022
1 parent f158e75 commit d0fa284
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 d0fa284

Please sign in to comment.