From aa2a6392cdf9b86f564d9530494e14948e10e0fb Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 23 May 2019 03:58:34 +0800 Subject: [PATCH] appveyor ci --- appveyor.yml | 28 +++++++++ src/Directory.Build.props | 49 ++++++++++++++++ src/HtmlAgilityPack.Shared/HtmlWeb.cs | 6 +- src/HtmlAgilityPack.snk | Bin 0 -> 596 bytes src/HtmlAgilityPack.vs2019.sln | 41 ++++++++++++++ src/HtmlAgilityPack/AssemblyInfo.cs | 3 + src/HtmlAgilityPack/HtmlAgilityPack.csproj | 63 +++++++++++++++++++++ 7 files changed, 187 insertions(+), 3 deletions(-) create mode 100644 appveyor.yml create mode 100644 src/Directory.Build.props create mode 100644 src/HtmlAgilityPack.snk create mode 100644 src/HtmlAgilityPack.vs2019.sln create mode 100644 src/HtmlAgilityPack/AssemblyInfo.cs create mode 100644 src/HtmlAgilityPack/HtmlAgilityPack.csproj 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 0000000000000000000000000000000000000000..c2d78f7bcb1057951f5fbca7acdaf650000840d3 GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50096e+;Q08xoF2SLO9`yOzuiHe;f4-oqAH) z9@K1V8dyt_Lc!D{Oh6IRR5!^9l0bQ83`0)q=F-Gu67vNhqIT!XjgO}XTe!L5$51Zt zKCPyr|-{o!eet3ud9jHUh1uxo%9h@o;hw~h~WkN^^;3{W_$ldHZez}D`0 z<>hCFJaXf$jd}LiPo`)tb`h#R0&H>OsS*3c4p>43;jl!UzrkQ?I!VAF^Y(g|PLhWjz*MIQ&8a9u+%a;5)AXuM}?Cwy<$iy~1X~H`Tf#k8u zv!Gv6BDHPeu9VB3b0iqFip;W9MXJV!pG(%)wiUP@{NK*+cI;BBqt4W?De7&LI~S#! z3+7cB6r<%wRTrIk8d?=~MVkMDyd1-6c1|B1oQc%}zkQpFWwT6t_aod8a`2I**o~+i zWW1$?m(HMM9FEFbSuH}e%{7N$lLmSy&Ck(2#W#q?~b=#8H6Os(x`29?lLaXtmS}T%%kkPx$qgEk i%BCfV#W_bQWAU$zup%0cHi=C+Un1o-w791&j>87a<|Lf} literal 0 HcmV?d00001 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