Category: ams
-
TILT-AMS – about my software-part 21
One of the most related are data that fill the database for developer – and do not fill into production AMS ( About My Software) could help . It generates an unique class that inherits public class AboutMySoftware { public string Authors { get; set; } public bool IsInCI { get; set; } public string…
-
TILT- cosmetic–part 16
The user must know something about the site. One of easy way is to display an intro – and I have choosed https://github.com/shipshapecode/shepherd Also display number of chars when putting a TILT display a text area instead of an input display links to my TILTS Added also https://codescene.io/ . Can be valuable – but I…
-
RSCG-Integrating with CI Only – part 10
The integration with CI providers is enough straightforward – just see what environments variable those providers have. GitLab and Github has enough documentation – at https://docs.gitlab.com/ee/ci/variables/ and https://docs.github.com/en/actions/reference/environment-variables What I have forgot is that there are also CI providers without having necessary source control. For example AzureDevOps can execute code taken from GitHub More than…
-
RSCG–Advice- part 8
If you create a Roslyn Source Code Generator that uses inside a base class or a static class,the best way,in my opinion,is to create 2 separate nuget packages : one for the code generated and one for the base class. This way the project that will use your RSCG will use just the nuget package…
-
RSCG–AMS – About My software –Documentation– part 7
Now it is time to let others know about the project. And the first step is to make documentation. And,because a picture is worth many words,here is the picture: Also,instructions about how to use will help the programmers: For a DLL it is simple : <ItemGroup> <PackageReference Include=”AMS_Base” Version=”2021.6.29.1820″ /> <PackageReference Include=”RSCG_AMS” Version=”2021.6.29.1820″ ReferenceOutputAssembly=”false” OutputItemType=”Analyzer”…
-
RSCG–AMS – About My software –Reading csproj– part 6
Now it is time to put some more data – like authors and version. I have read a lot ( and tried a lot) about CompilerVisibleProperty and CompilerVisibleItemMetadata ( see https://github.com/dotnet/roslyn/blob/main/docs/features/source-generators.cookbook.md ) . However,I was unable to get the data ( Authors and Version) from there . So this is what I was get,to read…
-
RSCG–AMS – About My software –NuGet– part 5
The problem with RSCG is to differentiate between the generator and the code generated. In my case,the base class should be in one nuget,the generator in other ( to can remove it from build) and the WebAPI in another. That took me a whole day and the result is ok . Pain Points: https://turnerj.com/blog/the-pain-points-of-csharp-source-generators CI…
-
RSCG–AMS – About My software –WebAPI– part 4
Now it should be an easy way to see in the WebAPI. First,return the data for all software that respected that : [code lang=”csharp”] public static IEndpointRouteBuilder UseAMS(this IEndpointRouteBuilder endpoints) { endpoints.MapGet("/ams/All",async app => { var data = AboutMySoftware.AllDefinitions.Select(it => it).ToArray(); await app.Response.WriteAsJsonAsync(data); }); return endpoints; } [/code] Now,how can I make a small html…
-
RSCG–AMS – About My software –Multiple assemblies– part 3
The problem that I face now – and must be solved – is what to do if I have multiple assemblies / dlls / asp.net core that wants to have the About My Software listed ? It will be a name conflict between the classes – or,if we put in different namespaces,will be difficult to…
-
RSCG–AMS – About My software –idea – part 1
Every product should have an About page . In the About page should be listed The product name The version of the product Link to latest version ? Built date+ time The commit ID The authors Link to the License Other components version and link to about Third Party notices Repository link ( github,gitlab,…) Documentation…