VsShowMissing icon indicating copy to clipboard operation
VsShowMissing copied to clipboard

Ignore explicitly removed files

Open jnyrup opened this issue 5 years ago • 0 comments

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

jnyrup avatar Apr 30 '20 11:04 jnyrup