Skip to content

Commit 4abf3e5

Browse files
author
Denis Ivanov
committed
New project format;
Tracis CI config; README file.
1 parent ecde42f commit 4abf3e5

16 files changed

+166
-212
lines changed

.gitignore

Lines changed: 102 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Ignore Visual Studio temporary files, build results, and
22
## files generated by popular Visual Studio add-ons.
3+
##
4+
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
35

46
# User-specific files
57
*.suo
@@ -15,18 +17,21 @@
1517
[Dd]ebugPublic/
1618
[Rr]elease/
1719
[Rr]eleases/
18-
[Xx]64/
19-
[Xx]86/
20-
[Bb]uild/
20+
x64/
21+
x86/
2122
bld/
2223
[Bb]in/
2324
[Oo]bj/
25+
[Ll]og/
2426

25-
# Visual Studio 2015 cache/options directory
27+
# Visual Studio 2015/2017 cache/options directory
2628
.vs/
2729
# Uncomment if you have tasks that create the project's static files in wwwroot
2830
#wwwroot/
2931

32+
# Visual Studio 2017 auto generated files
33+
Generated\ Files/
34+
3035
# MSTest test Results
3136
[Tt]est[Rr]esult*/
3237
[Bb]uild[Ll]og.*
@@ -40,10 +45,19 @@ TestResult.xml
4045
[Rr]eleasePS/
4146
dlldata.c
4247

43-
# DNX
48+
# Benchmark Results
49+
BenchmarkDotNet.Artifacts/
50+
51+
# .NET Core
4452
project.lock.json
53+
project.fragment.lock.json
4554
artifacts/
55+
**/Properties/launchSettings.json
4656

57+
# StyleCop
58+
StyleCopReport.xml
59+
60+
# Files built by Visual Studio
4761
*_i.c
4862
*_p.c
4963
*_i.h
@@ -81,13 +95,17 @@ ipch/
8195
*.sdf
8296
*.cachefile
8397
*.VC.db
98+
*.VC.VC.opendb
8499

85100
# Visual Studio profiler
86101
*.psess
87102
*.vsp
88103
*.vspx
89104
*.sap
90105

106+
# Visual Studio Trace Files
107+
*.e2e
108+
91109
# TFS 2012 Local Workspace
92110
$tf/
93111

@@ -108,6 +126,14 @@ _TeamCity*
108126
# DotCover is a Code Coverage Tool
109127
*.dotCover
110128

129+
# AxoCover is a Code Coverage Tool
130+
.axoCover/*
131+
!.axoCover/settings.json
132+
133+
# Visual Studio code coverage results
134+
*.coverage
135+
*.coveragexml
136+
111137
# NCrunch
112138
_NCrunch_*
113139
.*crunch*.local.xml
@@ -139,22 +165,25 @@ publish/
139165
# Publish Web Output
140166
*.[Pp]ublish.xml
141167
*.azurePubxml
142-
143-
# TODO: Un-comment the next line if you do not want to checkin
144-
# your web deploy settings because they may include unencrypted
145-
# passwords
146-
#*.pubxml
168+
# Note: Comment the next line if you want to checkin your web deploy settings,
169+
# but database connection strings (with potential passwords) will be unencrypted
170+
*.pubxml
147171
*.publishproj
148172

173+
# Microsoft Azure Web App publish settings. Comment the next line if you want to
174+
# checkin your Azure Web App publish settings, but sensitive information contained
175+
# in these scripts will be unencrypted
176+
PublishScripts/
177+
149178
# NuGet Packages
150179
*.nupkg
151180
# The packages folder can be ignored because of Package Restore
152-
**/packages/*
181+
**/[Pp]ackages/*
153182
# except build/, which is used as an MSBuild target.
154-
!**/packages/build/
183+
!**/[Pp]ackages/build/
155184
# Uncomment if necessary however generally it will be regenerated when needed
156-
#!**/packages/repositories.config
157-
# NuGet v3's project.json files produces more ignoreable files
185+
#!**/[Pp]ackages/repositories.config
186+
# NuGet v3's project.json files produces more ignorable files
158187
*.nuget.props
159188
*.nuget.targets
160189

@@ -166,9 +195,12 @@ csx/
166195
ecf/
167196
rcf/
168197

169-
# Windows Store app package directory
198+
# Windows Store app package directories and files
170199
AppPackages/
171200
BundleArtifacts/
201+
Package.StoreAssociation.xml
202+
_pkginfo.txt
203+
*.appx
172204

173205
# Visual Studio cache files
174206
# files ending in .cache can be ignored
@@ -178,16 +210,23 @@ BundleArtifacts/
178210

179211
# Others
180212
ClientBin/
181-
[Ss]tyle[Cc]op.*
182213
~$*
183214
*~
184215
*.dbmdl
185216
*.dbproj.schemaview
217+
*.jfm
186218
*.pfx
187219
*.publishsettings
188-
node_modules/
189220
orleans.codegen.cs
190221

222+
# Including strong name files can present a security risk
223+
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
224+
#*.snk
225+
226+
# Since there are multiple workflows, uncomment next line to ignore bower_components
227+
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
228+
#bower_components/
229+
191230
# RIA/Silverlight projects
192231
Generated_Code/
193232

@@ -202,6 +241,7 @@ UpgradeLog*.htm
202241
# SQL Server files
203242
*.mdf
204243
*.ldf
244+
*.ndf
205245

