Browse Source
Update single project capabilities (#15203)
* Add missing project capabilities to support single projects in VS
* Add DiagnoseCapabilities in sandbox project
pull/15172/head
Max Katz
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
13 additions and
0 deletions
-
packages/Avalonia/AvaloniaSingleProject.targets
-
samples/MobileSandbox/MobileSandbox.csproj
|
|
@ -176,6 +176,8 @@ |
|
|
</Target> |
|
|
</Target> |
|
|
|
|
|
|
|
|
<!-- IDE capabilities --> |
|
|
<!-- IDE capabilities --> |
|
|
|
|
|
<!-- Keep synced with https://github.com/dotnet/maui/blob/f0c4dd19d4c4cba7c6060ec5ceb8ba150bbdf9a5/src/Workload/Microsoft.Maui.Sdk/Sdk/Microsoft.Maui.Sdk.After.targets#L25 --> |
|
|
|
|
|
<!-- Otherwise Visual Studio single project support might be broken. --> |
|
|
<ItemGroup Condition=" '$(AvaloniaSingleProject)' == 'true' "> |
|
|
<ItemGroup Condition=" '$(AvaloniaSingleProject)' == 'true' "> |
|
|
<ProjectCapability Include="Msix" /> |
|
|
<ProjectCapability Include="Msix" /> |
|
|
<ProjectCapability Include="MauiSingleProject" /> |
|
|
<ProjectCapability Include="MauiSingleProject" /> |
|
|
@ -185,6 +187,12 @@ |
|
|
<!-- Otherwise define LaunchProfilesGroupByPlatformFilters by default --> |
|
|
<!-- Otherwise define LaunchProfilesGroupByPlatformFilters by default --> |
|
|
<ProjectCapability Include="LaunchProfilesGroupByPlatformFilters" Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' >= '17.0' " /> |
|
|
<ProjectCapability Include="LaunchProfilesGroupByPlatformFilters" Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' >= '17.0' " /> |
|
|
<ProjectCapability Include="SingleTargetBuildForStartupProjects" Condition=" '$(EnableSingleTargetBuildForStartupProjects)' != 'false' " /> |
|
|
<ProjectCapability Include="SingleTargetBuildForStartupProjects" Condition=" '$(EnableSingleTargetBuildForStartupProjects)' != 'false' " /> |
|
|
|
|
|
|
|
|
|
|
|
<ProjectCapability Include="UseMauiCore" /> |
|
|
|
|
|
|
|
|
|
|
|
<!-- .NET MAUI features (also required for single project) --> |
|
|
|
|
|
<ProjectCapability Include="MauiCore" /> |
|
|
|
|
|
<ProjectCapability Include="Maui" /> |
|
|
</ItemGroup> |
|
|
</ItemGroup> |
|
|
|
|
|
|
|
|
<!-- Android --> |
|
|
<!-- Android --> |
|
|
|
|
|
@ -23,6 +23,11 @@ |
|
|
<ProjectReference Include="..\SampleControls\ControlSamples.csproj" /> |
|
|
<ProjectReference Include="..\SampleControls\ControlSamples.csproj" /> |
|
|
</ItemGroup> |
|
|
</ItemGroup> |
|
|
|
|
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
|
|
<!-- Only useful in VS, but https://www.vsixcookbook.com/tips/projects.html --> |
|
|
|
|
|
<ProjectCapability Include="DiagnoseCapabilities" /> |
|
|
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
|
<Import Project="..\..\build\BuildTargets.targets" /> |
|
|
<Import Project="..\..\build\BuildTargets.targets" /> |
|
|
<Import Project="..\..\build\SourceGenerators.props" /> |
|
|
<Import Project="..\..\build\SourceGenerators.props" /> |
|
|
</Project> |
|
|
</Project> |
|
|
|