Copied to clipboard

Flag this post as spam?

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


  • Ben Dickman 21 posts 103 karma points
    Aug 24, 2018 @ 08:36
    Ben Dickman
    0

    Headless - AddUmbracoHeadlessClient

    Hi All,

    I am following the steps to get a .Net Core MVC (Static route website) running along side Umbraco Headless, however, I am struggling to add the Headless Client to the services in the ConfigureServices method located in Startup.cs. I have add the package using:

    dotnet add package UmbracoCms.Headless.Client -v 0.9.0-*
    

    'IServiceCollection' does not contain a definition for 'AddUmbracoHeadlessClient'

    services.AddUmbracoHeadlessClient(Configuration);
    

    https://github.com/umbraco/UmbracoDocs/blob/headless/Umbraco-Cloud/Headless/Headless-Net-Client/website-static.md

    I have included the following:

    using Umbraco.Headless.Client;
    

    I have found a previous post that suggests to try and downgrade the version but this did not fix the issue. I installed every single previous version with no luck.

    Any ideas?

    Many thanks,

    Ben

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies