You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately the tests I wrote for that fix were not extensive enough to catch an issue where subsequent compilations result in an implicit reference to host corlib and not the target corlib.
This is due to the implementation of ScriptCompilationInfo.ReturnType, which was desired to never return null:
We are now finally able to use the Roslyn 2.0 NuGet for Xamarin Workbooks, which means I can finally leverage my work for supporting compilations against a target (not host) corlib.
Unfortunately the tests I wrote for that fix were not extensive enough to catch an issue where subsequent compilations result in an implicit reference to host corlib and not the target corlib.
This is due to the implementation of
ScriptCompilationInfo.ReturnType
, which was desired to never returnnull
:I did not catch all the places in Roslyn that were using
ReturnType
but should now be usingReturnTypeOpt
:CSharpScriptCompilationInfo.WithPreviousScriptCompilation
CSharpCompilation.WithScriptCompilationInfo
VisualBasicScriptCompilationInfo.WithPreviousScriptCompilation
VisualBasicCompilation.WithScriptCompilationInfo
This is how the bug ends up manifesting in Workbooks:
The text was updated successfully, but these errors were encountered: