We just tested out installing a nuget package with templates and it doesn't look like it gets intalled - is it something that could be supported in the future?
Developer forum
E-mail notifications
AppStore nuget packages including other files that dll's
Replies
Thinking uncompiled razor templates in ressources that needs to be unpacked?
Preferrably anything that goes into /Files could be ItemTypes, Images, Respository files, Razor Templates for supporting install of Swift components and other implementation features.
Hi Kevin
You can do that - as long as you do not have pre-combiled razor, that would be possible.
This is an example of a package that we create that adds presets of import and export jobs (they are xml files in the file system).
When this package is published to nuget, when installed, everything in the content element is being copied to the same location in the /files - so you can include images, templates etc.
It doesn't really extract that type of information using the "Local" App store - looks to me like the LocalAddinProvider only extracts dll files.
Have a look at Dynamicweb.Marketplace.Providers.LocalAddinProvider class Install method.
That's true. Works for packages out of nuget.
Locally you would usually just deploy your files directly - no need to pack it first.
But I guess your use case might be a library of your own add-ins that can be installed as needed?
I think we can add support for package content in local packages as well if needed.
Hi Again
Frederik did a quickfix, so there is now a pull request to support content files in local nuget packages as well:
https://dev.azure.com/dynamicwebsoftware/Dynamicweb/_git/Dynamicweb10/pullrequest/8011?_a=files
BR Nicolai
You must be logged in to post in the forum