Standardly.Core
1.0.4
Prefix Reserved
See the version list below for details.
dotnet add package Standardly.Core --version 1.0.4
NuGet\Install-Package Standardly.Core -Version 1.0.4
<PackageReference Include="Standardly.Core" Version="1.0.4" />
paket add Standardly.Core --version 1.0.4
#r "nuget: Standardly.Core, 1.0.4"
// Install Standardly.Core as a Cake Addin #addin nuget:?package=Standardly.Core&version=1.0.4 // Install Standardly.Core as a Cake Tool #tool nuget:?package=Standardly.Core&version=1.0.4
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(templateFolderPath, templateDefinitionFileName);
List<Template> templates = standardlyTemplateClient.FindAllTemplates();
Template Generation Client
var standardlyGenerationClient = new StandardlyGenerationClient()
{
ScriptExecutionIsEnabled = true
};
standardlyGenerationClient.Processed += ItemProcessed;
standardlyGenerationClient.GenerateCode(templates, replacementDictionary);
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.Logging (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- Newtonsoft.Json (>= 13.0.1)
- Standardly.Commands (>= 1.0.1)
- Xeption (>= 2.5.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 | 135 | 9/13/2024 |
1.0.12.2 | 96 | 9/13/2024 |
1.0.12.1 | 1,564 | 1/21/2024 |
1.0.12 | 550 | 1/1/2024 |
1.0.11 | 147 | 1/1/2024 |
1.0.10 | 182 | 9/8/2023 |
1.0.9.2 | 172 | 7/3/2023 |
1.0.9 | 162 | 7/3/2023 |
1.0.8 | 166 | 7/3/2023 |
1.0.7.5 | 138 | 6/20/2023 |
1.0.7.4 | 134 | 6/20/2023 |
1.0.7.2 | 153 | 6/20/2023 |
1.0.7 | 393 | 12/16/2022 |
1.0.6 | 287 | 12/12/2022 |
1.0.5 | 336 | 11/28/2022 |
1.0.4 | 319 | 11/27/2022 |
1.0.3 | 317 | 11/26/2022 |
1.0.2 | 288 | 11/21/2022 |
1.0.1 | 309 | 11/20/2022 |
1.0.0 | 336 | 11/20/2022 |
Initial Release - Standardly.Core Template Engingine