Closed idseefeld closed 3 years ago
Hey @idseefeld, thanks for reporting, I was able to reproduce, and you're exactly right, it's because publishing tries to precompile the views. We already have a project property to stop views from compiling on build, however, we don't have one for publishing it seems.
You can fix this for now by opening your project's .csproj
file, and scrolling down to the bottom where you'll find a property group that has a RazorCompileOnBuild
property set to false, add the RazorCompileOnPublish
property and set it false as well, and now you can publish without precompiling views, the property group should look like this afterwards:
<PropertyGroup>
<RazorCompileOnBuild>false</RazorCompileOnBuild>
<RazorCompileOnPublish>false</RazorCompileOnPublish>
</PropertyGroup>
Fixed in #10594
Which exact Umbraco version are you using? For example: 8.13.1 - don't just write v8
Nightly Build: Umbraco version 9.0.0-preview20210701.67054
Bug summary
For a default Umbraco V9 setup publishing is not working. I tried a folder publish which leads to the following error message:
[DOCUMENT TYPE NAME] replaces of course a concrete document typ name. 😉
Specifics
The error message tells me the publish process tries to precompile the views. Because of the auto generated, strongly typed template (in the IDE you can see the type is unknown) this is not possible.
I could fix the issue by configuring
SourceCodeManual
in appSettings.json and deleting folder\Umbraco\Data\TEMP
:You have to run the back office and build the model before you retry the publishing.
Steps to reproduce
Expected result / actual result
No response