Is it possible to pack the .config file into the packed xll? #584
-
Hi there, I'm currently learning ExcelDna and it's going well :) I'm curious to know if it's possible to configure ExcelDna so that packed xll also includes the .config file? It would be nice just to have a single xll file rather than the xll and the xll.config file. The only reason that I have a config file in the first place is because I needed a couple of assembly binding redirects. My project is an SDK style project where Sdk="Microsoft.NET.Sdk.WindowsDesktop" and the target framework is net472. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The .config file should be packed automatically if present (you should check the build output for the list of files packed).
Note the "CONFIG" entry. However, you might find that binding redirects are not applied in the packed add-in case. This should not be a problem for assemblies that are packed themselves - these are resolved purely by name - but if you have other dependencies this can be a problem. I should say that .config file are only applicable to the .NET Framework runtime, and not for add-ins targeting .NET 6. For these we don't have the same 'implicit' configuration file that can be loaded per add-in, and the |
Beta Was this translation helpful? Give feedback.
The .config file should be packed automatically if present (you should check the build output for the list of files packed).