Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v3.0] Unable to build project

See original GitHub issue

Which Contentment version are you using?


Which Umbraco version are you using? For example: 8.14.1 - don’t just write v8


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:closed
  • Created 2 years ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

AaronSadlerUKcommented, Oct 26, 2021

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 😃

leekellehercommented, Oct 26, 2021

Update on this one. I added a _ViewImports.cshtml file to the “~/App_Plugins/Contentment/render” directory, with the contents…

@using Umbraco.Cms.Web.Common.Views;

…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 🤷😆)

Read more comments on GitHub >

github_iconTop 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/
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found