How licenses.licx file is used

后端 未结 3 939
逝去的感伤
逝去的感伤 2021-02-01 00:47

I\'ve got licenses.licx file that is included to one of my projects properties. I am not sure how that is used by its dlls. Is it used by msbuild? Do you have any idea how it is

3条回答
  •  借酒劲吻你
    2021-02-01 01:49

    Since you indicate that StellarEleven's reply doesn't help, I guess you're looking for something even simpler. This is probably not 100% correct, but it is my understanding of how this works:

    The licx file is simply a list of the "licensed" components used by your application.

    Each line in the file is of the following format:

    [Component Name], [Assembly Name]
    

    For example one of my projects uses the licensed IP Works NetDial component so my .licx file contains the following line:

    nsoftware.IPWorks.Netdial, nsoftware.IPWorks
    

    In the context of the project (.csproj) file, the .licx file is referenced as an EmbeddedResource. During the build process, LC.exe verifies that the machine performing the build has the appropriate license(s) for the component in question, and generates a binary .licenses file which eventually gets embedded as a resource ([AssemblyName].exe.licenses) in the final executable.

    Does this help?

提交回复
热议问题