Skip to content

Commit

Permalink
fix: SDK ignores GeneratePackageOnBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed May 9, 2024
1 parent ef7b6a1 commit 7cd3e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Uno.Sdk/Sdk/Sdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ Copyright (C) Uno Platform Inc. All rights reserved.
<_UnoSdkTargetsDirectory>$([MSBuild]::EnsureTrailingSlash($(_UnoSdkTargetsDirectory)))</_UnoSdkTargetsDirectory>
<CustomAfterDirectoryBuildProps>$(CustomAfterDirectoryBuildProps);$(_UnoSdkTargetsDirectory)Uno.Import.SolutionConfig.props</CustomAfterDirectoryBuildProps>
<CustomAfterDirectoryBuildProps>$(CustomAfterDirectoryBuildProps);$(_UnoSdkTargetsDirectory)Uno.IsPlatform.props</CustomAfterDirectoryBuildProps>

<!-- We do this to make sure that we include Resizetizer by default. Libraries using Uno.Sdk should have this set to true -->
<IsPackable Condition=" '$(IsPackable)' == '' ">false</IsPackable>
</PropertyGroup>

<!-- We want to try to avoid having AnyCPU passed-->
Expand Down
3 changes: 3 additions & 0 deletions src/Uno.Sdk/targets/Uno.Common.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<Project>

<PropertyGroup>
<!-- We do this to make sure that we include Resizetizer by default. Libraries using Uno.Sdk should have this set to true -->
<IsPackable Condition=" '$(IsPackable)' == '' ">$([MSBuild]::ValueOrDefault('$(GeneratePackageOnBuild)', 'false'))</IsPackable>

<_IsUnoSingleProjectAndLegacy>false</_IsUnoSingleProjectAndLegacy>
<_IsUnoSingleProjectAndLegacy Condition=" $(SingleProject) == 'true' OR $(UnoSingleProject) == 'true' ">true</_IsUnoSingleProjectAndLegacy>

Expand Down

0 comments on commit 7cd3e98

Please sign in to comment.