Skip to content

Commit

Permalink
Merge pull request #17923 from unoplatform/dev/ds/sdk-project-capabil…
Browse files Browse the repository at this point in the history
…ities

Project capabilities should always be present for SingleProject
  • Loading branch information
dansiegel authored Aug 12, 2024
2 parents 951b222 + f988eb0 commit ec38914
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 @@ -29,6 +29,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 ec38914

Please sign in to comment.