How to include copy right and descripton (AssemblyInfo) in xsltc compiled dll

Sajith 11 Reputation points
2025-01-17T16:49:29+00:00

How to provide copy right and description in a xsltc compiled dll?

xsltc takes version, keyfile etc as arguments but could not find a way to provide copy right, description or an AsseblyInfo file.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,105 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiachen Li-MSFT 33,451 Reputation points Microsoft Vendor
    2025-01-20T07:17:07.19+00:00

    Hi @Sajith ,

    You can compile your XSLT file into an intermediate assembly (.dll) using xsltc.exe and then use al.exe (Assembly Linker) to add metadata.

    Create an AssemblyInfo.cs file with the desired metadata:

    using System.Reflection;
    
    [assembly: AssemblyTitle("My XSLT Compiled Assembly")]
    [assembly: AssemblyDescription("This is a compiled XSLT assembly.")]
    [assembly: AssemblyCompany("MyCompany")]
    [assembly: AssemblyProduct("MyProduct")]
    [assembly: AssemblyCopyright("© 2025 MyCompany")]
    [assembly: AssemblyVersion("1.0.0.0")]
    
    

    Repackage the compiled DLL with metadata using al.exe

    al.exe /out:FinalStylesheet.dll /embed:MyStylesheet.dll /title:"My XSLT Assembly" /product:"MyProduct" /copyright:"© 2025 MyCompany"
    

    Best Regards.

    Jiachen Li


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 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.


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.