10 Commits
1.7.8 ... main

5 changed files with 78 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ on:
jobs: jobs:
build: build:
name: Build name: Build
runs-on: linux
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
@@ -27,3 +28,5 @@ jobs:
run: dotnet restore run: dotnet restore
- name: Build - name: Build
run: dotnet build --no-restore run: dotnet build --no-restore
- name: Create NuGet package
run: dotnet pack -c Debug --output ./

View File

@@ -1,4 +1,4 @@
name: Build and publish app name: Build and publish package
on: on:
workflow_dispatch: workflow_dispatch:
@@ -13,6 +13,7 @@ on:
jobs: jobs:
build: build:
name: Build name: Build
runs-on: linux
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
@@ -26,6 +27,7 @@ jobs:
run: dotnet build --no-restore run: dotnet build --no-restore
version: version:
name: Determine version name: Determine version
runs-on: linux
needs: build needs: build
steps: steps:
- name: Checkout - name: Checkout
@@ -49,6 +51,7 @@ jobs:
version: ${{ steps.gitversion.outputs.SemVer }} version: ${{ steps.gitversion.outputs.SemVer }}
pack: pack:
name: Pack name: Pack
runs-on: linux
needs: version needs: version
steps: steps:
- name: Checkout - name: Checkout
@@ -68,6 +71,7 @@ jobs:
version: ${{needs.version.outputs.version}} version: ${{needs.version.outputs.version}}
publish: publish:
name: Publish name: Publish
runs-on: linux
needs: pack needs: pack
steps: steps:
- name: Download artifact - name: Download artifact

View File

@@ -8,6 +8,13 @@
--- ---
## Informations
> [!Important]
> **For Github users:**
>
> This is only mirror repository. All changes are first uploaded to the repository <a href="https://repos.mateuszskoczek.com/SimpleToolkit/SimpleToolkit.Extensions">here</a>. Releases are also published on original repository. However, Github repository handles issues and pull requests for better accessibility.
## NuGet registry status ## NuGet registry status
<table> <table>
@@ -115,7 +122,7 @@ dotnet add package SimpleToolkit.Extensions
**Package reference in .csproj file:** **Package reference in .csproj file:**
``` ```
<PackageReference Include="SimpleToolkit.Extensions" Version="*.*.*" /> <PackageReference Include="SimpleToolkit.Extensions" Version="<version>" />
``` ```
## Attribution and contribution ## Attribution and contribution

View File

@@ -0,0 +1,58 @@
# SimpleToolkit.Extensions
### Set of helpers, class extensions, UI controls used in my other C# projects
SimpleToolkit is package of useful classes, helpers, extensions and UI controls, I use in my C# projects. Extensions subpackage contains classes extensions.
---
## NuGet registry status
| Subpackage | Status |
|-----------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **SimpleToolkit.Extensions** | [![NuGet version (SimpleToolkit.Extensions)](https://img.shields.io/nuget/v/SimpleToolkit.Extensions.svg?style=flat-square)](https://www.nuget.org/packages/SimpleToolkit.Extensions/) |
| SimpleToolkit.Attributes | [![NuGet version (SimpleToolkit.Attributes)](https://img.shields.io/nuget/v/SimpleToolkit.Attributes.svg?style=flat-square)](https://www.nuget.org/packages/SimpleToolkit.Attributes/) |
| SimpleToolkit.MVVM | [![NuGet version (SimpleToolkit.MVVM)](https://img.shields.io/nuget/v/SimpleToolkit.MVVM.svg?style=flat-square)](https://www.nuget.org/packages/SimpleToolkit.MVVM/) |
| SimpleToolkit.UI.Models | [![NuGet version (SimpleToolkit.UI.Models)](https://img.shields.io/nuget/v/SimpleToolkit.UI.Models.svg?style=flat-square)](https://www.nuget.org/packages/SimpleToolkit.UI.Models/) |
| SimpleToolkit.UI.WinUI.Behaviors | [![NuGet version (SimpleToolkit.UI.WinUI.Behaviors)](https://img.shields.io/nuget/v/SimpleToolkit.UI.WinUI.Behaviors.svg?style=flat-square)](https://www.nuget.org/packages/SimpleToolkit.UI.WinUI.Behaviors/) |
| SimpleToolkit.UI.WinUI.Converters | [![NuGet version (SimpleToolkit.UI.WinUI.Converters)](https://img.shields.io/nuget/v/SimpleToolkit.UI.WinUI.Converters.svg?style=flat-square)](https://www.nuget.org/packages/SimpleToolkit.UI.WinUI.Converters/) |
| SimpleToolkit.UI.WinUI.Controls | [![NuGet version (SimpleToolkit.UI.WinUI.Controls)](https://img.shields.io/nuget/v/SimpleToolkit.UI.WinUI.Controls.svg?style=flat-square)](https://www.nuget.org/packages/SimpleToolkit.UI.WinUI.Controls/) |
| SimpleToolkit.UI.WinUI.Helpers | [![NuGet version (SimpleToolkit.UI.WinUI.Helpers)](https://img.shields.io/nuget/v/SimpleToolkit.UI.WinUI.Helpers.svg?style=flat-square)](https://www.nuget.org/packages/SimpleToolkit.UI.WinUI.Helpers/) |
## Features
- **StringExtensions**
- *(static)* **CreateRandom** - returns random string
- **Shuffle** - returns shuffled string
- **HttpClientExtensions**
- **DownloadAsync** - allows to track progress of downloading data
- **StreamExtensions**
- **CopyToAsync** - allows to track progress of copying data
- **IEnumerableExtensions**
- **Random** - returns random item from IEnumerable
## Installation and usage
You can download package from official NuGet registry or .nupkg file itself from Releases tab.
**CLI:**
```
dotnet add package SimpleToolkit.Extensions
```
**Package reference in .csproj file:**
```
<PackageReference Include="SimpleToolkit.Extensions" Version="<version>" />
```
## Attribution and contribution
This project is open source on MIT License, so you can just copy and upload again to your repository. But according to the license, you must include information about the original author. You can find license [here](https://repos.mateuszskoczek.com/SimpleToolkit/SimpleToolkit.Extensions/src/branch/main/LICENSE).
However, the preferred way to contribute would be to propose improvements in a pull request, through issues, or through other means of communication.
**Other sources:**
- Icon by [Icons8](icons8.com)

View File

@@ -12,6 +12,7 @@
<PackageIcon>icon.png</PackageIcon> <PackageIcon>icon.png</PackageIcon>
<RepositoryUrl>https://repos.mateuszskoczek.com/SimpleToolkit/SimpleToolkit.Extensions</RepositoryUrl> <RepositoryUrl>https://repos.mateuszskoczek.com/SimpleToolkit/SimpleToolkit.Extensions</RepositoryUrl>
<Description>Set of helpers, class extensions, UI controls used in my other C# projects - Class extensions </Description> <Description>Set of helpers, class extensions, UI controls used in my other C# projects - Class extensions </Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@@ -19,10 +20,9 @@
<Pack>True</Pack> <Pack>True</Pack>
<PackagePath></PackagePath> <PackagePath></PackagePath>
</None> </None>
<None Include="..\README.md"> <None Update="README.md">
<Pack>True</Pack> <Pack>True</Pack>
<PackagePath>\</PackagePath> <PackagePath></PackagePath>
</None> </None>
</ItemGroup> </ItemGroup>
</Project> </Project>