Skip to content

kougen/dotnet-core

Repository files navigation

Project Banner

C# Tools Library

joshika39.Core meant to enhance the basic C# functionalities, like the Console.Readline or storing data in json format. The project is actively being updated. If you have any enchantment idea create an Enhancement Issue or a Bug on that matter.

Stats

Nuget (with prereleases) CI-CD Quality Gate Status Code Smells Coverage

Setting up

As a package

  • Download the Core package from nuget.org via any Nuget package manager
  • Downlaod it from github.com via any Nuget package manager

How to start

First you have to create a new ServiceCollection and then create an instance from the CoreModule class.

Then call the LoadModules function of the CoreModule class with the desired namespace.

NOTE: The namespace is the scope of your project which uses the joshika39.Core package

Finally you can use the implementations from the result of the collection.BuildServiceProvider() which has a type of IServiceProvider

Example

var collection = new ServiceCollection();  
new CoreModule().LoadModules(collection, "reader-tests"); 

var provider = collection.BuildServiceProvider();

Check the Wiki for further details.

Features

  • Console functionalities
  • Json functionalities
  • File functionalities
  • String functionalities