From 98dc3aa55e2f1b9bdce52496843faf3315ca8973 Mon Sep 17 00:00:00 2001 From: Mateusz Skoczek Date: Wed, 15 Apr 2026 23:01:03 +0200 Subject: [PATCH] rename --- .gitea/workflows/build.yml | 4 +- .gitea/workflows/build_publish.yml | 8 +-- LICENSE | 2 +- ... => MSEssentials.AspNetCore.Attributes.sln | 2 +- .../MSEssentials.AspNetCore.Attributes.csproj | 8 +-- MSEssentials.AspNetCore.Attributes/README.md | 56 ++++++++++++++++++ .../RequiresClaimAttribute.cs | 2 +- .../icon.png | Bin README.md | 48 +++++++-------- SimpleToolkit.Attributes/README.md | 56 ------------------ 10 files changed, 89 insertions(+), 97 deletions(-) rename SimpleToolkit.Attributes.sln => MSEssentials.AspNetCore.Attributes.sln (75%) rename SimpleToolkit.Attributes/SimpleToolkit.Attributes.csproj => MSEssentials.AspNetCore.Attributes/MSEssentials.AspNetCore.Attributes.csproj (69%) create mode 100644 MSEssentials.AspNetCore.Attributes/README.md rename {SimpleToolkit.Attributes => MSEssentials.AspNetCore.Attributes}/RequiresClaimAttribute.cs (94%) rename {SimpleToolkit.Attributes => MSEssentials.AspNetCore.Attributes}/icon.png (100%) delete mode 100644 SimpleToolkit.Attributes/README.md diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index c01d357..1fb26ef 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -5,13 +5,13 @@ on: branches: - "dev" paths: - - "SimpleToolkit.Attributes**" + - "MSEssentials.AspNetCore.Attributes**" pull_request: branches: - "dev" - "main" paths: - - "SimpleToolkit.Attributes**" + - "MSEssentials.AspNetCore.Attributes**" jobs: build: diff --git a/.gitea/workflows/build_publish.yml b/.gitea/workflows/build_publish.yml index 6a4f152..1806311 100644 --- a/.gitea/workflows/build_publish.yml +++ b/.gitea/workflows/build_publish.yml @@ -8,7 +8,7 @@ on: branches: - "main" paths: - - "SimpleToolkit.Attributes**" + - "MSEssentials.AspNetCore.Attributes**" jobs: build: @@ -66,7 +66,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: nuget - path: ./SimpleToolkit.Attributes.${{needs.version.outputs.version}}.nupkg + path: ./MSEssentials.AspNetCore.Attributes.${{needs.version.outputs.version}}.nupkg outputs: version: ${{needs.version.outputs.version}} publish: @@ -84,11 +84,11 @@ jobs: with: dotnet-version: 8.0.x - name: Publish - run: dotnet nuget push ./SimpleToolkit.Attributes.${{needs.pack.outputs.version}}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} + run: dotnet nuget push ./MSEssentials.AspNetCore.Attributes.${{needs.pack.outputs.version}}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} - name: Create Release uses: akkuman/gitea-release-action@v1 with: tag_name: ${{needs.pack.outputs.version}} name: ${{needs.pack.outputs.version}} files: |- - SimpleToolkit.Attributes.${{needs.pack.outputs.version}}.nupkg \ No newline at end of file + MSEssentials.AspNetCore.Attributes.${{needs.pack.outputs.version}}.nupkg \ No newline at end of file diff --git a/LICENSE b/LICENSE index d28fc4c..8ba3748 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2026 SimpleToolkit +Copyright (c) 2026 MSEssentials Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including diff --git a/SimpleToolkit.Attributes.sln b/MSEssentials.AspNetCore.Attributes.sln similarity index 75% rename from SimpleToolkit.Attributes.sln rename to MSEssentials.AspNetCore.Attributes.sln index f0672e6..e32b3e5 100644 --- a/SimpleToolkit.Attributes.sln +++ b/MSEssentials.AspNetCore.Attributes.sln @@ -1,6 +1,6 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleToolkit.Attributes", "SimpleToolkit.Attributes\SimpleToolkit.Attributes.csproj", "{9BE5C441-F10E-45F0-9869-33415E489A54}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSEssentials.AspNetCore.Attributes", "MSEssentials.AspNetCore.Attributes\MSEssentials.AspNetCore.Attributes.csproj", "{9BE5C441-F10E-45F0-9869-33415E489A54}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/SimpleToolkit.Attributes/SimpleToolkit.Attributes.csproj b/MSEssentials.AspNetCore.Attributes/MSEssentials.AspNetCore.Attributes.csproj similarity index 69% rename from SimpleToolkit.Attributes/SimpleToolkit.Attributes.csproj rename to MSEssentials.AspNetCore.Attributes/MSEssentials.AspNetCore.Attributes.csproj index 64bb8e2..4257b21 100644 --- a/SimpleToolkit.Attributes/SimpleToolkit.Attributes.csproj +++ b/MSEssentials.AspNetCore.Attributes/MSEssentials.AspNetCore.Attributes.csproj @@ -3,13 +3,13 @@ net8.0 enable enable - SimpleToolkit.Attributes + MSEssentials.AspNetCore.Attributes Mateusz Skoczek Mateusz Skoczek - https://repos.mateuszskoczek.com/SimpleToolkit/ - https://repos.mateuszskoczek.com/SimpleToolkit/SimpleToolkit.Attributes/src/branch/main/LICENSE + https://repos.mateuszskoczek.com/MSEssentials/ + https://repos.mateuszskoczek.com/MSEssentials/MSEssentials.AspNetCore.Attributes/src/branch/main/LICENSE icon.png - https://repos.mateuszskoczek.com/SimpleToolkit/SimpleToolkit.Attributes + https://repos.mateuszskoczek.com/MSEssentials/MSEssentials.AspNetCore.Attributes Set of helpers, class extensions, UI controls used in my other C# projects - Class, method and property attributes README.md diff --git a/MSEssentials.AspNetCore.Attributes/README.md b/MSEssentials.AspNetCore.Attributes/README.md new file mode 100644 index 0000000..627cbfa --- /dev/null +++ b/MSEssentials.AspNetCore.Attributes/README.md @@ -0,0 +1,56 @@ +# MSEssentials.AspNetCore.Attributes + +### Set of helpers, class extensions, UI controls used in my other C# projects + +MSEssentials is package of useful classes, helpers, extensions and UI controls, I use in my C# projects. Attributes subpackage contains class, method and property attributes. + +--- + +## NuGet registry status + +| Subpackage | Status | +|-----------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **MSEssentials.AspNetCore.Attributes** | [![NuGet version (MSEssentials.AspNetCore.Attributes)](https://img.shields.io/nuget/v/MSEssentials.AspNetCore.Attributes.svg?style=flat-square)](https://www.nuget.org/packages/MSEssentials.AspNetCore.Attributes/) | +| MSEssentials.Extensions | [![NuGet version (MSEssentials.Extensions)](https://img.shields.io/nuget/v/MSEssentials.Extensions.svg?style=flat-square)](https://www.nuget.org/packages/MSEssentials.Extensions/) | +| MSEssentials.UI.Common.MVVM | [![NuGet version (MSEssentials.UI.Common.MVVM)](https://img.shields.io/nuget/v/MSEssentials.UI.Common.MVVM.svg?style=flat-square)](https://www.nuget.org/packages/MSEssentials.UI.Common.MVVM/) | +| MSEssentials.UI.Common.Converters | [![NuGet version (MSEssentials.UI.Common.Converters)](https://img.shields.io/nuget/v/MSEssentials.UI.Common.Converters.svg?style=flat-square)](https://www.nuget.org/packages/MSEssentials.UI.Common.Converters/) | +| MSEssentials.UI.WinUI.Behaviors | [![NuGet version (MSEssentials.UI.WinUI.Behaviors)](https://img.shields.io/nuget/v/MSEssentials.UI.WinUI.Behaviors.svg?style=flat-square)](https://www.nuget.org/packages/MSEssentials.UI.WinUI.Behaviors/) | +| MSEssentials.UI.WinUI.Converters | [![NuGet version (MSEssentials.UI.WinUI.Converters)](https://img.shields.io/nuget/v/MSEssentials.UI.WinUI.Converters.svg?style=flat-square)](https://www.nuget.org/packages/MSEssentials.UI.WinUI.Converters/) | +| MSEssentials.UI.WinUI.Controls | [![NuGet version (MSEssentials.UI.WinUI.Controls)](https://img.shields.io/nuget/v/MSEssentials.UI.WinUI.Controls.svg?style=flat-square)](https://www.nuget.org/packages/MSEssentials.UI.WinUI.Controls/) | +| MSEssentials.UI.WinUI.Helpers | [![NuGet version (MSEssentials.UI.WinUI.Helpers)](https://img.shields.io/nuget/v/MSEssentials.UI.WinUI.Helpers.svg?style=flat-square)](https://www.nuget.org/packages/MSEssentials.UI.WinUI.Helpers/) | + +## Features + +- **RequiresClaimAttribute** - claim for ASP.NET Web API controller methods. Returns Forbidden result, when claim is not present. + +## Dependencies + +Dependencies should be installed automatically with this package + +- Microsoft.AspNetCore.Mvc.Core 2.3.0 + +## Installation and usage + +You can download package from official NuGet registry or .nupkg file itself from Releases tab. + +**CLI:** + +``` +dotnet add package MSEssentials.AspNetCore.Attributes +``` + +**Package reference in .csproj file:** + +``` + +``` + +## 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/MSEssentials/MSEssentials.AspNetCore.Attributes/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) \ No newline at end of file diff --git a/SimpleToolkit.Attributes/RequiresClaimAttribute.cs b/MSEssentials.AspNetCore.Attributes/RequiresClaimAttribute.cs similarity index 94% rename from SimpleToolkit.Attributes/RequiresClaimAttribute.cs rename to MSEssentials.AspNetCore.Attributes/RequiresClaimAttribute.cs index f124a7b..ddd183d 100644 --- a/SimpleToolkit.Attributes/RequiresClaimAttribute.cs +++ b/MSEssentials.AspNetCore.Attributes/RequiresClaimAttribute.cs @@ -7,7 +7,7 @@ using System.Security.Claims; using System.Text; using System.Threading.Tasks; -namespace SimpleToolkit.Attributes +namespace MSEssentials.AspNetCore.Attributes { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] public class RequiresClaimAttribute : Attribute, IAuthorizationFilter diff --git a/SimpleToolkit.Attributes/icon.png b/MSEssentials.AspNetCore.Attributes/icon.png similarity index 100% rename from SimpleToolkit.Attributes/icon.png rename to MSEssentials.AspNetCore.Attributes/icon.png diff --git a/README.md b/README.md index 31cb13d..64346bb 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@

