BSW.Core
2024.5.29
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.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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
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. |
.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.5.28)
- 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.8.8 | 133 | 8/8/2024 |
2024.7.4 | 136 | 7/4/2024 |
2024.6.11 | 118 | 6/12/2024 |
2024.5.29 | 108 | 5/30/2024 |
2024.5.28 | 291 | 5/28/2024 |
2024.5.22 | 158 | 5/22/2024 |
2024.5.10 | 109 | 5/10/2024 |
2024.2.2 | 188 | 2/2/2024 |
2024.1.30 | 118 | 1/31/2024 |
2023.12.30 | 255 | 1/1/2024 |
2023.12.22 | 147 | 12/22/2023 |
2023.12.21 | 149 | 12/21/2023 |
2023.12.15 | 222 | 12/15/2023 |
2023.10.7 | 157 | 10/5/2023 |
2023.10.6 | 151 | 10/5/2023 |
2023.10.5 | 147 | 10/4/2023 |
2023.10.4 | 142 | 10/4/2023 |
2023.10.3 | 131 | 10/3/2023 |
2023.9.20 | 156 | 9/21/2023 |
2023.9.19 | 130 | 9/20/2023 |
2023.9.13 | 129 | 9/20/2023 |
2023.8.23 | 286 | 8/24/2023 |
2023.8.16 | 172 | 8/16/2023 |
2023.8.3 | 264 | 8/3/2023 |
2023.7.26 | 220 | 8/3/2023 |
2022.9.15 | 714 | 9/15/2022 |
2022.5.13 | 425 | 5/13/2022 |
2022.5.3 | 426 | 5/3/2022 |
2022.2.25 | 1,249 | 2/25/2022 |
2022.2.22 | 416 | 2/22/2022 |
2022.2.15 | 415 | 2/15/2022 |
2022.2.14 | 418 | 2/15/2022 |
2022.1.31 | 1,360 | 2/1/2022 |
2021.12.30 | 283 | 1/6/2022 |
2021.12.26.3 | 279 | 12/26/2021 |
2021.12.14 | 310 | 12/14/2021 |
2021.12.10 | 301 | 12/10/2021 |
2021.10.5 | 320 | 10/5/2021 |
2021.1.3 | 427 | 1/3/2021 |
2021.1.1 | 414 | 1/2/2021 |