DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Issues adding DLLs to auth module install package

Sort:
You are not authorized to post a reply.





New Around Here





    I run the release build and get a build package that's mostly fine but missing DLL's aren't taking 

    I tried to modify the dll package directly but I'm also running into an instalation error

    Missing DLLs (probobly mostly installed from restsharp or asynchronous tasks (not using that anymore though))

    System.Text.Json
    System.Threading.Tasks.Extensions
    System.Memory
    Microsoft.Bcl.AsyncInterfaces
    System.Text.Encodings.Web






    Growing Member





      Did you tick the copy local = true on reference properties in Visual studio?






      New Around Here





        Well I'll try with the other missing DLL's but something I noticed is I can't add System.Text.Json to the project

        "Componentt is already referenced by the build system"






        Growing Member





          There are a few alterations needed when adding more dll's to an install package.

          If you have multiple dlls you need to add - insert one section for each.

          First of all it needs to be added to your .dnn module file - so the installer knows that it should be installed. Do note that you should not be adding dlls already part of the DNN installation, since that can cause all kinds of problems. If you omit the <version> tag it will use the version of your module.

          <component type="Assembly">
            <assemblies>
              <basePath>bin</basePath>
              <assembly>
                <name>YourProject.dll</name>
              </assembly>
              <assembly>
                <name>AnyReferenceDllNotInstalled.dll</name>
                <version>1.2.3</version>
              </assembly>

            </assemblies>
          </component>


          If you are using build tasks the dll's also needs to be added to the ModulePackage.targets file.
          This section will exist twice the build file (one for source, and one for install)

          <Copy SourceFiles="$(MSBuildDnnBinPath)\$(AssemblyName).dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>
          <Copy SourceFiles="$(MSBuildDnnBinPath)\AnyReferenceDllNotInstalled.dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>

          You are not authorized to post a reply.

          These Forums are dedicated to the discussion of DNN Platform.

          For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

          1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
          2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
          3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
          4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
          5. No Flaming or Trolling.
          6. No Profanity, Racism, or Prejudice.
          7. Site Moderators have the final word on approving / removing a thread or post or comment.
          8. English language posting only, please.

          Would you like to help us?

          Awesome! Simply post in the forums using the link below and we'll get you started.

          Get Involved