206246
# Business Intelligence projects
207247
*.rdl.data
@@ -216,13 +256,20 @@ FakesAssemblies/
216256

217257
# Node.js Tools for Visual Studio
218258
.ntvs_analysis.dat
259+
node_modules/
260+
261+
# TypeScript v1 declaration files
262+
typings/
219263

220264
# Visual Studio 6 build log
221265
*.plg
222266

223267
# Visual Studio 6 workspace options file
224268
*.opt
225269

270+
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
271+
*.vbw
272+
226273
# Visual Studio LightSwitch build output
227274
**/*.HTMLClient/GeneratedArtifacts
228275
**/*.DesktopClient/GeneratedArtifacts
@@ -231,12 +278,46 @@ FakesAssemblies/
231278
**/*.Server/ModelManifest.xml
232279
_Pvt_Extensions
233280

234-
# LightSwitch generated files
235-
GeneratedArtifacts/
236-
ModelManifest.xml
237-
238281
# Paket dependency manager
239282
.paket/paket.exe
283+
paket-files/
240284

241285
# FAKE - F# Make
242286
.fake/
287+
288+
# JetBrains Rider
289+
.idea/
290+
*.sln.iml
291+
292+
# CodeRush
293+
.cr/
294+
295+
# Python Tools for Visual Studio (PTVS)
296+
__pycache__/
297+
*.pyc
298+
299+
# Cake - Uncomment if you are using it
300+
# tools/**
301+
# !tools/packages.config
302+
303+
# Tabs Studio
304+
*.tss
305+
306+
# Telerik's JustMock configuration file
307+
*.jmconfig
308+
309+
# BizTalk build output
310+
*.btp.cs
311+
*.btm.cs
312+
*.odx.cs
313+
*.xsd.cs
314+
315+
# OpenCover UI analysis results
316+
OpenCover/
317+
318+
# Azure Stream Analytics local run output
319+
ASALocalRun/
320+
321+
# MSBuild Binary and Structured Log
322+
*.binlog
323+

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: csharp
2+
solution: AngleSharp.XPath.sln
3+
dotnet : 2.0.3
4+
script :
5+
- dotnet restore
6+
- dotnet build
7+
- dotnet test

AngleSharp.XPath.sln

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 14
4-
VisualStudioVersion = 14.0.25420.1
5-
MinimumVisualStudioVersion = 10.0.40219.1
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.26124.0
5+
MinimumVisualStudioVersion = 15.0.26124.0
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{8B85F292-66CA-44A2-950E-1F81A3E7ECD5}"
77
EndProject
8-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0C6856E2-614E-4528-B356-F22F6E2E37EB}"
9-
ProjectSection(SolutionItems) = preProject
10-
global.json = global.json
11-
EndProjectSection
8+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "AngleSharp.XPath", "src\AngleSharp.XPath\AngleSharp.XPath.csproj", "{247B6597-EFDC-4A4D-BBB2-B26CFD15FBBD}"
129
EndProject
13-
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "AngleSharp.XPath", "src\AngleSharp.XPath\AngleSharp.XPath.xproj", "{247B6597-EFDC-4A4D-BBB2-B26CFD15FBBD}"
14-
EndProject
15-
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "AngleSharp.XPath.Tests", "src\AngleSharp.XPath.Tests\AngleSharp.XPath.Tests.xproj", "{5BA4134A-2E43-4219-893D-85F1481A0FCC}"
10+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "AngleSharp.XPath.Tests", "src\AngleSharp.XPath.Tests\AngleSharp.XPath.Tests.csproj", "{5BA4134A-2E43-4219-893D-85F1481A0FCC}"
1611
EndProject
1712
Global
1813
GlobalSection(SolutionConfigurationPlatforms) = preSolution

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
XPath support for AngleSharp
2+

global.json

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<ItemGroup>
3+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
4+
<PackageReference Include="NUnit" Version="3.9.0" />
5+
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
6+
</ItemGroup>
7+
<ItemGroup>
8+
<ProjectReference Include="..\AngleSharp.XPath\AngleSharp.XPath.csproj" />
9+
</ItemGroup>
10+
<PropertyGroup>
11+
<TargetFramework>netcoreapp2.0</TargetFramework>
12+
<IsPackable>false</IsPackable>
13+
</PropertyGroup>
14+
<PropertyGroup>
15+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
16+
</PropertyGroup>
17+
</Project>

src/AngleSharp.XPath.Tests/AngleSharp.XPath.Tests.xproj

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/AngleSharp.XPath.Tests/HtmlDocumentNavigatorTests.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,19 @@ namespace AngleSharp.XPath.Tests
1010
[TestFixture]
1111
public class HtmlDocumentNavigatorTests
1212
{
13-
[Test]
13+
[Test, Retry(5)]
1414
public async Task SelectSinleNodeTest()
1515
{
16+
// Arrange
17+
const string address = "https://stackoverflow.com/questions/39471800/is-anglesharps-htmlparser-threadsafe";
1618
var config = Configuration.Default.WithDefaultLoader();
17-
var address = "https://stackoverflow.com/questions/39471800/is-anglesharps-htmlparser-threadsafe";
1819
var document = await BrowsingContext.New(config).OpenAsync(address);
1920

21+
// Act
2022
var content = document.DocumentElement.SelectSingleNode("//div[@id='content']");
23+
24+
// Assert
2125
Assert.That(content, Is.Not.Null);
2226
}
2327
}
24-
}
28+
}

src/AngleSharp.XPath.Tests/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)