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

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

License

Notifications You must be signed in to change notification settings

wittdennis/DotnetEnvironment

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages