Browse Source

Merge pull request #1570 from lahma/conditional-System.Security.Cryptography.Pkcs

Only add dependency to Cryptography.Pkcs when needed
pull/1572/head
Tony Q. 2 months ago
committed by GitHub
parent
commit
7f54141aa6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      ooxml/NPOI.OOXML.Core.csproj
  2. 2
      testcases/ooxml/XSSF/UserModel/TestXSSFName.cs

2
ooxml/NPOI.OOXML.Core.csproj

@ -27,7 +27,7 @@
<ItemGroup>
<PackageReference Include="System.Security.Cryptography.Xml" />
<PackageReference Include="System.Security.Cryptography.Pkcs" />
<PackageReference Include="System.Security.Cryptography.Pkcs" Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))" />
</ItemGroup>
<ItemGroup>

2
testcases/ooxml/XSSF/UserModel/TestXSSFName.cs

@ -150,7 +150,7 @@ namespace TestCases.XSSF.UserModel
name.NameName = ref1;
Assert.Fail("cell addresses are not allowed: " + ref1);
}
catch (ArgumentException e)
catch (ArgumentException)
{
// expected
}

Loading…
Cancel
Save