Skip to content

Commit

Permalink
Set IsAotCompatible for MailKit.csproj and MailKitLite.csproj
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Nov 29, 2024
1 parent 3d7e35e commit c5b6d8a
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 @@ -50,6 +50,10 @@
<DefineConstants>$(DefineConstants);SERIALIZABLE</DefineConstants>
</PropertyGroup>

<PropertyGroup>
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
</PropertyGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) Or '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.6.0" />
Expand Down
4 changes: 4 additions & 0 deletions MailKit/MailKitLite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
<DefineConstants>$(DefineConstants);SERIALIZABLE</DefineConstants>
</PropertyGroup>

<PropertyGroup>
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
</PropertyGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) Or '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.6.0" />
Expand Down

0 comments on commit c5b6d8a

Please sign in to comment.