-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Obsolete XsltSettings.EnableScript with SYSLIB0062 #117701
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
Conversation
Co-authored-by: jeffhandley <[email protected]>
src/libraries/System.Xml.ReaderWriter/ref/System.Xml.ReaderWriter.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: jeffhandley <[email protected]>
|
Failures are known and unrelated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This comment was marked as resolved.
This comment was marked as resolved.
src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/QilGeneratorEnv.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XslAstAnalyzer.cs
Show resolved
Hide resolved
Co-authored-by: tannergooding <[email protected]>
src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XslAstAnalyzer.cs
Outdated
Show resolved
Hide resolved
…ocks Co-authored-by: jeffhandley <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
…bsolete API usage blocks Co-authored-by: jeffhandley <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/Compiler.cs
Outdated
Show resolved
Hide resolved
|
[Breaking change]: System.Xml.Xsl.XsltSettings.EnableScript Property marked as Obsolete (dotnet/docs#47504) created to document the breaking change. Skipping the email notification to the breaking changes distribution list since the property didn't have any functioning behavior previously. |
|
/ba-g Failures are timeouts in unrelated tests |
This PR obsoletes the
XsltSettings.EnableScriptproperty with diagnostic IDSYSLIB0062to help users migrating from .NET Framework to modern .NET.Background
XSLT Script blocks are supported only in .NET Framework and are not supported on .NET Core or .NET 5+. The
EnableScriptproperty has no legitimate value on modern .NET:false: simply skips script blocks (expected behavior anyway)true: throwsPlatformNotSupportedException(script compilation not supported)Obsoleting this API turns a runtime error into a build warning, providing better guidance for migration.
Changes Made
src/libraries/Common/src/System/Obsoletions.cs[Obsolete]attribute toEnableScriptproperty in both source and reference assembliesSYSLIB0062SYSLIB0062toNoWarnlist for facade assembliesExample
The warning message:
XSLT Script blocks are not supported on .NET Core or .NET 5 or later.Testing
Fixes #108287.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.