Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting OpenPop library to .NET Standard 2.0 #88

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,4 @@ Generated_Code #added for RIA/Silverlight projects
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
/.vs
11 changes: 11 additions & 0 deletions OpenPop/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project>
<PropertyGroup>
<Version>2.0.6.0</Version>
<AssemblyVersion>2.0.6.0</AssemblyVersion>
<Company>OpenPop</Company>
<Product>OpenPop</Product>
<Copyright>Public Domain</Copyright>
<AssemblyTitle>OpenPop POP3 Mail Library</AssemblyTitle>
<Configurations>Release</Configurations>
</PropertyGroup>
</Project>
147 changes: 4 additions & 143 deletions OpenPop/OpenPop.csproj
Original file line number Diff line number Diff line change
@@ -1,148 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{75B3E0DF-61C3-4643-AB47-DBE1CFE3D303}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<AssemblyName>OpenPop</AssemblyName>
<AssemblyOriginatorKeyFile>../OpenPopKeyFile.pfx</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<RootNamespace>OpenPop</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<OldToolsVersion>3.5</OldToolsVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworks>netstandard2.0;</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DocumentationFile>bin\Debug\OpenPop.xml</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<DefineConstants>TRACE</DefineConstants>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<ItemGroup>
<Reference Include="System">
<Name>System</Name>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="IParsingErrorHandler.cs" />
<Compile Include="ParseError.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Mime\Decode\EncodingFinder.cs" />
<Compile Include="Mime\Decode\Rfc2231Decoder.cs" />
<Compile Include="Mime\Decode\Rfc2822DateTime.cs" />
<Compile Include="Mime\Decode\SizeParser.cs" />
<Compile Include="Mime\Decode\Utility.cs" />
<Compile Include="Mime\Header\Received.cs" />
<Compile Include="Mime\Header\RfcMailAddress.cs" />
<Compile Include="Mime\MessageInfo.cs" />
<Compile Include="Mime\Traverse\AttachmentFinder.cs" />
<Compile Include="Mime\Traverse\FindAllMessagePartsWithMediaType.cs" />
<Compile Include="Mime\Traverse\IQuestionAnswerMessageTraverser.cs" />
<Compile Include="Mime\Traverse\FindFirstMessagePartWithMediaType.cs" />
<Compile Include="Mime\Traverse\MultipleMessagePartFinder.cs" />
<Compile Include="Mime\Traverse\TextVersionFinder.cs" />
<Compile Include="Mime\Header\ContentTransferEncoding.cs" />
<Compile Include="Mime\Decode\Base64.cs" />
<Compile Include="Mime\Decode\EncodedWord.cs" />
<Compile Include="Mime\Decode\QuotedPrintable.cs" />
<Compile Include="Mime\Message.cs" />
<Compile Include="Mime\Header\MessageHeader.cs" />
<Compile Include="Mime\MessagePart.cs" />
<Compile Include="Mime\Traverse\IAnswerMessageTraverser.cs" />
<Compile Include="Mime\Traverse\AnswerMessageTraverser.cs" />
<Compile Include="Mime\Header\HeaderFieldParser.cs" />
<Compile Include="Mime\Header\HeaderExtractor.cs" />
<Compile Include="Pop3\AuthenticationMethod.cs" />
<Compile Include="Pop3\CramMd5.cs" />
<Compile Include="Pop3\Disposable.cs" />
<Compile Include="Pop3\Exceptions\LoginDelayException.cs" />
<Compile Include="Pop3\Exceptions\PopClientException.cs" />
<Compile Include="Pop3\Exceptions\PopServerException.cs" />
<Compile Include="Pop3\Exceptions\InvalidLoginException.cs" />
<Compile Include="Pop3\Exceptions\InvalidUseException.cs" />
<Compile Include="Pop3\Apop.cs" />
<Compile Include="Pop3\Pop3Client.cs" />
<Compile Include="Pop3\ConnectionState.cs" />
<Compile Include="Pop3\Exceptions\PopServerNotAvailableException.cs" />
<Compile Include="Pop3\Exceptions\PopServerLockedException.cs" />
<Compile Include="Pop3\Exceptions\PopServerNotFoundException.cs" />
<Compile Include="Common\Logging\DiagnosticsLogger.cs" />
<Compile Include="Common\Logging\FileLogger.cs" />
<Compile Include="Common\Logging\DefaultLogger.cs" />
<Compile Include="Common\Logging\ILog.cs" />
<Compile Include="Common\StreamUtility.cs" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
<Visible>False</Visible>
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
<Visible>False</Visible>
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<Compile Remove="AssemblyCommon.cs" />
<Compile Remove="AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
20 changes: 2 additions & 18 deletions OpenPop/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
using System.Runtime.CompilerServices;
using System.Security;

