Skip to content

Commit

Permalink
Merge pull request #17925 from unoplatform/mergify/bp/release/stable/…
Browse files Browse the repository at this point in the history
…5.2/pr-17923

Project capabilities should always be present for SingleProject (backport #17923)
  • Loading branch information
jeromelaban authored Aug 26, 2024
2 parents 60b8125 + 8eaa98e commit 72f6052
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
<!-- Otherwise define LaunchProfilesGroupByPlatformFilters by default -->
<ProjectCapability Include="LaunchProfilesGroupByPlatformFilters" Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &gt;= '17.0' " Exclude="@(ProjectCapability)" />
<ProjectCapability Include="SingleTargetBuildForStartupProjects" Condition=" '$(EnableSingleTargetBuildForStartupProjects)' != 'false' " Exclude="@(ProjectCapability)" />

<!-- Required since VS 2022 17.4 Preview 1 -->
<ProjectCapability Include="MauiCore" Exclude="@(ProjectCapability)" />
<ProjectCapability Include="Maui" Exclude="@(ProjectCapability)" />
<ProjectCapability Include="UseMauiCore" Exclude="@(ProjectCapability)" />
</ItemGroup>

<PropertyGroup Condition="$(IsWinAppSdk)">
Expand Down
8 changes: 8 additions & 0 deletions src/Uno.Sdk/targets/Uno.ProjectCapabilities.targets
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
<ProjectCapability Include="WindowsUniversalMultiViews"/>
</ItemGroup>

<ItemGroup>
<!-- Required since VS 2022 17.4 Preview 1 -->
<!-- Moved to root capabilities as Visual Studio doesn't like it in the SingleProject specific capabilities -->
<ProjectCapability Include="MauiCore" Exclude="@(ProjectCapability)" />
<ProjectCapability Include="Maui" Exclude="@(ProjectCapability)" />
<ProjectCapability Include="UseMauiCore" Exclude="@(ProjectCapability)" />
</ItemGroup>

<Import Project="Uno.ProjectCapabilities.WinAppSdk.targets" Condition="$(IsWinAppSdk)" />

<Import Project="Uno.ProjectCapabilities.Wasm.targets" Condition="$(IsBrowserWasm)" />
Expand Down

0 comments on commit 72f6052

Please sign in to comment.