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
Cannot create an XmlSerializer of a type defined in a script #22859
Comments
Tagging @tmat |
Any workaround for this? |
|
@tmat I was mistaken, the problem was the
I've added a test to the PR. |
This is a bug in |
What's the scenario for which XML serialization of types defined in a script is needed? |
Is there already a workaround for this? |
Version Used: 2.3.2 (VS 15.4)
Steps to Reproduce:
In C# Interactive:
Expected Behavior:
Return an
XmlSerializer
.Actual Behavior:
Analysis:
I believe the issue is that generated assembly name for script assemblies contains an invalid character for the file system (
#
), and when the serializer attempts to load a serialization assembly, it fails.roslyn/src/Scripting/Core/ScriptBuilder.cs
Line 55 in 2b7c615
The text was updated successfully, but these errors were encountered: