いつもすぐ忘れてしまうのでメモ。
<ItemGroup> <Compile Update="**\*.Static.cs"> <DependentUpon>$([System.String]::Copy(%(Filename)).Replace('.Static', '.cs'))</DependentUpon> </Compile> <Compile Update="**\*.Private.cs"> <DependentUpon>$([System.String]::Copy(%(Filename)).Replace('.Private', '.cs'))</DependentUpon> </Compile> </ItemGroup>