Only add global usings when ImplicitUsings is enabled (#13491)

This commit is contained in:
Ronald Barendse
2022-11-28 19:57:36 +01:00
committed by GitHub
parent ed67cd887f
commit 8c483e8d3b

View File

@@ -5,7 +5,7 @@
<DefaultItemExcludes>$(DefaultItemExcludes);umbraco\Logs\**</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);wwwroot\media\**</DefaultItemExcludes>
</PropertyGroup>
<ItemGroup>
<ItemGroup Condition="'$(ImplicitUsings)' == 'enable' or '$(ImplicitUsings)' == 'true'">
<Using Include="Umbraco.Cms.Core.DependencyInjection" />
<Using Include="Umbraco.Extensions" />
</ItemGroup>