Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore explicitly removed files #184

Open
jnyrup opened this issue Apr 30, 2020 · 0 comments
Open

Ignore explicitly removed files #184

jnyrup opened this issue Apr 30, 2020 · 0 comments

Comments

@jnyrup
Copy link

jnyrup commented Apr 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant