Question

"Could not load file or assembly...." when using third party DLL

  • 1 April 2022
  • 1 reply
  • 331 views

Badge +2

Hi,

I’d like to use a third party DLL in App10. I put the file into <component>/source/<component>/client/runtime dir and setup the csproj for copying the file into the DeployFiles dir when building and I added the reference as well. It works fine in developer mode.

After the building the file is in the <build_home>/client/runtime dir, but the registration is missing from the Ifs.Fnd.Explorer.exe.manifest.

How can I force msbuild to put my extra DLL into the manifest file?

Best regards,

Tamás


1 reply

Badge +2

I found the solution. A ComponentDeploy.target file should be placed into the <component>/source/<component>/client dir with the following content:

<Project DefaultTargets="IncludeAdditionalDependencies" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<ItemGroup>
<File Include="$(FndDeployTarget)\<extrafilename>.dll"/>
</ItemGroup>

<Target Name="IncludeAdditionalDependencies" Outputs="@(AllDependencies)">
 <CreateItem
            Include="@(File)"
            AdditionalMetadata="Group=Ifs.Application.<Assemblyname>;DependencyType=Install;AssemblyType=Managed" >
      <Output
          TaskParameter="Include"
          ItemName="AllDependencies"/>
 </CreateItem>
</Target>

</Project>

Reply