Quick one: Does anyone use dotnet watch or Hot Rel...
# social
w
Quick one: Does anyone use dotnet watch or Hot Reload for Umbraco 9 projects. If so I would love to chat with you please 🙂
m
I plan to 😄 I also know people are excluding models builder from the watcher some how
w
Yep if your using InMemoryAuto then yep it causes chaos from my initial playing around
Wondering if we should update the .csproj we ship from the dotnet new template to exclude it from the watcher
m
I have seen the same issue with SourceCodeAuto as well
w
Have you? I was able to add a property and for dotnet watch to pick up the change, rebuild, restart app and me carry on getting intellisense in VSCode for new property
m
The site stopped working for me when, the code side was fine though
cant recall if I had the debugger attached from Vs or not though
w
Yeh been using CLI with VSCode for this round. I get a warning in the CLI
But I answered Always and it seems fine from this approach. Gonna try from VS to see what happens (Think it may not be happy with debugger attached, so may need to do CTRL + F5)
OK its not as neat experience in VS, which is surprising
You have to hit the button to do an application restart
Kinda weird I have to do that when I can say in the CLI always do a restart
s
@User seems to be having some trouble as well - https://github.com/umbraco/Umbraco-CMS/issues/11666
b
Yes, it doesn't seem to be specifically related to Tags editor as it works fine when using
dotnet run
I had a lot of issues with
dotnet watch run
when trying out Contentment on v9, but I don't think the issue is with Contentment package: https://github.com/leekelleher/umbraco-contentment/issues/176
w
Hmm just stretching my legs for lunch then will take a look at your notes @User
This still does feel very early days from MS and they have not got everything all sorted
b
@User yeah... if you install Contentment and create a few datatype instances using
DataList
editor, I am pretty sure you can reproduce this issues when running
dotnet watch run
and with ModelsBuilder mode
SourceCodeManual
.
w
OK with tags as mentioned in your issue I don't have any issues ?!
What version of dotnet sdk you using @User ?
Copy code
dotnet --list-sdks    

6.0.100-preview.3.21202.5 [C:\Program Files\dotnet\sdk]
6.0.100 [C:\Program Files\dotnet\sdk]
Again fine with @User contentment (Created datalist with ENUM type) Appeared in model completion (after a bit of poking, F12 into the published model)
b
I have these versions:
Copy code
dotnet --list-sdks    

3.1.402 [C:\Program Files\dotnet\sdk]
5.0.201 [C:\Program Files\dotnet\sdk]
5.0.202 [C:\Program Files\dotnet\sdk]`
w
Suggest trying with .NET6 SDK
5 Views