Skip to content

Instantly share code, notes, and snippets.

@veigr
Last active June 27, 2017 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veigr/df396b64d1b13d9da0b6886361f4f652 to your computer and use it in GitHub Desktop.
Save veigr/df396b64d1b13d9da0b6886361f4f652 to your computer and use it in GitHub Desktop.
Automatic DependentUpon
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.4</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)ProjectItemsSchema.xaml" />
<ProjectCapability Include="DynamicDependentFile" />
</ItemGroup>
</Project>
<ProjectSchemaDefinitions xmlns="http://schemas.microsoft.com/build/2009/properties">
<ContentType Name="PageXaml" DisplayName="XAML Page" ItemType="Page">
<NameValuePair Name="DependentExtensions" Value=".xaml.cs" />
</ContentType>
<FileExtension Name=".xaml" ContentType="PageXaml" />
</ProjectSchemaDefinitions>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.4</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Update="Hoge.*.cs">
<DependentUpon>Hoge.cs</DependentUpon>
</Compile>
<Compile Update="Fuga\Fuga.*.cs">
<DependentUpon>Fuga\Fuga.cs</DependentUpon>
</Compile>
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment