I'm looking at the possibility of creating a NuGet package that contains uSync as a dependency including all the folders and files in the uSync/data folder.
With this idea, should I have uSync installed in a separate class library where my NuGet package is generated? Or part of the Web Application which has Umbraco and other third-party packages installed?
It probably only needs to go into the web application that would be generating the files. ?
the key would be to include uSync as a dependency of your nuget package.
however - if you are intending to use this for more than just boiler plating your own sites, i would suggest you don't include the usync/data folder, but rather put the usync files somewhere else and import them in code (you can connect to the uSyncBackOffice context and import from any folder, e.g:
only because with those files as part of your nuget package, you risk them getting confused with the files that might already be there or might change in someone else's site.
uSync as a dependency in a boilerplate NuGet package
I'm looking at the possibility of creating a NuGet package that contains uSync as a dependency including all the folders and files in the uSync/data folder.
With this idea, should I have uSync installed in a separate class library where my NuGet package is generated? Or part of the Web Application which has Umbraco and other third-party packages installed?
Hi,
It probably only needs to go into the web application that would be generating the files. ?
the key would be to include uSync as a dependency of your nuget package.
however - if you are intending to use this for more than just boiler plating your own sites, i would suggest you don't include the usync/data folder, but rather put the usync files somewhere else and import them in code (you can connect to the uSyncBackOffice context and import from any folder, e.g:
only because with those files as part of your nuget package, you risk them getting confused with the files that might already be there or might change in someone else's site.
Hi Kevin. Thank you for the feedback, definitely given me food for thought.
The idea of import the files from another folder sounds interesting. Consider the following scenario (which I need to test)
is working on a reply...