Skip to content

Commit

Permalink
[.NET 5] Start adding some project capabilities (#3)
Browse files Browse the repository at this point in the history
Aligned with XA too, see dotnet/android#4383.

We'll start using Apple instead of iOS for these things at the IDE level since many 
behaviors don't actually depend on iOS but also apply to tvOS, watchOS, and so on.

These capabilities go before other imports just in case additional packages/targets 
from the SDK need to access them too.
  • Loading branch information
kzu authored and rolfbjarne committed Mar 16, 2020
1 parent ddcafc8 commit 0836798
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions msbuild/dotnet5/targets/Xamarin.Shared.Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@
<!-- Default item includes (globs and implicit references) -->
<Import Project="Xamarin.Shared.Sdk.DefaultItems.targets" />

<!-- Automatically supply project capabilities for IDE use -->
<ItemGroup>
<ProjectCapability Include="Apple" />
<ProjectCapability Include="Mobile" />
</ItemGroup>

<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />

<!-- Project types and how do we distinguish between them
Expand Down

0 comments on commit 0836798

Please sign in to comment.