BSW.Core 2025.2.18

dotnet add package BSW.Core --version 2025.2.18
                    
NuGet\Install-Package BSW.Core -Version 2025.2.18
                    
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="2025.2.18" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BSW.Core" Version="2025.2.18" />
                    
Directory.Packages.props
<PackageReference Include="BSW.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BSW.Core --version 2025.2.18
                    
#r "nuget: BSW.Core, 2025.2.18"
                    
#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.
#:package BSW.Core@2025.2.18
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BSW.Core&version=2025.2.18
                    
Install as a Cake Addin
#tool nuget:?package=BSW.Core&version=2025.2.18
                    
Install as a Cake Tool

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 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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
2025.2.18 239 2/18/2025
2025.2.5 143 2/5/2025
2024.11.27 219 11/27/2024
2024.11.26 128 11/26/2024
2024.8.8 229 8/8/2024
2024.7.4 195 7/4/2024
2024.6.11 168 6/12/2024
2024.5.29 157 5/30/2024
2024.5.28 407 5/28/2024
2024.5.22 205 5/22/2024
2024.5.10 159 5/10/2024
2024.2.2 239 2/2/2024
2024.1.30 163 1/31/2024
2023.12.30 338 1/1/2024
2023.12.22 189 12/22/2023
2023.12.21 192 12/21/2023
2023.12.15 263 12/15/2023
2023.10.7 186 10/5/2023
2023.10.6 179 10/5/2023
2023.10.5 174 10/4/2023
2023.10.4 176 10/4/2023
2023.10.3 161 10/3/2023
2023.9.20 186 9/21/2023
2023.9.19 163 9/20/2023
2023.9.13 162 9/20/2023
2023.8.23 326 8/24/2023
2023.8.16 212 8/16/2023
2023.8.3 308 8/3/2023
2023.7.26 264 8/3/2023
2022.9.15 772 9/15/2022
2022.5.13 493 5/13/2022
2022.5.3 498 5/3/2022
2022.2.25 1,325 2/25/2022
2022.2.22 490 2/22/2022
2022.2.15 492 2/15/2022
2022.2.14 498 2/15/2022
2022.1.31 1,437 2/1/2022
2021.12.30 357 1/6/2022
2021.12.26.3 358 12/26/2021
2021.12.14 383 12/14/2021
2021.12.10 378 12/10/2021
2021.10.5 395 10/5/2021
2021.1.3 517 1/3/2021
2021.1.1 505 1/2/2021