Xsltc.exe in NET CORE

Oscar Mateo Gutierrez Iñigo 0 Reputation points
2023-07-07T22:09:34.26+00:00

generar plantillas compiladas para NET CORE

Developer technologies .NET Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hui Liu-MSFT 48,676 Reputation points Microsoft External Staff
    2023-07-10T06:54:10.07+00:00

    Hi,@Oscar Mateo Gutierrez Iñigo. Welcome Microsoft Q&A.

    This is an English forum, please ask questions in English.

    If your question is that you want to use the XSLT compiler (xsltc.exe) to compile XSLT stylesheets and generate assemblies in .NET Core, you could check my reply as below. If not, please update the question in English.

    Based on the description in the documentation and the information in the GitHub issue .NET 6 not support XslCompiledTransform.Load(type(myXsltCompiled_dll)), it looks as if this is not supported.

    [!NOTE] Script blocks are supported only in .NET Framework. They are not supported on .NET Core or .NET 5 or later.

    And it appears that a change was made to the docs in May 2022, and a pull request created: Note that XSLT script blocks are .NET Framework only.

    This doesn't give you a solution or a path forward, which is disappointing. But here's the answer to your question: .NET 6.0 simply doesn't support casting in this way.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.