Forum


HomeHomePremiumPremiumDevelopmentDevelopmentHow to include additional files in a dnn install file?How to include additional files in a dnn install file?
Previous
 
Next
New Post
6/21/2014 5:43 AM
 

Hello,

Does anyone know how to include additional dlls in a DNN Install file?

I've tried adding the dll to the manifest as shown below, but that doesn't work. flexicontent.dll is picked up, it's the main project file.
EF.dll isn't, it's in a separate visual studio project, but the dll is in the bin directory of the dnn installation.

Steve


<component type="Assembly">

          <assemblies>
            <assembly>
              <name>FlexiContent.dll</name>
              <path>bin</path>
            </assembly>
            <assembly>
              <name>EF.dll</name>
              <path>bin</path>    
              <sourceFileName>EF.dll</sourceFileName> 
            </assembly>
          </assemblies>
        </component>
 
New Post
6/21/2014 6:54 AM
 

Hi Steve,

In addition to what you have done already you should try the following:

1 - Assuming you are using Chris Hammond template you can open the \BuildScriptsModulePackage.targets file - It is just a regular text file;

2 - Find ".dll" - You will find 2 lines with it;

3 - Right after each on those lines, add the following line:

<Copy SourceFiles="$(MSBuildProjectDirectory)\bin\[YOUR DLL NAME].dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>

4 - Replace [YOUR DLL NAME] with the name of your dll;

Note: Make sure you don't have your project open in Visual Studio while you do these changes. 

That should do it. It worked well for me.

Check it out and let us know.

Good luck,

Aderson


 
New Post
6/22/2014 3:41 AM
 

Hello Aderson,

Thank you for your answer to my question.

I made the changes as you suggested but with a small change and it's now working :-)

I had to change:
<Copy SourceFiles="$(MSBuildProjectDirectory)\bin\[YOUR DLL NAME].dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>

To:
<Copy SourceFiles="$(MSBuildDnnBinPath)\bin\[YOUR DLL NAME].dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>
As my project doesn't have a bin file

I suppose something like this would work too (NOT TESTED!):

<Copy SourceFiles="$(MSBuildProjectDirectory)\[YOUR PROJECT DIRECTORY]\bin\Release\[YOUR DLL NAME].dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>

Thank you once again.

Best Regards,

Steve

 
New Post
6/23/2014 3:29 AM
 

Hi Steve.

Great that you were able to adjust to your particular needs! Give it a try and let us know.

Cheers,

Aderson

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentHow to include additional files in a dnn install file?How to include additional files in a dnn install file?



Try FREE
30 days money back guaranteed