[v3.0] Unable to build project
See original GitHub issueWhich Contentment version are you using?
3.0.0
Which Umbraco version are you using? For example: 8.14.1 - don’t just write v8
9.0.1
Bug summary
Unable to build project after upgrading from the beta to 3.0.0 stable
Steps to reproduce
Upgrade from 3.0.0-beta001 to 3.0.0 stable
Expected result / actual result
Expected the project to build, instead I get the following errors:
error CS0246: The type or namespace name 'ContentBlockPreviewView' could not be found (are you missing a using directive or an assembly reference?)
error CS0115: 'App_Plugins_Contentment_render_ContentBlockPreview.ExecuteAsync()': no suitable method found to override
Do you have Umbraco ModelsBuilder enabled?
- Yes, it is enabled.
What browsers are you seeing the problem on?
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (5 by maintainers)
Top Results From Across the Web
Visual Studio 2022 Can't Build Any Projects
It never progresses any further than that, the CPU sits around 0-3%, and the build has to canceled. Nothing happens, there's no errors....
Read more >Unable to build project file
Hello, i am having issues with building my project. I use win7, visual studio 2013 Ultimate, UE4 4.3 Launcher version.
Read more >Unable to build project in Xcode 1…
Unable to build project in Xcode 14.3 beta due to missing arc dir at /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib.
Read more >when build project error manifest display why and how to ...
Hi ahmedsalah-1628, This error usually occurs when the compiler cannot find any referenced files. Did you add the project to the solution file?...
Read more >Unable to build a project with net7 RC 1 · Issue #10234
It appears that the required workloads are not installed when you download visual studio. Additionally, they cannot be found on nuget when ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the update @leekelleher, no rush from me… the beta is currently working fine, I was only updating prior to launch on Sunday (31st) evening 😃
Update on this one. I added a
_ViewImports.cshtml
file to the “~/App_Plugins/Contentment/render” directory, with the contents……and the project compiles fine. 🎉
The reason I omitted the namespace from the Razor view is that the
ContentBlockPreviewView
class has different namespaces between the v8 and v9 versions. Rightly or wrongly, I wanted to align them with Umbraco’s namespaces for the view models.I’ll get a patch release out soon. 👍 (I’m doing the usual juggling work/family/OSS 🤷😆)