[assembly: InternalsVisibleTo("OpenPopUnitTests, PublicKey=002400000480000094000000060200000024000052534131000400000100010039266498B64729E5E4F937B37DD45F2502E51F542CDB5B3C79708E9FA5B57EB2A9B6772A6CFCBB83365568F34BD75DB85B6F27535349C734BBC220549026C12A1EB5679958029C3A64D2117BCD50DFB005FD5EDFC08D99BCA6DCA2A80B5B60C069308CFC30B2C348C8D9F63755CE9CFCA79F20C4B316C4A2082C2A733B4E6F8E")]
[assembly: InternalsVisibleTo("OpenPopUnitTests")]

[assembly: AssemblyTitle("OpenPop POP3 Mail Library")]
[assembly: AssemblyDescription("POP3 Mail Library")]

// The Assembly is compliant to CLS rules
Expand All @@ -17,23 +16,8 @@
// like DNS, IO permissions are still in effect
[assembly: AllowPartiallyTrustedCallers]

// This file is linked to by other OpenPop projects to make
// sure that commen assembly information is shared correctly
[assembly: AssemblyVersion("2.0.6")]
[assembly: AssemblyFileVersion("2.0.6.0")]
[assembly: AssemblyInformationalVersion("2.0.6.0")]

// This is the configuration when building the assembly
[assembly: AssemblyConfiguration("Release mode assembly. Built for .NET 2.0")]

// Just some plain boring Assembly information
[assembly: AssemblyCompany("OpenPop")]
[assembly: AssemblyProduct("OpenPop")]
[assembly: AssemblyTrademark("OpenPop")]

// To clarify this License:
// See http://creativecommons.org/publicdomain/zero/1.0/
[assembly: AssemblyCopyright("Public Domain")]

// OpenPop is culture neutral, which is specified with an emptry string
// OpenPop is culture neutral, which is specified with an empty string
[assembly: AssemblyCulture("")]
11 changes: 5 additions & 6 deletions OpenPopExamples/OpenPopExamples.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -10,8 +10,9 @@
<RootNamespace>OpenPopExamples</RootNamespace>
<AssemblyName>OpenPopExamples</AssemblyName>
<AssemblyOriginatorKeyFile>../OpenPopKeyFile.pfx</AssemblyOriginatorKeyFile>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -21,6 +22,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -29,6 +31,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
Expand All @@ -38,10 +41,6 @@
<Reference Include="System.XML" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\OpenPop\AssemblyCommon.cs">
<Link>AssemblyCommon.cs</Link>
</Compile>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="Examples.cs" />
</ItemGroup>
<ItemGroup>
Expand Down
Binary file removed OpenPopKeyFile.pfx
Binary file not shown.
7 changes: 2 additions & 5 deletions OpenPopTest/OpenPopTest.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.21022</ProductVersion>
Expand Down Expand Up @@ -33,7 +33,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
Expand Down Expand Up @@ -100,9 +100,6 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="..\OpenPop\AssemblyCommon.cs">
<Link>AssemblyCommon.cs</Link>
</Compile>
<Compile Include="ShowSourceForm.cs">
<SubType>Form</SubType>
</Compile>
Expand Down
7 changes: 2 additions & 5 deletions OpenPopUnitTests/OpenPopUnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<RootNamespace>OpenPopUnitTests</RootNamespace>
<AssemblyName>OpenPopUnitTests</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand Down Expand Up @@ -43,9 +43,6 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\OpenPop\AssemblyCommon.cs">
<Link>AssemblyCommon.cs</Link>
</Compile>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="CombinedStream.cs" />
<Compile Include="Mime\Decode\EncodedWordTests.cs" />
Expand Down