Skip to content

Commit cab3cb1

Browse files
Merge pull request #391 from SixLabors/js/fix-389
Make implicit global usings opt-in
2 parents 21efd0c + b3821f9 commit cab3cb1

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

ImageSharp.Web.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_root", "_root", "{C317F1B1
1616
Directory.Build.targets = Directory.Build.targets
1717
LICENSE = LICENSE
1818
README.md = README.md
19+
SixLabors.ImageSharp.Web.props = SixLabors.ImageSharp.Web.props
1920
shared-infrastructure\SixLabors.ruleset = shared-infrastructure\SixLabors.ruleset
2021
shared-infrastructure\SixLabors.Tests.ruleset = shared-infrastructure\SixLabors.Tests.ruleset
2122
shared-infrastructure\stylecop.json = shared-infrastructure\stylecop.json

SixLabors.ImageSharp.Web.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33

44
<!--Add common namespaces to implicit global usings if enabled.-->
5-
<ItemGroup Condition="'$(ImplicitUsings)'=='enable' OR '$(ImplicitUsings)'=='true'">
5+
<ItemGroup Condition="'$(UseImageSharp)'=='enable' OR '$(UseImageSharp)'=='true'">
66
<Using Include="SixLabors.ImageSharp" />
77
<Using Include="SixLabors.ImageSharp.Processing" />
88
<Using Include="SixLabors.ImageSharp.Web" />

samples/ImageSharp.Web.Sample/Pages/_ViewImports.cshtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@using SixLabors.ImageSharp
2+
@using SixLabors.ImageSharp.Processing
3+
@using SixLabors.ImageSharp.Web
14
@using ImageSharp.Web.Sample
25
@namespace ImageSharp.Web.Sample.Pages
36
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

0 commit comments

Comments
 (0)