.NET core extensions
dotnet new console --use-program-main -n test
cd test
dotnet add package netcore-ext
dotnet run
-
copy usings.ext.cs global usings to the source folder
using SearchAThing.Ext;
using static SearchAThing.Ext.Toolkit;
dotnet test
- to debug from vscode just run debug test from code lens balloon
mkdir netcore-ext
cd netcore-ext
mkdir -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
Configured through Settings/Pages on Branch docs ( path /docs ).
- while main branch exclude "docs" with .gitignore the docs branch doesn't
./doc build
./doc serve
./doc view
./doc commit