-

SimpleToolkit.Attributes

+

MSEssentials.AspNetCore.Attributes

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. Attributes subpackage contains class, method and property attributes.

+

MSEssentials is package of useful classes, helpers, extensions and UI controls, I use in my C# projects. Attributes subpackage contains class, method and property attributes.

--- @@ -13,7 +13,7 @@ > [!Important] > **For Github users:** > -> This is only mirror repository. All changes are first uploaded to the repository here. Releases are also published on original repository. However, Github repository handles issues and pull requests for better accessibility. +> This is only mirror repository. All changes are first uploaded to the repository here. Releases are also published on original repository. However, Github repository handles issues and pull requests for better accessibility. ## NuGet registry status @@ -28,10 +28,10 @@ - SimpleToolkit.Attributes + MSEssentials.AspNetCore.Attributes - + @@ -41,58 +41,50 @@ - SimpleToolkit.Extensions + MSEssentials.Extensions - + - SimpleToolkit.MVVM + MSEssentials.UI.Common.MVVM - + - SimpleToolkit.UI.Models + MSEssentials.UI.Common.Converters - + - SimpleToolkit.UI.WinUI.Behaviors + MSEssentials.UI.WinUI.Behaviors - + - SimpleToolkit.UI.WinUI.Converters + MSEssentials.UI.WinUI.Converters - + - SimpleToolkit.UI.WinUI.Controls + MSEssentials.UI.WinUI.Controls - - - - - - SimpleToolkit.UI.WinUI.Helpers - - - + @@ -114,18 +106,18 @@ You can download package from official NuGet registry or .nupkg file itself from **CLI:** ``` -dotnet add package SimpleToolkit.Attributes +dotnet add package MSEssentials.AspNetCore.Attributes ``` **Package reference in .csproj file:** ``` - + ``` ## 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. +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. However, the preferred way to contribute would be to propose improvements in a pull request, through issues, or through other means of communication. diff --git a/SimpleToolkit.Attributes/README.md b/SimpleToolkit.Attributes/README.md deleted file mode 100644 index ca7ab39..0000000 --- a/SimpleToolkit.Attributes/README.md +++ /dev/null @@ -1,56 +0,0 @@ -# SimpleToolkit.Attributes - -### 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. Attributes subpackage contains class, method and property attributes. - ---- - -## NuGet registry status - -| Subpackage | Status | -|-----------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| **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.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.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 - -- **RequiresClaimAttribute** - claim for ASP.NET Web API controller methods. Returns Forbidden result, when claim is not present. - -## Dependencies - -Dependencies should be installed automatically with this package - -- Microsoft.AspNetCore.Mvc.Core 2.3.0 - -## Installation and usage - -You can download package from official NuGet registry or .nupkg file itself from Releases tab. - -**CLI:** - -``` -dotnet add package SimpleToolkit.Attributes -``` - -**Package reference in .csproj file:** - -``` - -``` - -## 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.Attributes/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) \ No newline at end of file