RSCG Example–CI Version–part 18

 

name RSCG_AMS
nuget https://www.nuget.org/packages/AMS_Base
https://www.nuget.org/packages/AMSWebAPI
https://www.nuget.org/packages/RSCG_AMS
link https://github.com/ignatandrei/RSCG_AMS
author Andrei Ignat

The AMS will add in the CI the version and creator to your project.See https://netcoreblockly.herokuapp.com/ams for an example   The code that you start with is


    <packagereference include="AMS_Base">

    <packagereference include="AMSWebAPI">

    <packagereference include="RSCG_AMS" outputitemtype="Analyzer" referenceoutputassembly="false">


The code that you will use is



    app.UseEndpoints(endpoints =&gt;

    {

        endpoints.MapControllers();

        endpoints.UseAMS();

    });

The code that is generated is


    using System;

    using AMS_Base;

    namespace AMSExample { 

        /// <summary>

        /// this is the About My Software for 65788572124102115119116110

        /// </summary>

        public class XAboutMySoftware_65788572124102115119116110 :AboutMySoftware {

            /// <summary>

            /// starts when this module is loaded and 

            /// add the AMS tot the 

            /// </summary>

            [System.Runtime.CompilerServices.ModuleInitializer]

            public static void Add_AboutMySoftware_65788572124102115119116110(){

                AboutMySoftware.AddDefinition("AMSExample",new  XAboutMySoftware_65788572124102115119116110());  

            }

            /// <summary>

            /// constructor

            /// for AMS 65788572124102115119116110

            /// </summary>

            public XAboutMySoftware_65788572124102115119116110(){

                AssemblyName ="AMSExample" ; 

                DateGenerated = DateTime.ParseExact("20210717034910", "yyyyMMddHHmmss", null); 

                CommitId  = "not in a CI run" ; 

                RepoUrl ="https://ignatandrei.github.io/RSCG_AMS/runtimeMessages/NotFound.md" ; 

                CISourceControl = "not in a CI run" ; 

                SourceCommit = "https://ignatandrei.github.io/RSCG_AMS/runtimeMessages/NotFound.md" ; 

                Authors= "";

                Version= "";  

                User = "Surface1";

            }

            

        }

           

    }

Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/CI_Version

All RSCG

NrBlog Post
1RSCG–part 1
2RSCG- AppVersion–part 2
3http://msprogrammer.serviciipeweb.ro/2021/02/17/rsgc-enum-part-3/
4RSGC-JSON to Class- part 4
5RSGC-Constructor – Deconstructor – part 5
6RSGC – DTO Mapper – part 6
7RSGC – Skinny Controllers- part 7
8RSGC-Builder Design Pattern – part 8
9RSGC- MetadataFromObject – part 9
10RSGC- Dynamic Mock – part 10
11RSCG- Method Decorator – part 11
12RSCG – Curry – Partial function – part 12
13RSCG- part 13 – IFormattable
14RSCG- part 14 – DP_Decorator
15RSCG- part 15 – Expression Generator
16RSCG- part 16 – Many Others
17RSCG- the book
18RSCG–Template Rendering- part 17
19CI Version
20HttpClientGenerator
21Query from database
22AutoRegister
23TinyTypes
24Static2Interface
25AppSettings
26Properties
27
Roslyn Source Code Generators