So here visual studio is restarting Umbraco for you because it saw new code] :-)
It's a good thing! Your cshtml files will actually work when the models have been built.
I tend to use dotnet watch instead which doesn't restart the site but keeps running builds when it detects changes, that might be a nicer experience for you too.
What is the point of using dotnet watch here? Is it when you don't use Visual Studio for development, to get automatic recompilation? Don't really see how it could avoid restarting the site if it recompiles.
SourceCodeAuto model builder mode causes build & restart on every document type save
SourceCodeAuto model builder mode causes build & restart on every document type save.
Just wondering
Using SourceCodeManual as a workaround for now.
So here visual studio is restarting Umbraco for you because it saw new code] :-)
It's a good thing! Your cshtml files will actually work when the models have been built.
I tend to use
dotnet watch
instead which doesn't restart the site but keeps running builds when it detects changes, that might be a nicer experience for you too.Hi Sebastiaan!
I'm getting the same issue too.
We are using
dontnet watch
during development and can see that the modelsbuilder generating files as we are making changes.During modelsbuilder re-generating the files, it crashes with the following error.
To resume, I have to clear out the models builder folder and run
dontnet watch
again to regenerate all of the models.Is there a way around this?
Thanks
Tony
Did you find at fix for this ?
What is the point of using
dotnet watch
here? Is it when you don't use Visual Studio for development, to get automatic recompilation? Don't really see how it could avoid restarting the site if it recompiles.is working on a reply...