Skip to content

Update note on XSLT support in .NET versions#51850

Open
jeffhandley wants to merge 1 commit intomainfrom
jeffhandley/xslt
Open

Update note on XSLT support in .NET versions#51850
jeffhandley wants to merge 1 commit intomainfrom
jeffhandley/xslt

Conversation

@jeffhandley
Copy link
Member

@jeffhandley jeffhandley commented Feb 24, 2026

Clarified note about script blocks and XSLT compiler support across .NET versions.

I received a question about this from a customer, citing that the documentation was misleading. They tried using xsltc.exe to create an assembly with .NET Framework and then load that into .NET 10 for processing and found it has a dependency on System.Data.SqlXml.dll.


Internal previews

📄 File 🔗 Preview link
docs/standard/data/xml/how-to-perform-an-xslt-transformation-by-using-an-assembly.md How to: Perform an XSLT transformation by using an assembly

Clarified note about script blocks and XSLT compiler support across .NET versions.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR clarifies the documentation note about script blocks and xsltc.exe support, to prevent readers from assuming XSLT-compiled assemblies can be produced on .NET Framework and then reused on modern .NET runtimes.

Changes:

  • Expanded the NOTE to include XSLT compiler (xsltc.exe) support limitations.
  • Added guidance that assemblies produced by xsltc.exe aren’t usable on .NET Core or .NET 5+.


> [!NOTE]
> Script blocks are supported only in .NET Framework. They are _not_ supported on .NET Core or .NET 5 or later.
> Script blocks and the XSLT compiler are supported only in .NET Framework. They are _not_ supported on .NET Core or .NET 5 or later, and assemblies compiled using xsltc.exe cannot be loaded into .NET Core or .NET 5 or later.
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The note makes an absolute compatibility claim ("assemblies ... cannot be loaded") without explaining the limitation. Consider rephrasing to the supported statement (for example, that assemblies produced by the .NET Framework xsltc.exe target .NET Framework and might fail to load on .NET Core/.NET 5+ due to missing dependencies), so the guidance stays accurate and actionable.

Copilot uses AI. Check for mistakes.

> [!NOTE]
> Script blocks are supported only in .NET Framework. They are _not_ supported on .NET Core or .NET 5 or later.
> Script blocks and the XSLT compiler are supported only in .NET Framework. They are _not_ supported on .NET Core or .NET 5 or later, and assemblies compiled using xsltc.exe cannot be loaded into .NET Core or .NET 5 or later.
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format xsltc.exe as code (xsltc.exe) and consider splitting this note into shorter sentences (it currently repeats "on .NET Core or .NET 5 or later" and is hard to scan).

Copilot generated this review using guidance from repository custom instructions.

> [!NOTE]
> Script blocks are supported only in .NET Framework. They are _not_ supported on .NET Core or .NET 5 or later.
> Script blocks and the XSLT compiler are supported only in .NET Framework. They are _not_ supported on .NET Core or .NET 5 or later, and assemblies compiled using xsltc.exe cannot be loaded into .NET Core or .NET 5 or later.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> Script blocks and the XSLT compiler are supported only in .NET Framework. They are _not_ supported on .NET Core or .NET 5 or later, and assemblies compiled using xsltc.exe cannot be loaded into .NET Core or .NET 5 or later.
> Script blocks and the XSLT compiler are supported only in .NET Framework. They are _not_ supported on modern .NET, and assemblies compiled using xsltc.exe cannot be loaded into .NET Core or .NET 5 and later.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Richard Lander was recently pointing out to me that "modern .NET" isn't a thing. It's .NET or .NET Framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants