-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix transitive content conflicts Fixes #3871 #11352
Conversation
Changes this to opt-out for sdk-style projects.
This also fixes #3864, correct? |
@dsplaisted I don't think so, this ensures that transitive content files don't overwrite other content files of the same name. If I'm reading #3864 correctly, that issue refers to copying all transitive content, regardless of name. |
src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.props
Outdated
Show resolved
Hide resolved
src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.props
Outdated
Show resolved
Hide resolved
@Forgind @dsplaisted the corresponding MSBuild PR was merged, right? So this can be merged too? |
Can confirm: |
…itive-content-fix
@Forgind cool, I'm merging with master to get the new version of MSBuild that has the change, just to get CI run with it enabled. |
Should this have a test and an inverse test for when it's explicitly disabled? |
@rainersigwald sure, I just pushed the test I wrote back in November 😆. It's a little messy because this issue is hard to repro/ detect consistently. |
Weird, this tests is reliable on my local machine but it looks like it's really flaky in general. @Forgind were you able to get a consistent repro when you were testing that could be put into this testing format? |
It seemed to repro reasonably consistently if I remember correctly, but I just manually tested it, and unfortunately, this isn't very high on my priority list right now. I can try to get back to it in another month or so. |
ab6bb05
to
25335a3
Compare
I've added a new test that asserts the target output instead of the file that ends up in the output folder, which is unreliable when there are conflicting content files. This one should be much more reliable and doesn't require adding a new test asset. @dsplaisted can you review, since I've added code? |
Changes this to opt-out for sdk-style projects. (See discussion in microsoft/msbuild#4931 and microsoft/msbuild#4997.)
Fixes #3871.