Skip to content

Commit

Permalink
Add net8.0 build targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Nov 20, 2023
1 parent a5a5305 commit 109164a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
9 changes: 5 additions & 4 deletions MailKit/MailKit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<AssemblyTitle>MailKit</AssemblyTitle>
<VersionPrefix>4.3.0</VersionPrefix>
<Authors>Jeffrey Stedfast</Authors>
<LangVersion>9</LangVersion>
<TargetFrameworks>netstandard2.0;netstandard2.1;net462;net47;net48;net6.0</TargetFrameworks>
<LangVersion>10</LangVersion>
<TargetFrameworks>netstandard2.0;netstandard2.1;net462;net47;net48;net6.0;net8.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<AssemblyName>MailKit</AssemblyName>
<PackageId>MailKit</PackageId>
<PackageTags>smtp;pop3;imap;mime;security;dkim;smime;s/mime;openpgp;pgp;mbox;mail;email;parser;tnef;net462;net47;net48;net6.0;netstandard;netstandard2.0;netstandard2.1</PackageTags>
<PackageTags>smtp;pop3;imap;mime;security;dkim;smime;s/mime;openpgp;pgp;mbox;mail;email;parser;tnef;net462;net47;net48;net6.0;net8.0;netstandard;netstandard2.0;netstandard2.1</PackageTags>
<PackageProjectUrl>https://github.com/jstedfast/MailKit</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/jstedfast/MailKit/blob/master/License.md</PackageLicenseUrl>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
Expand Down Expand Up @@ -45,7 +45,8 @@
<DebugType>full</DebugType>
</PropertyGroup>

<PropertyGroup Condition=" $(TargetFramework.StartsWith('net4')) Or $(TargetFramework.StartsWith('net6')) ">
<!-- Enable serializable support for net4.x, net6.0 and net8.0 -->
<PropertyGroup Condition=" ! $(TargetFramework.StartsWith('netstandard')) ">
<DefineConstants>$(DefineConstants);SERIALIZABLE</DefineConstants>
</PropertyGroup>

Expand Down
9 changes: 5 additions & 4 deletions MailKit/MailKitLite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<AssemblyTitle>MailKit</AssemblyTitle>
<VersionPrefix>4.3.0</VersionPrefix>
<Authors>Jeffrey Stedfast</Authors>
<LangVersion>9</LangVersion>
<TargetFrameworks>netstandard2.0;netstandard2.1;net462;net47;net48;net6.0</TargetFrameworks>
<LangVersion>10</LangVersion>
<TargetFrameworks>netstandard2.0;netstandard2.1;net462;net47;net48;net6.0;net8.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<AssemblyName>MailKitLite</AssemblyName>
<PackageId>MailKitLite</PackageId>
<PackageTags>smtp;pop3;imap;mime;security;dkim;smime;s/mime;openpgp;pgp;mbox;mail;email;parser;tnef;net462;net47;net48;net6.0;netstandard;netstandard2.0;netstandard2.1</PackageTags>
<PackageTags>smtp;pop3;imap;mime;security;dkim;smime;s/mime;openpgp;pgp;mbox;mail;email;parser;tnef;net462;net47;net48;net6.0;net8.0;netstandard;netstandard2.0;netstandard2.1</PackageTags>
<PackageProjectUrl>https://github.com/jstedfast/MailKit</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/jstedfast/MailKit/blob/master/License.md</PackageLicenseUrl>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
Expand Down Expand Up @@ -46,7 +46,8 @@
<DebugType>full</DebugType>
</PropertyGroup>

<PropertyGroup Condition=" $(TargetFramework.StartsWith('net4')) Or $(TargetFramework.StartsWith('net6')) ">
<!-- Enable serializable support for net4.x, net6.0 and net8.0 -->
<PropertyGroup Condition=" ! $(TargetFramework.StartsWith('netstandard')) ">
<DefineConstants>$(DefineConstants);SERIALIZABLE</DefineConstants>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion UnitTests/UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>10</LangVersion>
<AssemblyName>UnitTests</AssemblyName>
<DebugSymbols>true</DebugSymbols>
Expand Down
7 changes: 7 additions & 0 deletions nuget/MailKit.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ Features include:
<group targetFramework="net6.0">
<dependency id="MimeKit" version="4.3.0" />
</group>
<group targetFramework="net8.0">
<dependency id="MimeKit" version="4.3.0" />
</group>
<group targetFramework="netstandard2.0">
<dependency id="System.Formats.Asn1" version="7.0.0" />
<dependency id="System.Threading.Tasks.Extensions" version="4.5.4" />
Expand Down Expand Up @@ -112,6 +115,10 @@ Features include:
<file src="..\MailKit\bin\Release\net6.0\MailKit.pdb" target="lib\net6.0\MailKit.pdb" />
<file src="..\MailKit\bin\Release\net6.0\MailKit.xml" target="lib\net6.0\MailKit.xml" />
<file src="..\MailKit\bin\Release\net6.0\MailKit.dll.config" target="lib\net6.0\MailKit.dll.config" />
<file src="..\MailKit\bin\Release\net8.0\MailKit.dll" target="lib\net8.0\MailKit.dll" />
<file src="..\MailKit\bin\Release\net8.0\MailKit.pdb" target="lib\net8.0\MailKit.pdb" />
<file src="..\MailKit\bin\Release\net8.0\MailKit.xml" target="lib\net8.0\MailKit.xml" />
<file src="..\MailKit\bin\Release\net8.0\MailKit.dll.config" target="lib\net8.0\MailKit.dll.config" />
<file src="mailkit-50.png" target="icons\mailkit-50.png" />
</files>
</package>
7 changes: 7 additions & 0 deletions nuget/MailKitLite.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ Features include:
<group targetFramework="net6.0">
<dependency id="MimeKitLite" version="4.3.0" />
</group>
<group targetFramework="net8.0">
<dependency id="MimeKit" version="4.3.0" />
</group>
<group targetFramework="netstandard2.0">
<dependency id="System.Formats.Asn1" version="7.0.0" />
<dependency id="System.Threading.Tasks.Extensions" version="4.5.4" />
Expand Down Expand Up @@ -109,6 +112,10 @@ Features include:
<file src="..\MailKit\bin\Release\net6.0\MailKitLite.pdb" target="lib\net6.0\MailKitLite.pdb" />
<file src="..\MailKit\bin\Release\net6.0\MailKitLite.xml" target="lib\net6.0\MailKitLite.xml" />
<file src="..\MailKit\bin\Release\net6.0\MailKitLite.dll.config" target="lib\net6.0\MailKitLite.dll.config" />
<file src="..\MailKit\bin\Release\net8.0\MailKitLite.dll" target="lib\net8.0\MailKitLite.dll" />
<file src="..\MailKit\bin\Release\net8.0\MailKitLite.pdb" target="lib\net8.0\MailKitLite.pdb" />
<file src="..\MailKit\bin\Release\net8.0\MailKitLite.xml" target="lib\net8.0\MailKitLite.xml" />
<file src="..\MailKit\bin\Release\net8.0\MailKitLite.dll.config" target="lib\net8.0\MailKitLite.dll.config" />
<file src="mailkit-50.png" target="icons\mailkit-50.png" />
</files>
</package>

0 comments on commit 109164a

Please sign in to comment.