Skip to content

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

License

IowaComputerGurus/aspnetcore.utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aspnetcore.utilities

Build Status

Technical Debt Vulnerabilities Bugs Security Rating Maintainability Rating Coverage

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

Install-Package ICG.AspNetCore.Utilities

Register Dependencies

To utilize the tag helpers modify _viewimports.cshtml by adding

@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.

<div hide-condition="Model.Deleted">

</div>

Show Condition

This tag helper will show the content of the target element if the condition is true, an example.

<div show-condition="Model.Published">

</div>

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

  •  
  •  

Packages

No packages published

Languages