Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devel0/netcore-ext
net core ext
https://github.com/devel0/netcore-ext
extensions netcore netstandard
Last synced: 10 days ago
JSON representation
net core ext
- Host: GitHub
- URL: https://github.com/devel0/netcore-ext
- Owner: devel0
- License: mit
- Created: 2022-12-21T20:48:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T19:24:26.000Z (8 months ago)
- Last Synced: 2024-03-14T20:42:21.582Z (8 months ago)
- Topics: extensions, netcore, netstandard
- Language: C#
- Homepage: https://devel0.github.io/netcore-ext/api/SearchAThing.Ext.html
- Size: 7.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netcore-ext
[![NuGet Badge](https://buildstats.info/nuget/netcore-ext)](https://www.nuget.org/packages/netcore-ext/)
.NET core extensions
- [API Documentation](https://devel0.github.io/netcore-ext/html/annotated.html)
- [Sources Changelog](https://github.com/devel0/netcore-ext/commits/main)
* [Quickstart](#quickstart)
* [Unit tests](#unit-tests)
* [How this project was built](#how-this-project-was-built)
* [Documentation (github pages)](#documentation-github-pages)
+ [Build and view locally](#build-and-view-locally)
+ [Build and commit into docs branch](#build-and-commit-into-docs-branch)
## Quickstart
```sh
dotnet new console --use-program-main -n test
cd test
dotnet add package netcore-ext
dotnet run
```- copy [usings.ext.cs](src/ext/usings.ext.cs) global usings to the source folder
- [extension methods](https://devel0.github.io/netcore-ext/html/class_search_a_thing_1_1_ext_1_1_ext.html)
```csharp
using SearchAThing.Ext;
```- [toolkit methods](https://devel0.github.io/netcore-ext/html/class_search_a_thing_1_1_ext_1_1_toolkit.html)
```csharp
using static SearchAThing.Ext.Toolkit;
```## Unit tests
```sh
dotnet test
```- to debug from vscode just run debug test from code lens balloon
## How this project was built
```sh
mkdir netcore-ext
cd netcore-extmkdir -p examples src/ext
cd src
dotnet new classlib -n netcore-ext -f netstandard2.1 --langVersion 11
mv netcore-ext ext
cd ..dotnet new xunit -n test
cd test
dotnet add reference ../ext/netcore-ext.csproj
# enable test coverage collectorx
# to view in vscode ( "Coverage Gutters" ext ) run `./test-coverage` then `C-S-p` Coverage Gutters: Watch
dotnet add package coverlet.collector
dotnet add package coverlet.msbuild
cd ..cd ..
dotnet new sln
dotnet sln add src/ext src/test examples/example01
dotnet build
dotnet test
```## Documentation (github pages)
Configured through Settings/Pages on Branch docs ( path /docs ).
- while main branch exclude "docs" with .gitignore the docs branch doesn't
### Build and view locally
```sh
./doc build
./doc serve
./doc view
```### Build and commit into docs branch
```sh
./doc commit
```