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

Paths starting with ./ in DefaultItemExcludes are not properly handled #5281

Open
lanfeust69 opened this issue Apr 15, 2020 · 4 comments
Open

Comments

@lanfeust69
Copy link
Contributor

This is probably a flaw in the implementation of FileMatcher.

Steps to reproduce

See here

msbuild /bl /p:WithDot=True

Expected behavior

None items should only contain the .git* files and ReadMe.md

Actual behavior

None items also include the bin and Data contents.

Environment data

msbuild /version output:
16.5.0.12403

OS info:
both Windows 10 and Ubuntu 19.10

@Forgind
Copy link
Member

Forgind commented Apr 20, 2020

Thanks for bringing this to our attention. Having looked at your project file, I suspect the problem is that BaseOutputPath, despite what our documentation says, isn't properly supported. You might be interested in the PR to fix that here and the issue it references here. I'm going to close this in favor of that issue, but after we've resolved it, if you're still hitting this problem, let me know, and I can reopen this and dig deeper.

@Forgind Forgind closed this as completed Apr 20, 2020
@Forgind Forgind reopened this Apr 21, 2020
@Forgind
Copy link
Member

Forgind commented Apr 21, 2020

BaseOutputPath isn't actually necessary. I'll look more soon.

@lanfeust69
Copy link
Contributor Author

BaseOutputPath isn't actually necessary. I'll look more soon.

Indeed, the project just mentioned two cases where the issue could happen.

@rainersigwald
Copy link
Member

@lanfeust69 It's reasonable to start supporting this, but the FileMatcher often expects exact string prefix matches, so dropping ./ is helpful today.

@rainersigwald rainersigwald added this to the Backlog milestone Apr 29, 2020
@AR-May AR-May added the triaged label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants