DevDotNetSdk 0.1.0
dotnet add package DevDotNetSdk --version 0.1.0
NuGet\Install-Package DevDotNetSdk -Version 0.1.0
<PackageReference Include="DevDotNetSdk" Version="0.1.0" />
paket add DevDotNetSdk --version 0.1.0
#r "nuget: DevDotNetSdk, 0.1.0"
// Install DevDotNetSdk as a Cake Addin #addin nuget:?package=DevDotNetSdk&version=0.1.0 // Install DevDotNetSdk as a Cake Tool #tool nuget:?package=DevDotNetSdk&version=0.1.0
DevDotNetSdk
The DevDotNetSdk
library is a collection of types and tools that are useful in implementing solutions in .NET. This library was created, because I got tired of copying and pasting the same "base class library" into every new .NET project I started.
Note: While this library is a 0.x version, expect that the shape of the library may change a bit. Once I get to a 1.0, I will use the standard symantic version practices, and major versions will indicate there was a breaking change of some type. I use these types in all my projects, so I do intend to maintain this library.
Result<TData, TError>
This type allows you to return errors as values rather than throwing exceptions. When calling methods that can throw, you would catch the exceptions and package them in some way to return them as value rather than have the exception bubble up the stack. It has an IsError
and IsOk
property that tells you whether it contains an error or value. To get the error or value, call Unwrap
and UnwrapError
. Calling unwrap on a value when the result contains an error, and visa versa, will end in the call throwing an exception.
Result<TError>
This type acts the same as the above type, but it is to be used with methods that return no value, but can result in an error.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
-
net9.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on DevDotNetSdk:
Package | Downloads |
---|---|
PromptClient
A client library for handling prompts with services like the OpenAI API. |
|
DevDotNetSdk.Templating
A simple markdown based templating solution for .NET |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.0 | 115 | 12/8/2024 |