How do I use umbpack to extract the < Template > < Design > code from my Visual Studio Project .cshtml files? Without the ability to extract the templates it is not much use!?
Not a lot of packages actually include Umbraco views, doctypes, data types, etc. so hasn't been a priority. Feel free to add a feature request to the tracker as David suggested though!
For now you'd have to create the package with all the Umbraco things included via the backoffice and can then use UmbPack for building and deploying whenever you have non-umbraco changes to include.
umbpack extract template design contents
How do I use umbpack to extract the < Template > < Design > code from my Visual Studio Project .cshtml files? Without the ability to extract the templates it is not much use!?
Hi Luke,
I'm not sure what exactly you are trying to do. Can you maybe explain a bit more in detail what you are trying to do?
You can also file an issue in the umb-pack repo here.
Thanks for the reply David.
I want to use "umbpack" to build our Umbraco package, instead of using the Web UI.
However I cannot get the generated pacakage.xml file to contain the html content of our template files within its < Templates > section.
How do I get the < Templates > section to generate into the package.xml file using umbpack?
Hey Luke,
This is not currently possible with UmbPack.
Not a lot of packages actually include Umbraco views, doctypes, data types, etc. so hasn't been a priority. Feel free to add a feature request to the tracker as David suggested though!
For now you'd have to create the package with all the Umbraco things included via the backoffice and can then use UmbPack for building and deploying whenever you have non-umbraco changes to include.
Thanks for the reply Jesper.
I have created a Feature Request as suggested: https://github.com/umbraco/UmbPack/issues/60
We are currently using the Backoffice so we do have a workaround, however it would be nice to automate the build with umbpack.
Many thanks once again.
is working on a reply...