-
Notifications
You must be signed in to change notification settings - Fork 4.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
Allow projects to be loaded/added unloaded/removed during EnC/HR session #1204
Comments
Add a TODO with an issue number dotnet#1204
Fix NullReferenceException during debugging When opening a file during a debugging session, VS sets its buffer read-only when it is not editable. To do so, VS asks its document to the workspace but in some cases, the workspace returns nothing, causing NRE and VS Crash. In this PR, we defensively add a null check and log it to make a further investigation easier. Noth that Issue #1204 is tracking to fix this issue directly (by enforcing the workspace to load projects before EnC).
Add a TODO with an issue number dotnet#1204 (cherry picked from commit a3bf5b0)
Note this may require more work than just on the Roslyn side. As an experiment I tried this on a WinForms app while doing some testing:
In this case, I got the WinForms unhandled exception dialog for the failure to load the assembly. So this implies to me we correctly applied the E&C edit consuming the new assembly, but since it's not deployed the application won't actually now where to load it from, since it's not anywhere it can find. |
We currently ignore project that were not loaded when the session started.
Tracks TODOs in sources.
Prereq:
#56253
The text was updated successfully, but these errors were encountered: