VsShowMissing
VsShowMissing copied to clipboard
Ignore explicitly removed files
I have a project that targets two frameworks, where each framework excludes a file from compilation by using this csproj construct:
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">
<Compile Remove="A.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<Compile Remove="B.cs" />
</ItemGroup>
This triggers VsShowMissing with a file not being included. Would it be possible to ignore files explicitly removed from the csproj?
A complete minimal solution. ClassLibrary13.zip