I had my plugin project has some *.dll dependencies and I want them to be embedded in the *.sdlplugin file
is it possible ?
I had my plugin project has some *.dll dependencies and I want them to be embedded in the *.sdlplugin file
is it possible ?
Hi,
AFAIK you've got only three ways to ship dependency dlls with your sdlplugin. Problem is Studio (dotnet) should be able to resolve this dependencies, when plugin is loaded. As sdlplugin is in a local directory dlls are unzipped and placed in a local Folder. DotNet doesn't know this Folder and can resolve this dlls.
1. put these dlls in sdl Trados Studio Installation Directory
2. deploy These dlls to GAC
3. Use ILMerge, which builds one single dll (includes plugins and dependencies), before it is included in sdlplugin file by build process (take care about licensing issues if dependencies are third party libs)
Markus
Hi,
AFAIK you've got only three ways to ship dependency dlls with your sdlplugin. Problem is Studio (dotnet) should be able to resolve this dependencies, when plugin is loaded. As sdlplugin is in a local directory dlls are unzipped and placed in a local Folder. DotNet doesn't know this Folder and can resolve this dlls.
1. put these dlls in sdl Trados Studio Installation Directory
2. deploy These dlls to GAC
3. Use ILMerge, which builds one single dll (includes plugins and dependencies), before it is included in sdlplugin file by build process (take care about licensing issues if dependencies are third party libs)
Markus
Hi,
Thanks for replying, my dependencies are a class library project with a dependency third party dll
How to handle this situation?
Best Regards
HI,
yes it's possible - can you search this forum, i'm certain it was already answered once. What you do is that you change plugin manifest and add the files you need so build task will embedd them into the plugin.
Patrik