Category: roslyn
-
RSCG Example – Tiny Types – Part 23
name BaseTypes nuget https://www.nuget.org/packages/AndreasDorfer.BaseTypes/ link https://github.com/Andreas-Dorfer/base-types author Andreas Dorfer Generated tiny types from any value type The code that you start with is The code that you will use is The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/TinyTypes
-
RSCG Example–SourceInject- part 22
name SourceInject nuget https://www.nuget.org/packages/SourceInject/ link https://github.com/giggio/sourceinject author Giovanni Bassi Auto register services in startup The code that you start with is The code that you will use is The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/AutoRegister
-
RSCG example–Query Generator–part 21
name DatabaseToWebAPI nuget https://www.nuget.org/packages/QueryGenerator/ link http://msprogrammer.serviciipeweb.ro/category/roslyn/ author Andrei Ignat This will generate code (WebAPI/Swagger) for any table/view from SqlServer. You can see the table via Angular The code that you start with is The code that you will use is The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/QueryGenerator
-
RSCG Example–HttpClientGenerator–part 19
name HttpClientGenerator nuget https://www.nuget.org/packages/HttpClientGenerator/ link https://github.com/Jalalx/HttpClientCodeGenerator author Jalal Amini Robati HttpClientGenerator is a tool that uses Roslyn code generator feature to write boilerplate HttpClient code for you. The code that you start with is The code that you will use is The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/HttpClientCodeGenerator
-
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 The code that you will use is The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/CI_Version
-
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–Template Rendering- part 17
name Transplator nuget https://www.nuget.org/packages/Transplator/ link https://github.com/atifaziz/Transplator/ author Atif Aziz The Transplator is a small fast rendering engine to allow you to make rendering from any class instance. The code that you start with is The code that you will use is The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/TemplateRender
-
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…