ChrisHammond / DNNTemplates

Christoc's DotNetNuke Extension Development templates for Visual Studio
http://www.christoc.com/Products/DNN-Development-Templates
Other
97 stars 38 forks source link

Adding additional DLLs to be included during installation #56

Closed swalker1595 closed 3 years ago

swalker1595 commented 5 years ago

I tried to following this guide: https://www.chrishammond.com/Blog/itemid/2053/including-additional-dllrsquos-in-an-msbuild-scr but was unsuccessful in packaging the additional DLLs for installation.

I added two lines to the ModulePackage.targets file:

    <Copy SourceFiles="$(MSBuildDnnBinPath)\$(AssemblyName).dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>
    <Copy SourceFiles="$(MSBuildDnnBinPath)\Microsoft.SharePoint.Client.dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>
    <Copy SourceFiles="$(MSBuildDnnBinPath)\Microsoft.SharePoint.Client.Runtime.dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>

And the following lines to my .dnn file:

    <assembly>
      <name>Microsoft.SharePoint.Client.dll</name>
    </assembly>
    <assembly>
      <name>Microsoft.SharePoint.Client.Runtime.dll</name>
    </assembly>

However the install.zip file does not contain either DLL.

ChrisHammond commented 3 years ago

Shane, did you get this resolved? Typically you need to copy the DLLs twice. one for the SOURCE package and one for the INSTALL package.

See this file as an example https://github.com/ChrisHammond/dnnCHAT/blob/master/BuildScripts/ModulePackage.targets