TradeWindsCommon 1.0.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package TradeWindsCommon --version 1.0.0.1                
NuGet\Install-Package TradeWindsCommon -Version 1.0.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TradeWindsCommon" Version="1.0.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TradeWindsCommon --version 1.0.0.1                
#r "nuget: TradeWindsCommon, 1.0.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TradeWindsCommon as a Cake Addin
#addin nuget:?package=TradeWindsCommon&version=1.0.0.1

// Install TradeWindsCommon as a Cake Tool
#tool nuget:?package=TradeWindsCommon&version=1.0.0.1                

TradeWindsCommon

These are some basic classes I use throughout my code, including in some of my other NuGet projects.

This is under the MIT license. If you find this very useful I ask (not a requirement) that you consider reading my book I DON’T KNOW WHAT I’M DOING!: How a Programmer Became a Successful Startup CEO.

And if you like it, please review it on Amazon and/or GoodReads. The number of legitimate reviews helps a lot. Much appreciated.

Extensions

These are some classes I created to extend a number of basic classes.

The StringExtensions has some pretty specific methods that we use to extract metadata from search strings. Included here because this is used by many apps for their tags, etc. It can extract [tag], {tag}, (tag), and @tag from a string. The @tag does not allow spaces (the space is the end delimiter).

Debug

Trap() is a construct I discuss in my book No Bugs! Basically you place this when you write new code, at the entry to each function, inside every if, else, where, case, etc.

When you first run that new code it will drop you in to the debugger at each trap. Mark that Trap() to be deleted and then single step through the new code. 90% of the time the code is fine. 10% of the time the code will do something unexpected and you can then fix the issue.

The way I mark the traps I hit is to put a * at the beginning of that line

*     Trap();

That way the line numbers don't change so the debugger is in sync with the source code. But when your debug session is complete, a compile will fail until you remove those traps you've now walked through.

Unit Tests

Not all of these have unit tests. But all have been tested thoroughly in use in our applications.

And some, like DoubleFinish and ConfigurationUtils can only be well tested in use in a Blazor application.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on TradeWindsCommon:

Package Downloads
TradeWindsLoggerProvider

LoggerProviders: for File and Azure Blob sinks

InvitationBuilder

Provides a single object that will create invitations for .ICS, Outlook, Google, etc.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0.3 140 10/3/2024
1.0.0.2 101 10/3/2024
1.0.0.1 95 10/3/2024