-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BlockTypes in own Project. #456
Comments
It's not documented yet, but you'll need to do a few things:
Note that with embedded resources, files in your main project will override embedded resources in the same location in dependent projects. |
It looks like Cofoundry can find your block type classes, but not your view file. Do check points 2, 3 and 4 in my comments above. I've updated the page block types sample project to include an example of placing block types in a separate project, along with a bit more detail in the readme. |
Thank you so much. I messed up the namespaces part. What a rookie mistake. |
No worries, it's more complicated than I'd like it to be and it isn't documented. I'm hopeing that the new source generators feature in .NET 6 is going to make all this a bit simpler because we can pull all this stuff in at compiletime instead of runtime, but I haven't had a chance to play around with it yet. I'll leave this issue open as it needs documenting in the main Cofoundry docs. |
I can't find a way to implement blocktypes in a separate project. The reason is that we need the blocktypes in several projects.
The text was updated successfully, but these errors were encountered: