Standardly.Core
1.0.12.3
Prefix Reserved
dotnet add package Standardly.Core --version 1.0.12.3
NuGet\Install-Package Standardly.Core -Version 1.0.12.3
<PackageReference Include="Standardly.Core" Version="1.0.12.3" />
paket add Standardly.Core --version 1.0.12.3
#r "nuget: Standardly.Core, 1.0.12.3"
// Install Standardly.Core as a Cake Addin #addin nuget:?package=Standardly.Core&version=1.0.12.3 // Install Standardly.Core as a Cake Tool #tool nuget:?package=Standardly.Core&version=1.0.12.3
Standardly.Core
Standardly.Core is a .Net library designed to provide a template engine that .Net developers can use to generate 'The Standard' compliant code from template definitions.
How It Works
The library offers a template retrieval client that will scan for template definition files within a Template
folder in the application directory that implements the library OR a designated folder path if one is provided by the application.
The template definition files is json
files that define Tasks
with Actions
. Tasks can be seen as everything in a Pull Request and Actions as the things that you would do in the commits that make up the Pull Request.
One or more of the templates found, can then be passed to the template generation client with a replacement dictionary. The template generation client will then substitute any variables found with the values from the replacement dictionary and then execute all the actions defined per task per template.
As items are processed, events are raised. The event will provide a timestamp, status and message which can be used for realtime information on progress in a UI.
(The script generation client has the ability to disable script execution. This can be useful where you only want to generate code, but not necessarily want to check in code to GitHub or do NuGet installs.)
Template Retrieval Client
string templateFolderPath = @"C:\Templates";
string templateDefinitionFileName = "Template.json";
var standardlyTemplateClient =
new StandardlyTemplateClient();
List<Template> templates = standardlyTemplateClient.FindAllTemplates(templateFolderPath, templateDefinitionFileName);
Template Generation Client
TemplateGenerationInfo templateGenerationInfo =
new TemplateGenerationInfo
{
. . .
};
var standardlyGenerationClient = new StandardlyGenerationClient();
standardlyGenerationClient.Processed += ItemProcessed;
standardlyGenerationClient.GenerateCode(templateGenerationInfo);
and acting on the events
private void ItemProcessed(object sender, ProcessedEventArgs event)
{
Console.WriteLine($"{event.TimeStamp} - {event.Status} - {event.Message}");
Console.WriteLine($"Procesed: {event.ProcessedItems} of {event.TotalItems}");
}
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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Standardly.Commands (>= 1.0.1.5)
- System.Linq.Async (>= 6.0.1)
- Xeption (>= 2.8.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.12.3 | 131 | 9/13/2024 |
1.0.12.2 | 94 | 9/13/2024 |
1.0.12.1 | 1,562 | 1/21/2024 |
1.0.12 | 548 | 1/1/2024 |
1.0.11 | 145 | 1/1/2024 |
1.0.10 | 180 | 9/8/2023 |
1.0.9.2 | 170 | 7/3/2023 |
1.0.9 | 160 | 7/3/2023 |
1.0.8 | 164 | 7/3/2023 |
1.0.7.5 | 136 | 6/20/2023 |
1.0.7.4 | 132 | 6/20/2023 |
1.0.7.2 | 149 | 6/20/2023 |
1.0.7 | 391 | 12/16/2022 |
1.0.6 | 285 | 12/12/2022 |
1.0.5 | 334 | 11/28/2022 |
1.0.4 | 317 | 11/27/2022 |
1.0.3 | 314 | 11/26/2022 |
1.0.2 | 286 | 11/21/2022 |
1.0.1 | 307 | 11/20/2022 |
1.0.0 | 334 | 11/20/2022 |
This release extended the template model to allow organization-specific templates aligned with The Standard, catering to bespoke scenarios like security, logging, and tracing.