Skip to content

Commit

Permalink
Prepare for 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Jan 15, 2023
1 parent 7bcd0d4 commit 46df1e3
Show file tree
Hide file tree
Showing 29 changed files with 1,515 additions and 375 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/setup-dotnet@v1
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- name: Build
run: ./build.sh
Expand All @@ -66,12 +66,12 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/setup-dotnet@v1
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- name: Build
run: |
Expand Down
134 changes: 134 additions & 0 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Build Schema",
"$ref": "#/definitions/build",
"definitions": {
"build": {
"type": "object",
"properties": {
"Configuration": {
"type": "string",
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)",
"enum": [
"Debug",
"Release"
]
},
"Continue": {
"type": "boolean",
"description": "Indicates to continue a previously failed build attempt"
},
"Help": {
"type": "boolean",
"description": "Shows the help text for this build assembly"
},
"Host": {
"type": "string",
"description": "Host for execution. Default is 'automatic'",
"enum": [
"AppVeyor",
"AzurePipelines",
"Bamboo",
"Bitbucket",
"Bitrise",
"GitHubActions",
"GitLab",
"Jenkins",
"Rider",
"SpaceAutomation",
"TeamCity",
"Terminal",
"TravisCI",
"VisualStudio",
"VSCode"
]
},
"NoLogo": {
"type": "boolean",
"description": "Disables displaying the NUKE logo"
},
"Partition": {
"type": "string",
"description": "Partition to use on CI"
},
"Plan": {
"type": "boolean",
"description": "Shows the execution plan (HTML)"
},
"Profile": {
"type": "array",
"description": "Defines the profiles to load",
"items": {
"type": "string"
}
},
"ReleaseNotesFilePath": {
"type": "string",
"description": "ReleaseNotesFilePath - To determine the SemanticVersion"
},
"Root": {
"type": "string",
"description": "Root directory during build execution"
},
"Skip": {
"type": "array",
"description": "List of targets to be skipped. Empty list skips all dependencies",
"items": {
"type": "string",
"enum": [
"Clean",
"Compile",
"CopyFiles",
"CreatePackage",
"Default",
"Package",
"PrePublish",
"Publish",
"PublishPackage",
"PublishPreRelease",
"PublishRelease",
"Restore",
"RunUnitTests"
]
}
},
"Solution": {
"type": "string",
"description": "Path to a solution file that is automatically loaded"
},
"Target": {
"type": "array",
"description": "List of targets to be invoked. Default is '{default_target}'",
"items": {
"type": "string",
"enum": [
"Clean",
"Compile",
"CopyFiles",
"CreatePackage",
"Default",
"Package",
"PrePublish",
"Publish",
"PublishPackage",
"PublishPreRelease",
"PublishRelease",
"Restore",
"RunUnitTests"
]
}
},
"Verbosity": {
"type": "string",
"description": "Logging verbosity during build execution. Default is 'Normal'",
"enum": [
"Minimal",
"Normal",
"Quiet",
"Verbose"
]
}
}
}
}
}
4 changes: 4 additions & 0 deletions .nuke/parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "./build.schema.json",
"Solution": "src/AngleSharp.Io.sln"
}
4 changes: 4 additions & 0 deletions .nuke/temp/build-attempt.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
77a74fac8e4ce00c1d0fbd53c441f1ea
Restore
Compile
RunUnitTests
29 changes: 29 additions & 0 deletions .nuke/temp/build.2023-01-15_01-27-08.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
V | | ArgumentsFromParametersFile.OnBuildCreated (150)
V | | Passing value for Build.Solution (src/AngleSharp.Io.sln)
V | | InjectParameterValues.OnBuildCreated (100)
V | | HandleShellCompletion.OnBuildCreated (75)
V | | GenerateBuildServerConfigurations.OnBuildCreated (50)
V | | InvokeBuildServerConfigurationGeneration.OnBuildCreated (45)
V | | UpdateNotification.OnBuildCreated (10)
V | | UnsetVisualStudioEnvironmentVariables.OnBuildCreated (0)
V | | HandleVisualStudioDebugging.OnBuildCreated (0)
V | | HandleSingleFileExecution.OnBuildCreated (-50)
V | | EventInvoker.OnBuildCreated (-3.4028235E+38)
V | | HandleHelpRequests.OnBuildInitialized (5)
V | | Telemetry.OnBuildInitialized (0)
V | | InjectNonParameterValues.OnBuildInitialized (-100)
V | | EventInvoker.OnBuildInitialized (-3.4028235E+38)
D | | Reading ChangeLog E:\Code\AngleSharp\AngleSharp.Io\CHANGELOG.md...
D | | Using LastestVersion from ChangeLog: 1.0.0
I | | Building version: 1.0.0
V | | Target-unrelated exception was thrown
System.ArgumentException: TargetProject could not be loaded!
at Nuke.Common.Assert.NotNull[T](T obj, String message, String argumentExpression) in /_/source/Nuke.Common/Assert.cs:line 61
at Build.OnBuildInitialized() in E:\Code\AngleSharp\AngleSharp.Io\nuke\Build.cs:line 103
at Nuke.Common.Execution.EventInvoker.OnBuildInitialized(NukeBuild build, IReadOnlyCollection`1 executableTargets, IReadOnlyCollection`1 executionPlan) in /_/source/Nuke.Common/Execution/EventInvoker.cs:line 27
at Nuke.Common.Utilities.Collections.EnumerableExtensions.ForEach[T](IEnumerable`1 enumerable, Action`1 action) in /_/source/Nuke.Common/Utilities/Collections/Enumerable.ForEach.cs:line 17
at Nuke.Common.NukeBuild.ExecuteExtension[TExtension](Expression`1 action)
at Nuke.Common.Execution.BuildManager.Execute[T](Expression`1[] defaultTargetExpressions) in /_/source/Nuke.Common/Execution/BuildManager.cs:line 58
V | | UpdateNotification.OnBuildFinished (10)
V | | SerializeBuildServerState.OnBuildFinished (0)
V | | EventInvoker.OnBuildFinished (-3.4028235E+38)
29 changes: 29 additions & 0 deletions .nuke/temp/build.2023-01-15_01-29-22.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
V | | ArgumentsFromParametersFile.OnBuildCreated (150)
V | | Passing value for Build.Solution (src/AngleSharp.Io.sln)
V | | InjectParameterValues.OnBuildCreated (100)
V | | HandleShellCompletion.OnBuildCreated (75)
V | | GenerateBuildServerConfigurations.OnBuildCreated (50)
V | | InvokeBuildServerConfigurationGeneration.OnBuildCreated (45)
V | | UpdateNotification.OnBuildCreated (10)
V | | UnsetVisualStudioEnvironmentVariables.OnBuildCreated (0)
V | | HandleVisualStudioDebugging.OnBuildCreated (0)
V | | HandleSingleFileExecution.OnBuildCreated (-50)
V | | EventInvoker.OnBuildCreated (-3.4028235E+38)
V | | HandleHelpRequests.OnBuildInitialized (5)
V | | Telemetry.OnBuildInitialized (0)
V | | InjectNonParameterValues.OnBuildInitialized (-100)
V | | EventInvoker.OnBuildInitialized (-3.4028235E+38)
D | | Reading ChangeLog E:\Code\AngleSharp\AngleSharp.Io\CHANGELOG.md...
D | | Using LastestVersion from ChangeLog: 1.0.0
I | | Building version: 1.0.0
V | | Target-unrelated exception was thrown
System.ArgumentException: TargetProject could not be loaded!
at Nuke.Common.Assert.NotNull[T](T obj, String message, String argumentExpression) in /_/source/Nuke.Common/Assert.cs:line 61
at Build.OnBuildInitialized() in E:\Code\AngleSharp\AngleSharp.Io\nuke\Build.cs:line 103
at Nuke.Common.Execution.EventInvoker.OnBuildInitialized(NukeBuild build, IReadOnlyCollection`1 executableTargets, IReadOnlyCollection`1 executionPlan) in /_/source/Nuke.Common/Execution/EventInvoker.cs:line 27
at Nuke.Common.Utilities.Collections.EnumerableExtensions.ForEach[T](IEnumerable`1 enumerable, Action`1 action) in /_/source/Nuke.Common/Utilities/Collections/Enumerable.ForEach.cs:line 17
at Nuke.Common.NukeBuild.ExecuteExtension[TExtension](Expression`1 action)
at Nuke.Common.Execution.BuildManager.Execute[T](Expression`1[] defaultTargetExpressions) in /_/source/Nuke.Common/Execution/BuildManager.cs:line 58
V | | UpdateNotification.OnBuildFinished (10)
V | | SerializeBuildServerState.OnBuildFinished (0)
V | | EventInvoker.OnBuildFinished (-3.4028235E+38)
71 changes: 71 additions & 0 deletions .nuke/temp/build.2023-01-15_01-30-03.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
V | | ArgumentsFromParametersFile.OnBuildCreated (150)
V | | Passing value for Build.Solution (src/AngleSharp.Io.sln)
V | | InjectParameterValues.OnBuildCreated (100)
V | | HandleShellCompletion.OnBuildCreated (75)
V | | GenerateBuildServerConfigurations.OnBuildCreated (50)
V | | InvokeBuildServerConfigurationGeneration.OnBuildCreated (45)
V | | UpdateNotification.OnBuildCreated (10)
V | | UnsetVisualStudioEnvironmentVariables.OnBuildCreated (0)
V | | HandleVisualStudioDebugging.OnBuildCreated (0)
V | | HandleSingleFileExecution.OnBuildCreated (-50)
V | | EventInvoker.OnBuildCreated (-3.4028235E+38)
V | | HandleHelpRequests.OnBuildInitialized (5)
V | | Telemetry.OnBuildInitialized (0)
V | | InjectNonParameterValues.OnBuildInitialized (-100)
V | | EventInvoker.OnBuildInitialized (-3.4028235E+38)
D | | Reading ChangeLog E:\Code\AngleSharp\AngleSharp.Io\CHANGELOG.md...
D | | Using LastestVersion from ChangeLog: 1.0.0
I | | Building version: 1.0.0
I | | Target Framework(s): ["netstandard2.0", "net461", "net472", "net6.0", "net7.0"]
V | Restore | EventInvoker.OnTargetRunning (-3.4028235E+38)
I | Restore | > "C:\Program Files\dotnet\dotnet.exe" restore E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.sln
D | Restore | Determining projects to restore...
D | Restore | Restored E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\AngleSharp.Io.csproj (in 230 ms).
D | Restore | Restored E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.Tests\AngleSharp.Io.Tests.csproj (in 1,51 sec).
V | Restore | Telemetry.OnTargetSucceeded (0)
V | Restore | EventInvoker.OnTargetSucceeded (-3.4028235E+38)
V | Compile | EventInvoker.OnTargetRunning (-3.4028235E+38)
I | Compile | > "C:\Program Files\dotnet\dotnet.exe" build E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.sln --configuration Debug --no-restore
D | Compile | MSBuild version 17.4.0+18d5aef85 for .NET
W | Compile | E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\Network\FtpRequester.cs(21,17): warning SYSLIB0014: 'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' [E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\AngleSharp.Io.csproj::TargetFramework=net6.0]
W | Compile | E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\Network\FileRequester.cs(21,17): warning SYSLIB0014: 'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' [E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\AngleSharp.Io.csproj::TargetFramework=net6.0]
W | Compile | E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\Network\FtpRequester.cs(21,17): warning SYSLIB0014: 'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' [E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\AngleSharp.Io.csproj::TargetFramework=net7.0]
W | Compile | E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\Network\FileRequester.cs(21,17): warning SYSLIB0014: 'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' [E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\AngleSharp.Io.csproj::TargetFramework=net7.0]
D | Compile | AngleSharp.Io -> E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\bin\Debug\net7.0\AngleSharp.Io.dll
D | Compile | AngleSharp.Io -> E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\bin\Debug\net461\AngleSharp.Io.dll
D | Compile | AngleSharp.Io -> E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\bin\Debug\net472\AngleSharp.Io.dll
D | Compile | AngleSharp.Io -> E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\bin\Debug\net6.0\AngleSharp.Io.dll
D | Compile | AngleSharp.Io -> E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\bin\Debug\netstandard2.0\AngleSharp.Io.dll
W | Compile | E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.Tests\Network\HttpClientRequesterTests.cs(37,13): warning CS0618: 'HttpRequestMessage.Properties' is obsolete: 'HttpRequestMessage.Properties has been deprecated. Use Options instead.' [E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.Tests\AngleSharp.Io.Tests.csproj::TargetFramework=net6.0]
W | Compile | E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.Tests\Network\HttpClientRequesterTests.cs(56,13): warning CS0618: 'HttpRequestMessage.Properties' is obsolete: 'HttpRequestMessage.Properties has been deprecated. Use Options instead.' [E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.Tests\AngleSharp.Io.Tests.csproj::TargetFramework=net6.0]
D | Compile | AngleSharp.Io.Tests -> E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.Tests\bin\Debug\net6.0\AngleSharp.Io.Tests.dll
D | Compile |
D | Compile | Build succeeded.
D | Compile |
W | Compile | E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\Network\FtpRequester.cs(21,17): warning SYSLIB0014: 'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' [E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\AngleSharp.Io.csproj::TargetFramework=net6.0]
W | Compile | E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\Network\FileRequester.cs(21,17): warning SYSLIB0014: 'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' [E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\AngleSharp.Io.csproj::TargetFramework=net6.0]
W | Compile | E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\Network\FtpRequester.cs(21,17): warning SYSLIB0014: 'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' [E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\AngleSharp.Io.csproj::TargetFramework=net7.0]
W | Compile | E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\Network\FileRequester.cs(21,17): warning SYSLIB0014: 'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' [E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io\AngleSharp.Io.csproj::TargetFramework=net7.0]
W | Compile | E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.Tests\Network\HttpClientRequesterTests.cs(37,13): warning CS0618: 'HttpRequestMessage.Properties' is obsolete: 'HttpRequestMessage.Properties has been deprecated. Use Options instead.' [E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.Tests\AngleSharp.Io.Tests.csproj::TargetFramework=net6.0]
W | Compile | E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.Tests\Network\HttpClientRequesterTests.cs(56,13): warning CS0618: 'HttpRequestMessage.Properties' is obsolete: 'HttpRequestMessage.Properties has been deprecated. Use Options instead.' [E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.Tests\AngleSharp.Io.Tests.csproj::TargetFramework=net6.0]
D | Compile | 6 Warning(s)
D | Compile | 0 Error(s)
D | Compile |
D | Compile | Time Elapsed 00:00:01.83
V | Compile | Telemetry.OnTargetSucceeded (0)
V | Compile | EventInvoker.OnTargetSucceeded (-3.4028235E+38)
V | RunUnitTests | EventInvoker.OnTargetRunning (-3.4028235E+38)
I | RunUnitTests | > "C:\Program Files\dotnet\dotnet.exe" test E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.sln --configuration Debug --no-build --no-restore
D | RunUnitTests | Test run for E:\Code\AngleSharp\AngleSharp.Io\src\AngleSharp.Io.Tests\bin\Debug\net6.0\AngleSharp.Io.Tests.dll (.NETCoreApp,Version=v6.0)
D | RunUnitTests | Microsoft (R) Test Execution Command Line Tool Version 17.4.0 (x64)
D | RunUnitTests | Copyright (c) Microsoft Corporation. All rights reserved.
D | RunUnitTests |
D | RunUnitTests | Starting test execution, please wait...
D | RunUnitTests | A total of 1 test files matched the specified pattern.
D | RunUnitTests | Skipped SettingCookieIsPreservedViaRedirect [< 1 ms]
D | RunUnitTests | Skipped SettingCookieIsPreservedViaRedirect [< 1 ms]
D | RunUnitTests | Skipped SettingCookieIsPreservedViaRedirectToDifferentProtocol [< 1 ms]
D | RunUnitTests |
D | RunUnitTests | Passed! - Failed: 0, Passed: 102, Skipped: 3, Total: 105, Duration: 14 s - AngleSharp.Io.Tests.dll (net6.0)
V | RunUnitTests | Telemetry.OnTargetSucceeded (0)
V | RunUnitTests | EventInvoker.OnTargetSucceeded (-3.4028235E+38)
Loading

0 comments on commit 46df1e3

Please sign in to comment.