You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default items and default removes trample on item groups expressed in csproj #623
Can we make DefaultItems and DefaultRemoves smarter? Current implementation tramples what the user expresses in their csproj file and requires deep understanding of internal workings of MSBuild to unwind this.
Addition of Defaultitems and DefaultRemoves makes the behavior of ItemGroups in csproj unpredictable.
DefaultItems causes duplication in Compile groups, and default removes remove items I want in the Content group. To workaround this, I have to change the project to:
I hate to sound like a broken record here, but: I still don't think there should be implicit globs.
That said, there's a way to avoid this type of problem: if you're going to do anything non-default with an item group, first make the include explicit, then do your operations on the explicit copy. In other words, excluding a directory should produce this modification to the project:
Activity
muratg commentedon Jan 10, 2017
cc @balachir @piotrpMSFT
natemcmaster commentedon Jan 11, 2017
Example of one implication of this issue: dotnet/project-system#1126.
rainersigwald commentedon Jan 11, 2017
I hate to sound like a broken record here, but: I still don't think there should be implicit globs.
That said, there's a way to avoid this type of problem: if you're going to do anything non-default with an item group, first make the include explicit, then do your operations on the explicit copy. In other words, excluding a directory should produce this modification to the project:
Instead of the
Removestuff above.Of course, it's hard to socialize a solution like this--even if we fix it in VS-driven edits.
Stop removing items that were included in the project file
Stop removing items that were included in the project file
dsplaisted commentedon Jan 11, 2017
Thanks for raising this issue @natemcmaster. I've sent a PR to fix it.
srivatsn commentedon Jan 14, 2017
Fixed by #630
Update dependencies from https://github.com/dotnet/arcade build 20190…