I was curious about the package files for Umbraco 10. I've installed both Umbraco forms & uSync. But there are no package files in sight. The files seems to be located in the smidge folder?
I am a bit curious on how this works. And how I could incorporate this onto my own package?
both uSync and Umbraco forms are using the Razor Class Libraries Static files feature, which means while you are developing the files are served from the nuget cache - and when you publish the files are copied into the site.
As you have seen this means there are less files cluttering up your solution and it makes sure that when packages are updated all the files are updated too.
I've written a couple of blog posts about how we did this for uSync and other packages - these might give you a starting point for how to do it for your packages.
Packages files
Hi!
I was curious about the package files for Umbraco 10. I've installed both Umbraco forms & uSync. But there are no package files in sight. The files seems to be located in the smidge folder?
I am a bit curious on how this works. And how I could incorporate this onto my own package?
//Johannes
Hi Johannes,
both uSync and Umbraco forms are using the Razor Class Libraries Static files feature, which means while you are developing the files are served from the nuget cache - and when you publish the files are copied into the site.
As you have seen this means there are less files cluttering up your solution and it makes sure that when packages are updated all the files are updated too.
I've written a couple of blog posts about how we did this for uSync and other packages - these might give you a starting point for how to do it for your packages.
https://dev.to/kevinjump/umbraco-10-razor-class-library-packages-pt1-3nfa
Hi Kevin!
Thank you so much for the explanation! The blog posts really helped me out!
//Johannes
is working on a reply...