https://github.com/iowacomputergurus/aspnetcore.utilities
A collection of helpful utilities for working with ASP.NET Core projects. These items are used by the IowaComputerGurus Team to aid in unit testing and other common tasks
https://github.com/iowacomputergurus/aspnetcore.utilities
asp-net-core aspnetcore dotnet-core hacktoberfest
Last synced: 9 months ago
JSON representation
A collection of helpful utilities for working with ASP.NET Core projects. These items are used by the IowaComputerGurus Team to aid in unit testing and other common tasks
- Host: GitHub
- URL: https://github.com/iowacomputergurus/aspnetcore.utilities
- Owner: IowaComputerGurus
- License: mit
- Created: 2019-01-02T08:18:00.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2024-12-02T06:29:49.000Z (about 1 year ago)
- Last Synced: 2024-12-10T01:44:55.010Z (about 1 year ago)
- Topics: asp-net-core, aspnetcore, dotnet-core, hacktoberfest
- Language: C#
- Homepage:
- Size: 230 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# aspnetcore.utilities 

 
[](https://sonarcloud.io/summary/new_code?id=IowaComputerGurus_aspnetcore.utilities)
[](https://sonarcloud.io/summary/new_code?id=IowaComputerGurus_aspnetcore.utilities)
[](https://sonarcloud.io/summary/new_code?id=IowaComputerGurus_aspnetcore.utilities)
[](https://sonarcloud.io/summary/new_code?id=IowaComputerGurus_aspnetcore.utilities)
[](https://sonarcloud.io/summary/new_code?id=IowaComputerGurus_aspnetcore.utilities)
[](https://sonarcloud.io/summary/new_code?id=IowaComputerGurus_aspnetcore.utilities)
A collection of helpful utilities for working with ASP.NET Core projects. These items are common rules, tag helpers and similar that our team has found valuable.
## Breaking Change with 5.1
A number of elements have been moved to the sister netcore project.
## Usage
### Installation
Install from NuGet
``` powershell
Install-Package ICG.AspNetCore.Utilities
```
### Register Dependencies
To utilize the tag helpers modify `_viewimports.cshtml` by adding
``` html+razor
@addTagHelper *, AspNetCore.Utilities
```
**Caution:** As expected the use of both ForceNonWwwRewriteRule and ForceWwwRewriteRule in the same installation will result in broken sites.
### Included Tag Helpers
#### HideCondition
This tag helper will hide the content of the target element if the condition is true, an example.
``` html
```
#### Show Condition
This tag helper will show the content of the target element if the condition is true, an example.
``` html
```