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
Did you tick the copy local = true on reference properties in Visual studio?
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"
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"/>
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:
Awesome! Simply post in the forums using the link below and we'll get you started.