Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Latest commit

 

History

History
41 lines (27 loc) · 1.41 KB

README.md

File metadata and controls

41 lines (27 loc) · 1.41 KB

DotnetEnvironment

Build Status Coverage

DotnetEnvironment is an opinionated package to retrieve information about the current environment an application is running in.

How do I get started?

DotnetEnvironment is a static class that can be used to retrieve information like if the application is in development mode:

if (DotnetEnvironment.IsDevelopment)
{
    // do stuff
}

Or get a directory where your application can store its log files (cross-platform):

string logDirectory = DotnetEnvironment.GetLogDirectory();

Where can I get it?

First, install NuGet. Then, install the package by either using dotnet:

> dotnet add package Pseud0R4ndom.DotnetEnvironment

or the package manager console:

PM> Install-Package Pseud0R4ndom.DotnetEnvironment

License, etc

DotnetEnvironment is Copyright © 2022 Dennis Witt under the MIT license