diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..595c3ec7 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,28 @@ +version: 1.0.{build} +image: Visual Studio 2017 +pull_requests: + do_not_increment_build_number: true +branches: + only: + - master +configuration: Release +build_script: + - cmd: dotnet build -c Release src/HtmlAgilityPack.vs2019.sln +#test_script: +# - cmd: dotnet test -c Release +#after_test: +# - choco install opencover.portable +# - choco install codecov +# - OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test -c Release --framework net472 --verbosity q" +# - codecov -f "results.xml" +artifacts: + - path: '**\*.nupkg' + name: nupkg + - path: '**\*.snupkg' + name: snupkg +nuget: + disable_publish_on_pr: true +#deploy: +# provider: NuGet +# api_key: +# secure: diff --git a/src/Directory.Build.props b/src/Directory.Build.props new file mode 100644 index 00000000..26f1ca3d --- /dev/null +++ b/src/Directory.Build.props @@ -0,0 +1,49 @@ + + + SAK + SAK + SAK + SAK + + + + 1.11.1 + ZZZ Projects Inc. + ZZZ Projects Inc. + Html Agility Pack + Copyright © ZZZ Projects Inc. 2014 - 2019 + true + $(MSBuildThisFileDirectory)HtmlAgilityPack.snk + + + + latest + true + pdb-path-determinism + + + + $(WINDIR)\Microsoft.NET\Framework\v2.0.50727 + $(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client;$(Net20FrameworkPathOverride) + + + + + true + + false + + true + snupkg + + + + + all + + + all + + + + diff --git a/src/HtmlAgilityPack.Shared/HtmlWeb.cs b/src/HtmlAgilityPack.Shared/HtmlWeb.cs index 0615ed8b..a1414708 100644 --- a/src/HtmlAgilityPack.Shared/HtmlWeb.cs +++ b/src/HtmlAgilityPack.Shared/HtmlWeb.cs @@ -3,7 +3,7 @@ // Forum & Issues: https://github.com/zzzprojects/html-agility-pack // License: https://github.com/zzzprojects/html-agility-pack/blob/master/LICENSE // More projects: http://www.zzzprojects.com/ -// Copyright © ZZZ Projects Inc. 2014 - 2017. All rights reserved. +// Copyright ?ZZZ Projects Inc. 2014 - 2017. All rights reserved. #if !METRO @@ -55,7 +55,7 @@ public partial class HtmlWeb public delegate void PostResponseHandler(HttpWebRequest request, HttpWebResponse response); #endif -#if NET45 || NETSTANDARD1_3 || NETSTANDARD1_6 +#if NETSTANDARD1_3 || NETSTANDARD1_6 /// /// Represents the method that will handle the PostResponse event. /// @@ -72,7 +72,7 @@ public partial class HtmlWeb /// public delegate bool PreRequestHandler(HttpWebRequest request); #endif -#if NET45 || NETSTANDARD1_3 || NETSTANDARD1_6 +#if NETSTANDARD1_3 || NETSTANDARD1_6 /// /// Represents the method that will handle the PostResponse event. /// diff --git a/src/HtmlAgilityPack.snk b/src/HtmlAgilityPack.snk new file mode 100644 index 00000000..c2d78f7b Binary files /dev/null and b/src/HtmlAgilityPack.snk differ diff --git a/src/HtmlAgilityPack.vs2019.sln b/src/HtmlAgilityPack.vs2019.sln new file mode 100644 index 00000000..184a592a --- /dev/null +++ b/src/HtmlAgilityPack.vs2019.sln @@ -0,0 +1,41 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.28917.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HtmlAgilityPack", "HtmlAgilityPack\HtmlAgilityPack.csproj", "{C6B167D0-269B-4397-A4D5-02B80D4BCCB2}" +EndProject +Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "HtmlAgilityPack.Shared", "HtmlAgilityPack.Shared\HtmlAgilityPack.Shared.shproj", "{5BA9A0D7-173F-4C4F-AFFA-3DD6DC2F9A79}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E9A5FCC0-8EA7-464F-B2A5-26EB1A4A6F54}" + ProjectSection(SolutionItems) = preProject + ..\.gitattributes = ..\.gitattributes + ..\.gitignore = ..\.gitignore + ..\appveyor.yml = ..\appveyor.yml + Directory.Build.props = Directory.Build.props + HtmlAgilityPack.snk = HtmlAgilityPack.snk + ..\LICENSE = ..\LICENSE + ..\README.md = ..\README.md + EndProjectSection +EndProject +Global + GlobalSection(SharedMSBuildProjectFiles) = preSolution + HtmlAgilityPack.Shared\HtmlAgilityPack.Shared.projitems*{5ba9a0d7-173f-4c4f-affa-3dd6dc2f9a79}*SharedItemsImports = 13 + EndGlobalSection + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C6B167D0-269B-4397-A4D5-02B80D4BCCB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C6B167D0-269B-4397-A4D5-02B80D4BCCB2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C6B167D0-269B-4397-A4D5-02B80D4BCCB2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C6B167D0-269B-4397-A4D5-02B80D4BCCB2}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5B6386F5-8B61-4CE7-A90C-18B537F66A18} + EndGlobalSection +EndGlobal diff --git a/src/HtmlAgilityPack/AssemblyInfo.cs b/src/HtmlAgilityPack/AssemblyInfo.cs new file mode 100644 index 00000000..2bacd57c --- /dev/null +++ b/src/HtmlAgilityPack/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using System; + +[assembly: CLSCompliant(true)] \ No newline at end of file diff --git a/src/HtmlAgilityPack/HtmlAgilityPack.csproj b/src/HtmlAgilityPack/HtmlAgilityPack.csproj new file mode 100644 index 00000000..09d10734 --- /dev/null +++ b/src/HtmlAgilityPack/HtmlAgilityPack.csproj @@ -0,0 +1,63 @@ + + + netstandard1.3;netstandard1.6;netstandard2.0;net20;net35;net40;net45; + HtmlAgilityPack + HtmlAgilityPack + HtmlAgilityPack + true + true + + + + $(Net20FrameworkPathOverride) + FX20;$(DefineConstants) + $(Net35FrameworkPathOverride) + FX35;$(DefineConstants) + FX40;$(DefineConstants) + FX40;FX45;$(DefineConstants) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file