Skip to content

Commit 90989d0

Browse files
committed
fix: resolve Snyk Core parse error and ReDoS in test project dependencies
1 parent b8c74f9 commit 90989d0

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Contentstack.Management.Core.Tests/Contentstack.Management.Core.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<PackageReference Include="Moq" Version="4.20.72" />
2626
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.3.0" />
2727
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
28+
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
2829
</ItemGroup>
2930

3031
<ItemGroup>

Contentstack.Management.Core.Unit.Tests/Contentstack.Management.Core.Unit.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<PackageReference Include="AutoFixture.AutoMoq" Version="4.18.1" />
2121
<PackageReference Include="Moq" Version="4.20.72" />
2222
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.3.0" />
23+
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
2324
</ItemGroup>
2425

2526
<ItemGroup>

Contentstack.Management.Core/contentstack.management.core.csproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
<!-- On non-Windows (e.g. macOS/Linux), build only netstandard2.0; .NET Framework (net471/net472) is Windows-only and reference assemblies are not available. -->
4+
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
5+
<TargetFrameworks>netstandard2.0;net471;net472</TargetFrameworks>
6+
</PropertyGroup>
7+
<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
8+
<TargetFrameworks>netstandard2.0</TargetFrameworks>
9+
</PropertyGroup>
310
<PropertyGroup>
4-
<!-- On non-Windows (e.g. macOS/Linux), build only netstandard2.0; .NET Framework (net471/net472) is Windows-only and reference assemblies are not available. -->
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('Windows'))">netstandard2.0;net471;net472</TargetFrameworks>
6-
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('Windows'))">netstandard2.0</TargetFrameworks>
711
<LangVersion>8.0</LangVersion>
812
<Nullable>enable</Nullable>
913
<Title>Contentstack Management</Title>

0 commit comments

Comments
 (0)