Skip to content

Use globs in .projitems#42517

Merged
tmat merged 3 commits intodotnet:masterfrom
tmat:ProjitemsGlobs
Mar 21, 2020
Merged

Use globs in .projitems#42517
tmat merged 3 commits intodotnet:masterfrom
tmat:ProjitemsGlobs

Conversation

@tmat
Copy link
Member

@tmat tmat commented Mar 17, 2020

Makes updating and merging updates of shared projects easier.

@tmat tmat requested review from a team as code owners March 17, 2020 23:27
Copy link
Member

@jasonmalinowski jasonmalinowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tmat We've validated that add/remove a file through Visual Studio doesn't end up adding explicit entries if the glob is still there? All for the change, but if the IDE flakes out we'll probably want to get any bugs filed, or at least email the team to warn them about those bugs.

@tmat
Copy link
Member Author

tmat commented Mar 20, 2020

@tmat tmat merged commit 423c52f into dotnet:master Mar 21, 2020
@ghost ghost added this to the Next milestone Mar 21, 2020
@tmat tmat deleted the ProjitemsGlobs branch March 21, 2020 18:14
@CyrusNajmabadi
Copy link
Contributor

awesome!

@mavasani
Copy link
Contributor

@tmat This is actually turning out to be painful for working with shared project due to dotnet/project-system#6010. Moving a folder to shared project and then deleting one or more files is causing VS to remove the glob entry and replace it with explicit entries. This leads to build failure, and forces to undo the changes to projitems file, which forces the solution to be unloaded and reloaded.

SharedProj

@mavasani
Copy link
Contributor

@tmat VS is pretty much unusable due to lack of first class globing support in shared projects. Even for simple file moves between shared projects, the tooling is corrupting the projitems file and removing the glob entry, requiring undo to file changes and solution reload, and is going to be harder to track down for someone who doesn’t know about this issue.

Would you be able to restore to prior non-globing state until project system adds this support? Note you will need to revert your PR and then manually add/remove the entries from PRs that went in after your change and relied on glob entries (I at least merged couple of PRs yesterday after your merge that would need this work).

@tmat
Copy link
Member Author

tmat commented Mar 22, 2020

:(

tmat added a commit to tmat/roslyn that referenced this pull request Mar 22, 2020
ghost pushed a commit that referenced this pull request Mar 23, 2020
Revert "Use globs in .projitems (#42517)"
@sharwell sharwell modified the milestones: Next, temp, 16.6.P3 Apr 6, 2020
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

Successfully merging this pull request may close these issues.

6 participants