Can someone point me to an example or tutorial on ...
# package-development
s
Can someone point me to an example or tutorial on how to develop a RCL Package project? I'm seeing a ton of docs on how to create the project and package the project. I have no idea where to start to fill in the guts.
a
I think there were a few different community articles on this - this one comes to mind: https://dev.to/kevinjump/umbraco-10-razor-class-library-packages-pt1-3nfa Can't remember the others
Umbraco's documentation doesn't seem to mention this, but there is also a
umbracopackage-rcl
.NET template. You can write
dotnet new umbracopackage-rcl --help
to see the available arguments.
s
And this PR shows how to change the existing setup to RCL: https://github.com/LottePitcher/opinionated-package-starter/pull/8
h
I used Kevin's blog posts when I moved the forum package to .net core https://umbraco.themediawizards.co.uk/the-grimoire/umbraco-10-razor-class-library-packages/
@Skibz Have fun 😄
s
Right I was using that particular template. Now I'm stuck on getting a controller to render a view. How do I tell the plugin to use a controller instead of a html file in my implementation of IDashboard. I'm assuming it's something to do with the View property
Ahh adding the following to my csproj for the plugin seems to make it work
Copy code
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
    <ContentTargetFolders>.</ContentTargetFolders>