Open lachlan-trmb opened 2 years ago
@lachlan-trmb I have the same structure, edited a project file via text editor to get it to reload (requires a file with the classic project format), but was not able to reproduce the error.
@MichaelKetting That's unexpected. I've just retried it and discovered some additional detail. My full steps are:
Note that steps 3 & 4 appear to be important - i.e. the issue only occurs when you have opened an existing solution. I just discovered this detail now. Also in step 6 & 7 it is important that the project being edited is one inside a solution folder.
Here is a short video going through the full steps: https://user-images.githubusercontent.com/93138628/141966000-a00b90ae-12e7-49b9-a043-86ae03cb49a4.mp4
Thanks for the good repro. I couldn't retry it with your steps right now, but it seems to be a very particular scenario, so great find! Is this something that's blocking you or just an edge case in your work?
I wouldn't say it is blocking me because although it happens regularly for my team it is just an annoyance because of having to close the error dialogs
If I have a solution with a structure like this (in the Visual Studio solution explorer):
Whenever visual studio reloads Project2 a message box is show with the error message "Asynchronous Task failed: Object reference not set to an instance of an object". The message in the console is:
The message box and console errors occur twice each time.