-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a02cf56
commit 2dd6adf
Showing
22 changed files
with
193 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: NET | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
BuildConfig: Release | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Cancel previous builds in PR | ||
uses: styfle/[email protected] | ||
|
||
- name: 'Checkout Code' | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work. | ||
|
||
- name: 'Install .NET SDK' | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
global-json-file: ./global.json | ||
|
||
- name: Versioning | ||
uses: dotnet/nbgv@master | ||
id: nbgv | ||
|
||
- name: Version Info | ||
run: | | ||
echo 'SemVer2: ${{ steps.nbgv.outputs.SemVer2 }}' | ||
- name: Build with dotnet | ||
run: dotnet build | ||
--configuration ${{ env.BuildConfig }} | ||
/p:Version=${{ steps.nbgv.outputs.AssemblyVersion }} | ||
|
||
- name: Test with dotnet | ||
run: dotnet test | ||
|
||
- name: Pack NuGet | ||
run: dotnet pack | ||
--configuration ${{ env.BuildConfig }} | ||
/p:ContinuousIntegrationBuild=true | ||
/p:Version=${{ steps.nbgv.outputs.NuGetPackageVersion }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
namespace SchwabenCode.QuickIO; | ||
|
||
/// <summary> | ||
/// This error is raised if you want to create for example a folder which already exists. | ||
/// Represents an exception that is thrown when an operation encounters an existing directory | ||
/// that was expected to be unique or non-existent. | ||
/// </summary> | ||
/// <remarks> | ||
/// This exception is typically used in scenarios involving directory creation where | ||
/// a unique directory path is required. It provides detailed information about the conflicting | ||
/// directory path, assisting in error handling and debugging. | ||
/// </remarks> | ||
[Serializable] | ||
public class DirectoryAlreadyExistsException : QuickIOBaseException | ||
{ | ||
/// <summary> | ||
/// Creates an instance of <see cref="DirectoryAlreadyExistsException"/> | ||
/// Initializes a new instance of the <see cref="DirectoryAlreadyExistsException"/> class | ||
/// with a specified error message and the directory path that caused the exception. | ||
/// </summary> | ||
/// <param name="message">Error message</param> | ||
/// <param name="path">Affected directory path</param> | ||
/// <param name="message">The error message that explains the reason for the exception.</param> | ||
/// <param name="path">The directory path that already exists and caused the exception to be thrown.</param> | ||
public DirectoryAlreadyExistsException(string message, string path) | ||
: base(message, path) { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
using System.Diagnostics.Contracts; | ||
|
||
| ||
namespace SchwabenCode.QuickIO; | ||
|
||
/// <summary> | ||
/// Exception if path does not exist. | ||
/// Represents an exception that is thrown when an operation encounters an existing path | ||
/// that was expected to be unique or non-existent. | ||
/// </summary> | ||
/// <remarks> | ||
/// This exception is typically used in scenarios involving file or directory creation | ||
/// where a unique path is required. The exception provides detailed information about | ||
/// the conflicting path, allowing for better error handling and debugging. | ||
/// </remarks> | ||
[Serializable] | ||
public class PathAlreadyExistsException : QuickIOBaseException | ||
{ | ||
/// <summary> | ||
/// Exception if path does not exist. | ||
/// Initializes a new instance of the <see cref="PathAlreadyExistsException"/> class | ||
/// with a specified error message and the path that caused the exception. | ||
/// </summary> | ||
/// <param name="message">The error message that explains the reason for the exception.</param> | ||
/// <param name="path">The path that already exists and caused the exception to be thrown.</param> | ||
public PathAlreadyExistsException(string message, string path) | ||
: base(message, path) | ||
{ | ||
Contract.Requires(!string.IsNullOrWhiteSpace(message)); | ||
Contract.Requires(!string.IsNullOrWhiteSpace(path)); | ||
} | ||
: base(message, path) { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.