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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
ooxml/NPOI.OOXML.Core.csproj
-
testcases/ooxml/XSSF/UserModel/TestXSSFName.cs
|
|
@ -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> |
|
|
|
|
|
@ -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
|
|
|
|
} |
|
|
|