Surface controllers in umbraco 10

hi,

I’m bit stuck on using a surface controllers in my new umbraco 10 project.
what I want is develop some forms to handle data and render in umbraco site without adding lots of document types for forms.

I would like to have pluginbase surface controllers project to develop the forms and data submit actions and then call them inside rich text editor using macro.

I have a done this in umbraco 7 but , couldn’t find clear guide lines ,how to do this in umbraco 10. I have copied dll to bin folder , and created App_Plugins folder/surfacecontroller/Views to store views and run build the site using dotnet watch and id doesn’t like my dll file . it returns could not load file or assembly error

unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'PatsSurfaceControllers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, processorArchitecture=MSIL'. The system cannot find the file specified.
File name: 'PatsSurfaceControllers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, processorArchitecture=MSIL'
   at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
   at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef) ......

I have read the pluginbase surfacecontrollers in umbrac docs

but not clear how to do it. so your advises will be great help


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/112995-surface-controllers-in-umbraco-10