Question for you @Laura - enjoyed your
# package-development
w
Question for you @Laura Neto - enjoyed your talk and learnt something new about .esproj Is there any good resources on info on this project type at all ?!
l
Feel free to use our repo for reference 👀 😅 (https://github.com/ByteCrumb/Umbraco.Community.DeliveryApiExtensions/blob/v13/main/src/UmbracoDeliveryApiExtensions.UI/UmbracoDeliveryApiExtensions.UI.esproj) I do know there is some documentation here: https://learn.microsoft.com/en-us/visualstudio/javascript/javascript-in-visual-studio?view=vs-2022#project-templates https://learn.microsoft.com/en-us/visualstudio/javascript/javascript-project-system-msbuild-reference?view=vs-2022 But I remember that to get it 100% as we wanted it, @Vitor Rodrigues dug into the
Microsoft.VisualStudio.JavaScript.SDK
source code / MSBuild targets.
w
Do you remember what the struggles were and why the need to go source code diving into that SDK?
v
Don't remember everything, but there were a couple of things. One of them was to figure out how to set the assets base path, which we had to use a custom build target (the StaticWebAssetBasePath property was ignored), but I didn't check if that's since been fixed, as we were using an alpha version. We also had to set the StaticWebAssetSourceId to the name of the main project, to ensure the assets actually get included in the main package (as the UI one isn't actually released to nuget)
And then I remember having to tweak something to ensure you could run/debug the UI by itself with F5, but that during build time of the main package it simply got build and wouldn't start in the background.
There might be other things I'm missing, but it'll probably be easier to just use our repo as a reference and if anything doesn't quite work or isn't clear, feel free to ask.
w
OK will be looking at your repo and cloning it down for some fun later in the week 😄
10 Views