summaryrefslogtreecommitdiff
path: root/.nuspec/Xamarin.Forms.DefaultItems.targets
blob: d19252a595ba67c09e83a5b01250d0e929bb3224 (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 Condition="'$(EnableDefaultItems)'=='True' And '$(EnableDefaultXamlItems)'=='True' And '$(EnableDefaultEmbeddedResourceItems)'=='True'">
		<Compile Update="**\*.xaml$(DefaultLanguageSourceExtension)" DependentUpon="%(Filename)" SubType="Code" />
		<None Remove="**\*.xaml" Condition="'$(EnableDefaultNoneItems)'=='True'" />
	</ItemGroup>

</Project>