Of note, however, this change occurs in an assembly that, while part of the solution, was injected using reflection; it is not directly referenced from the main assembly.
Expected Behavior:
Hitting F5 should try to recompile this and resume the process.
Actual Behavior:
An ENC0003 error shows up in the Error List, with the following Description:
Can't apply changes -- unexpected error: 'System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.CodeAnalysis.EditAndContinue.EditSession.<GetAllAddedSymbols>d__33.MoveNext()--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.CodeAnalysis.EditAndContinue.EditSession.<EmitProjectDeltaAsync>d__39.MoveNext()--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
--- End of inner exception stack trace ------> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.CodeAnalysis.EditAndContinue.EditSession.<GetAllAddedSymbols>d__33.MoveNext()--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.CodeAnalysis.EditAndContinue.EditSession.<EmitProjectDeltaAsync>d__39.MoveNext()--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)<---'
Version Used: 15.7.0 Preview 3.0, .NET 4.7.03056, Windows v1803 17133.73, Roslyn 2.8.0-beta3-62727-06
Steps to Reproduce:
No idea how to reproduce this, I'm afraid. The change was fairly trivial, from:
To:
Of note, however, this change occurs in an assembly that, while part of the solution, was injected using reflection; it is not directly referenced from the main assembly.
Expected Behavior: Hitting F5 should try to recompile this and resume the process.
Actual Behavior: An ENC0003 error shows up in the Error List, with the following Description: