BSW.Core 2024.5.29

dotnet add package BSW.Core --version 2024.5.29
NuGet\Install-Package BSW.Core -Version 2024.5.29
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="BSW.Core" Version="2024.5.29" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BSW.Core --version 2024.5.29
#r "nuget: BSW.Core, 2024.5.29"
#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 BSW.Core as a Cake Addin
#addin nuget:?package=BSW.Core&version=2024.5.29

// Install BSW.Core as a Cake Tool
#tool nuget:?package=BSW.Core&version=2024.5.29

BSW.Core

Diagnostic

Log

  • DiagnosticInfoLog
  • DiagnosticDebugLog
  • DiagnosticTraceLog
using (new DiagnosticInfoLog(_logger, "My Action"))
{
    //your code
}

or

using (_logger.DiagnosticDebugLog("My Action"))

This generates two info-log entries

  • My Action
  • My Action - done | 2m

Add params

using (new DiagnosticInfoLog(_logger, "My Action {UserName}", true, user.Name))

or

using (_logger.DiagnosticDebugLog("My Action {UserName}", true, user.Name))

Deactivate time measurement

using (new DiagnosticInfoLog(_logger, "My Action", false))

or

using (_logger.DiagnosticDebugLog("My Action {UserName}", false, user.Name))

Utility

EnumUtility

enum TestEnum
{
    [Description("Letter A")]
    a =1,
    [Description("Letter B")]
    b = 2,
    ab = 3
}

Get the Description from the enum

EnumUtility.GetDescriptionFromEnumValue(TestEnum.a) //returns "Letter A" > Description attribut

EnumUtility.GetDescriptionFromEnumValue(TestEnum.ab) //returns "ab"  > fallback to enum value

Get the enum from a Description

EnumUtility.GetValueFromDescription<TestEnum>("Letter B") //returns TestEnum.b > resolved by Description attribut

EnumUtility.GetValueFromDescription<TestEnum>("ab") //returns TestEnum.ab > fallback to enum value
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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 BSW.Core:

Package Downloads
BSW.Core.Mvvm

Package Description

BSW.WPF.Core

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2024.5.29 36 5/30/2024
2024.5.28 125 5/28/2024
2024.5.22 97 5/22/2024
2024.5.10 80 5/10/2024
2024.2.2 142 2/2/2024
2024.1.30 88 1/31/2024
2023.12.30 205 1/1/2024
2023.12.22 118 12/22/2023
2023.12.21 107 12/21/2023
2023.12.15 163 12/15/2023
2023.10.7 129 10/5/2023
2023.10.6 119 10/5/2023
2023.10.5 119 10/4/2023
2023.10.4 115 10/4/2023
2023.10.3 100 10/3/2023
2023.9.20 126 9/21/2023
2023.9.19 99 9/20/2023
2023.9.13 103 9/20/2023
2023.8.23 222 8/24/2023
2023.8.16 143 8/16/2023
2023.8.3 219 8/3/2023
2023.7.26 176 8/3/2023
2022.9.15 668 9/15/2022
2022.5.13 393 5/13/2022
2022.5.3 402 5/3/2022
2022.2.25 1,180 2/25/2022
2022.2.22 389 2/22/2022
2022.2.15 403 2/15/2022
2022.2.14 393 2/15/2022
2022.1.31 1,282 2/1/2022
2021.12.30 255 1/6/2022
2021.12.26.3 243 12/26/2021
2021.12.14 286 12/14/2021
2021.12.10 274 12/10/2021
2021.10.5 292 10/5/2021
2021.1.3 402 1/3/2021
2021.1.1 387 1/2/2021