Skip to content

Commit

Permalink
fix: project capabilities should always be present for SingleProject
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Aug 12, 2024
1 parent 951b222 commit f988eb0
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 f988eb0

Please sign in to comment.