Skip to content

Commit dba53de

Browse files
Move EF designer dependency to be debug only.
1 parent 16648b5 commit dba53de

2 files changed

Lines changed: 57 additions & 54 deletions

File tree

src/Stott.Security.Optimizely.Test/Features/PermissionPolicy/Services/PermissionPolicyServiceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ public async Task HasOverrideAsync_WhenSettingsByContextReturnsNull_ThenReturnsF
457457
{
458458
// Arrange
459459
_mockRepository.Setup(x => x.GetSettingsByContextAsync("app1", null))
460-
.ReturnsAsync((PermissionPolicySettingsModel?)null);
460+
.ReturnsAsync((PermissionPolicySettingsModel)null);
461461

462462
// Act
463463
var result = await _service.ExistsForContextAsync("app1", null);
Lines changed: 56 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,60 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

3-
<PropertyGroup>
4-
<TargetFramework>net10.0</TargetFramework>
5-
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
6-
<Version>7.0.0.0-alpha</Version>
7-
<RepositoryUrl>https://github.com/GeekInTheNorth/Stott.Security.Optimizely</RepositoryUrl>
8-
<PackageProjectUrl>https://github.com/GeekInTheNorth/Stott.Security.Optimizely</PackageProjectUrl>
9-
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
10-
<Authors>Mark Stott</Authors>
11-
<Description>Provides an administration interface in Optimizely CMS 12 for managing security response headers.</Description>
12-
<Copyright>Mark Stott 2026</Copyright>
13-
<PackageTags>Optimizely;CMS;Optimizely CMS;Security;CSP;Content Security Policy;CORS;Cross-Origin Resource Sharing;Permissions Policy</PackageTags>
14-
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
15-
<RepositoryType>git</RepositoryType>
16-
<PackageReadmeFile>README.md</PackageReadmeFile>
17-
<AssemblyVersion>7.0.0.0</AssemblyVersion>
18-
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
19-
<PackageOutputPath>D:\Repos\Nuget</PackageOutputPath>
20-
<PackageReleaseNotes>Add support for custom headers, configurable import, audit filtering and cleansing.</PackageReleaseNotes>
21-
<Nullable>enable</Nullable>
22-
<Title>Stott Security</Title>
23-
</PropertyGroup>
24-
25-
<ItemGroup>
26-
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
27-
<_Parameter1>Stott.Security.Optimizely.Test</_Parameter1>
28-
</AssemblyAttribute>
29-
</ItemGroup>
30-
31-
<ItemGroup>
32-
<None Remove="Static\**" />
33-
<EmbeddedResource Include="Static\**" />
34-
</ItemGroup>
35-
36-
<ItemGroup>
37-
<None Include="..\..\LICENSE.txt">
38-
<Pack>True</Pack>
39-
<PackagePath>LICENSE.txt</PackagePath>
40-
</None>
41-
<None Include="..\..\README.md">
42-
<Pack>True</Pack>
43-
<PackagePath>README.md</PackagePath>
44-
</None>
45-
</ItemGroup>
46-
47-
<ItemGroup>
48-
<FrameworkReference Include="Microsoft.AspNetCore.App" />
49-
</ItemGroup>
50-
51-
<ItemGroup>
52-
<PackageReference Include="EPiServer.CMS.UI.Core" Version="13.0.0-preview4" />
53-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="[10.0.2,11.0.0)" />
54-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="[10.0.2,11.0.0)" />
55-
</ItemGroup>
3+
<PropertyGroup>
4+
<TargetFramework>net10.0</TargetFramework>
5+
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
6+
<Version>7.0.0.0-alpha2</Version>
7+
<RepositoryUrl>https://github.com/GeekInTheNorth/Stott.Security.Optimizely</RepositoryUrl>
8+
<PackageProjectUrl>https://github.com/GeekInTheNorth/Stott.Security.Optimizely</PackageProjectUrl>
9+
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
10+
<Authors>Mark Stott</Authors>
11+
<Description>Provides an administration interface in Optimizely CMS 12 for managing security response headers.</Description>
12+
<Copyright>Mark Stott 2026</Copyright>
13+
<PackageTags>Optimizely;CMS;Optimizely CMS;Security;CSP;Content Security Policy;CORS;Cross-Origin Resource Sharing;Permissions Policy</PackageTags>
14+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
15+
<RepositoryType>git</RepositoryType>
16+
<PackageReadmeFile>README.md</PackageReadmeFile>
17+
<AssemblyVersion>7.0.0.0</AssemblyVersion>
18+
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
19+
<PackageOutputPath>D:\Repos\Nuget</PackageOutputPath>
20+
<PackageReleaseNotes>Add support for custom headers, configurable import, audit filtering and cleansing.</PackageReleaseNotes>
21+
<Nullable>enable</Nullable>
22+
<Title>Stott Security</Title>
23+
</PropertyGroup>
24+
25+
<ItemGroup>
26+
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
27+
<_Parameter1>Stott.Security.Optimizely.Test</_Parameter1>
28+
</AssemblyAttribute>
29+
</ItemGroup>
30+
31+
<ItemGroup>
32+
<None Remove="Static\**" />
33+
<EmbeddedResource Include="Static\**" />
34+
</ItemGroup>
35+
36+
<ItemGroup>
37+
<None Include="..\..\LICENSE.txt">
38+
<Pack>True</Pack>
39+
<PackagePath>LICENSE.txt</PackagePath>
40+
</None>
41+
<None Include="..\..\README.md">
42+
<Pack>True</Pack>
43+
<PackagePath>README.md</PackagePath>
44+
</None>
45+
</ItemGroup>
46+
47+
<ItemGroup>
48+
<FrameworkReference Include="Microsoft.AspNetCore.App" />
49+
</ItemGroup>
50+
51+
<ItemGroup>
52+
<PackageReference Include="EPiServer.CMS.UI.Core" Version="13.0.0-preview4" />
53+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="[10.0.2,11.0.0)" />
54+
</ItemGroup>
55+
56+
<ItemGroup Condition="'$(Configuration)' == 'Debug'">
57+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="[10.0.2,11.0.0)" />
58+
</ItemGroup>
5659

5760
</Project>

0 commit comments

Comments
 (0)