-
Notifications
You must be signed in to change notification settings - Fork 390
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
Environment breaking ItemGroups added when I add, rename, or copy and paste files in solution explorer #7028
Comments
@jons-aura Is this on an SDK style project? can you send us the before and after csproj file? |
becomes
|
@jons-aura I agree that VS probably shouldn't be adding the
Can you be more specific about the problem so that we can further diagnose? |
@jons-aura if you're able to end up with a missing item (item with a red cross) by using copy/paste and rename in VS, then there is a bug. I've tried this out locally and couldn't get a repro. To understand what's happening we need a step-y-step breakdown, with some more screenshots at various points. I'm particularly concerned that there is a state for which restarting VS made a difference, but reloading the project did not. Can you provide steps to get into that state please? It would be ideal if you started with a blank project, so that we can rule out other customisations to the project. |
@jons-aura thank you very much. That is perfect. @ocallesp you were looking at rename operations recently. Does this look familiar? |
@drewnoakes were you able to repro this? We tried it during triage and we couldn't repro it |
I did not try to repro this. Trying now in a newer build of VS I am not able to repro it. @jons-aura are you able to upgrade to 16.9.x to see if the issue has been fixed? |
@drewnoakes I can still reproduce it with 16.9.2 |
@jons-aura do you have any extensions installed? |
@drewnoakes I couldn't find a quick way to get them via text but here's a screenshot of the list |
If you run |
@drewnoakes I can't open the solution in safe mode. The project shows as "needs migration" in Solution Explorer. |
@jons-aura thank you for bringing that to our attention. I've filed this as a bug here #7046 In the meantime I'm perplexed as to what's causing this behaviour. Are you able to verify whether this occurs on another machine? Does the error state eventually resolve itself, or does it remain with the red cross on the item indefinitely? |
I would have sworn I replied to this already. I spent some time removing extensions and seeing if the problem kept happening - so far it is - but I asked a coworker to try and reproduce it and they couldn't. I'll try to find some time to poke at this some more but if I don't reply in a week or two feel free to close this since it doesn't seem to be a common issue and it's mostly just annoying. |
The fix for Other things to look for on your machine:
You could try copying your entire repository to another folder (e.g. |
I got a new system and reinstalled everything and can no longer reproduce this issue. |
Visual Studio Version:
16.8.4
Summary:
Same issue as here I think. #2810
I'm getting environment breaking ItemGroups added when I add, rename, or copy and paste files in solution explorer.
Steps to Reproduce:
Rename a file in VS
csproj gets updated
VS freaks out and I have to remove the spurious csproj entries and entirely close and reopen VS
Expected Behavior:
csproj should not be updated.
Actual Behavior:
User Impact:
The text was updated successfully, but these errors were encountered: