BSW.Core
2024.2.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package BSW.Core --version 2024.2.2
NuGet\Install-Package BSW.Core -Version 2024.2.2
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.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BSW.Core --version 2024.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BSW.Core, 2024.2.2"
#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.2.2 // Install BSW.Core as a Cake Tool #tool nuget:?package=BSW.Core&version=2024.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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. 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. |
.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.
-
.NETStandard 2.1
- BSW.Core.Abstraction (>= 2024.1.30)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
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.11.27 | 128 | 11/27/2024 |
2024.11.26 | 82 | 11/26/2024 |
2024.8.8 | 184 | 8/8/2024 |
2024.7.4 | 154 | 7/4/2024 |
2024.6.11 | 128 | 6/12/2024 |
2024.5.29 | 119 | 5/30/2024 |
2024.5.28 | 340 | 5/28/2024 |
2024.5.22 | 166 | 5/22/2024 |
2024.5.10 | 119 | 5/10/2024 |
2024.2.2 | 196 | 2/2/2024 |
2024.1.30 | 126 | 1/31/2024 |
2023.12.30 | 261 | 1/1/2024 |
2023.12.22 | 153 | 12/22/2023 |
2023.12.21 | 155 | 12/21/2023 |
2023.12.15 | 228 | 12/15/2023 |
2023.10.7 | 163 | 10/5/2023 |
2023.10.6 | 157 | 10/5/2023 |
2023.10.5 | 153 | 10/4/2023 |
2023.10.4 | 148 | 10/4/2023 |
2023.10.3 | 137 | 10/3/2023 |
2023.9.20 | 162 | 9/21/2023 |
2023.9.19 | 138 | 9/20/2023 |
2023.9.13 | 137 | 9/20/2023 |
2023.8.23 | 292 | 8/24/2023 |
2023.8.16 | 178 | 8/16/2023 |
2023.8.3 | 270 | 8/3/2023 |
2023.7.26 | 227 | 8/3/2023 |
2022.9.15 | 722 | 9/15/2022 |
2022.5.13 | 433 | 5/13/2022 |
2022.5.3 | 434 | 5/3/2022 |
2022.2.25 | 1,258 | 2/25/2022 |
2022.2.22 | 424 | 2/22/2022 |
2022.2.15 | 423 | 2/15/2022 |
2022.2.14 | 428 | 2/15/2022 |
2022.1.31 | 1,368 | 2/1/2022 |
2021.12.30 | 291 | 1/6/2022 |
2021.12.26.3 | 287 | 12/26/2021 |
2021.12.14 | 318 | 12/14/2021 |
2021.12.10 | 309 | 12/10/2021 |
2021.10.5 | 328 | 10/5/2021 |
2021.1.3 | 435 | 1/3/2021 |
2021.1.1 | 423 | 1/2/2021 |