Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Linx 98 posts 258 karma points
    Oct 18, 2021 @ 18:44
    Linx
    0

    How to separate WebApi into a separate CL?

    I would like to add a new Class Library and have all the Web API stuff sit inside this project for Umbraco 8 custom section calls.

    How could I do this as I understand there a lot of references from Umbraco 8 that need to be included?

    Thank you

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Oct 18, 2021 @ 20:26
    Nik
    1

    Hi Linx,

    This is completely possible, in your new Class Library project you'll need to include a reference to UmbracoCms.Core and UmbracoCms.Web and you should be able to create all your controllers etc quite easily. I do this on a regular basis with API/Surface/RenderMvcControllers in order to seperate them from our core site project.

    Thanks

    Nik

Please Sign in or register to post replies

Write your reply to:

Draft