Don't fallback to PNSE, and give a more descriptive error message. (#88804)
authorSteve Molloy <smolloy@microsoft.com>
Fri, 11 Aug 2023 18:55:17 +0000 (11:55 -0700)
committerGitHub <noreply@github.com>
Fri, 11 Aug 2023 18:55:17 +0000 (11:55 -0700)
commitd836fd3fd1e5b280cd7942cf82962f1e9bb3bb1f
tree6c5a33abd491c2ea280515d9f35e4c7a706c0cd4
parent34b6db9a86304417b110db34235b3234d2c0dae1
Don't fallback to PNSE, and give a more descriptive error message. (#88804)

* Don't fallback to PNSE, and give a more descriptive error message.

* CodeGeneratorConversionException is internal. Wrap it before re-throwing.

* Update src/libraries/System.Private.Xml/src/System/Xml/Serialization/Compilation.cs

Fixing comment about lack of compiler at runtime

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* Update Compilation.cs

Remove conditional code that was not needed.

---------

Co-authored-by: Matt Connew <mconnew@users.noreply.github.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
src/libraries/System.Private.Xml/src/Resources/Strings.resx
src/libraries/System.Private.Xml/src/System/Xml/Serialization/CodeGenerator.cs
src/libraries/System.Private.Xml/src/System/Xml/Serialization/Compilation.cs