In a new Umbraco 12 project, in Startup ConfigureS...
# help-with-umbraco
k
In a new Umbraco 12 project, in Startup ConfigureServices, I have to .AddSmidge before .AddUmbraco to make things compile. I'm just copying code over from an Umbraco 11 project so haven't done any digging into this. What am I missing? Is this a change in Umbraco 12?
Or is it something in net7 vs net6?
net6 U11: services.AddUmbraco(). [...] .AddSmidge() Doesn't compile in new project created from U12 project template, I have to: services.AddSmidge(). [...] .AddUmbraco()
j
Do you need AddSmidge() at all? I though't Umbraco did it?
k
I get the same problem with AddSassCompiler()
Only in AddRuntimeMinifier does it add Smidge, and in a very specific way...
It looks like IUmbracoBuilder is not an IServiceCollection any more? Or did I break something?
j
Nope, it's not an IServiceCollection. So I don't think you've broken anything.
It's not an
IServiceCollection
in v10 either. Perhaps you have/had some other extension methods available somewhere?
k
Something is definitely fishy. I see what you mean. Thanks, I'll try to F12 my way around this...
2 Views