Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
As soon as I include one of the following 2 lines in a partial view macro file:
@using Umbraco.Core @using Umbraco.Core.Services
the macro does not load but throws. This is with Umbraco 11.2.0. Could anyone tell me what might be going on here?
What I try to do is injecting ILocalizationService into the macro with
ILocalizationService
@inject ILocalizationService LocalizationService
Kind regards, Mikael
I believe it is:@using Umbraco.Cms.Core
@using Umbraco.Cms.Core
Thank you. I tried this before, but spelled it wrongly (CMS uppercase).
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
"@using Umbraco.Core" throws in partial view macro file
As soon as I include one of the following 2 lines in a partial view macro file:
the macro does not load but throws. This is with Umbraco 11.2.0. Could anyone tell me what might be going on here?
What I try to do is injecting
ILocalizationService
into the macro withKind regards, Mikael
I believe it is:
@using Umbraco.Cms.Core
Thank you. I tried this before, but spelled it wrongly (CMS uppercase).
is working on a reply...