Skip to content

Commit

Permalink
Explicitly depend on System.Runtime.CompilerServices.Unsafe 6.0.0
Browse files Browse the repository at this point in the history
...for net4.x and netstandard2.x
  • Loading branch information
jstedfast committed Sep 25, 2024
1 parent 41ea9de commit a9214bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MailKit/MailKit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
</ItemGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) Or $(TargetFramework.StartsWith('netstandard2.')) ">
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\submodules\MimeKit\MimeKit\MimeKit.csproj" />
</ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions MailKit/MailKitLite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
</ItemGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) Or $(TargetFramework.StartsWith('netstandard2.')) ">
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\submodules\MimeKit\MimeKit\MimeKitLite.csproj" />
</ItemGroup>
Expand Down

0 comments on commit a9214bb

Please sign in to comment.