summaryrefslogtreecommitdiff
path: root/.nuspec/Xamarin.Forms.DefaultItems.targets
blob: d41993f7c4d31cde7bcdd7c23404e2a99b89449f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

	<!--
	NOTE: we cannot update/remove existing default items in our props file, as it is
	imported *before* the default items are created by Microsoft.NET.Sdk.DefaultItems.props.
	Doing it here works, but means that it will override things users do in their csproj.
	Unfortunately there is no way to work around this without adding a new extension point to
	the sdk props.
	-->
	<ItemGroup>
		<Compile Update="**\*.xaml$(DefaultLanguageSourceExtension)" DependentUpon="%(Filename)" SubType="Code" />
		<None Remove="**\*.xaml" Condition="'$(EnableDefaultNoneItems)'=='True'" />
	</ItemGroup>

</Project>