Skip to content

Commit a9214bb

Browse files
committed
Explicitly depend on System.Runtime.CompilerServices.Unsafe 6.0.0
...for net4.x and netstandard2.x
1 parent 41ea9de commit a9214bb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

MailKit/MailKit.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
5656
</ItemGroup>
5757

58+
<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) Or $(TargetFramework.StartsWith('netstandard2.')) ">
59+
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
60+
</ItemGroup>
61+
5862
<ItemGroup>
5963
<ProjectReference Include="..\submodules\MimeKit\MimeKit\MimeKit.csproj" />
6064
</ItemGroup>

MailKit/MailKitLite.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
6161
</ItemGroup>
6262

63+
<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) Or $(TargetFramework.StartsWith('netstandard2.')) ">
64+
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
65+
</ItemGroup>
66+
6367
<ItemGroup>
6468
<ProjectReference Include="..\submodules\MimeKit\MimeKit\MimeKitLite.csproj" />
6569
</ItemGroup>

0 commit comments

Comments
 (0)