Skip to content

Commit 3a01eb1

Browse files
committed
fix: resolve Snyk Core parse error and ReDoS in test project dependencies
1 parent 7cee175 commit 3a01eb1

File tree

4 files changed

+660
-4
lines changed

4 files changed

+660
-4
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: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<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>
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>
10+
<PropertyGroup>
711
<LangVersion>8.0</LangVersion>
812
<Nullable>enable</Nullable>
913
<Title>Contentstack Management</Title>

0 commit comments

Comments
 (0)