Category: roslyn
-
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 : Now,how can I make a small html to display things ? I can do with Razor Library – but it is too big and maybe the developers do not want to have this…
-
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 –work– part 2
So now it is time to work at implementation This will be a standard RSCG – generating code. I make also a test console to display the values. The implementation will consider the fact that we can have many Source Control providers – each one with his ideas about variables. So I made 2 classes…
-
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…
-
Benchmarking RSCG vs Reflection
I make a microservices Buffet . In this I consider having email as a service . When the DevOps wants email,he can choose between various plugins ( simple smtp email,gmail,exchange,others). Those plugins can have various properties – that must be edited by the primary administrator of the microservice. The properties can be discovered at runtime…
-
RSCG- the book
And now the book! If you liked the examples presented,you can support me by buying the book from https://amzn.to/3d4gRgy . Again,it is just for supporting me – you can find the whole examples at https://github.com/ignatandrei/RSCG_Examples
-
RSCG- part 16 – Many Others
There are more RSCG that you could see – here is a list that you may want to look at: AutoEmbed https://github.com/chsienki/AutoEmbed Cloneable https://github.com/mostmand/Cloneable fonderie https://github.com/jeromelaban/fonderie Generators.Blazor https://github.com/excubo-ag/Generators.Blazor Generators.Grouping https://github.com/excubo-ag/Generators.Grouping JsonMergePatch https://github.com/ladeak/JsonMergePatch MemoizeSourceGenerator https://github.com/Zoxive/MemoizeSourceGenerator MiniRazor https://github.com/Tyrrrz/MiniRazor/ MockGen https://github.com/thomas-girotto/MockGen ProxyGen https://github.com/Sholtee/ProxyGen Rocks https://github.com/JasonBock/Rocks RoslynWeave https://github.com/Jishun/RoslynWeave SmallSharp https://github.com/devlooped/SmallSharp StaticProxyGenerator https://github.com/robertturner/StaticProxyGenerator ValueChangedGenerator https://github.com/ufcpp/ValueChangedGenerator Web-Anchor https://github.com/mattiasnordqvist/Web-Anchor WrapperValueObject https://github.com/martinothamar/WrapperValueObject
-
RSCG- part 15 – Expression Generator
name Property Expression Generator nuget https://www.nuget.org/packages/AOPMethodsCommon/ https://www.nuget.org/packages/AOPMethodsGenerator/ link http://msprogrammer.serviciipeweb.ro/category/roslyn/ author Andrei Ignat This will generate code to add function to be used with Entity Framework to search for any property of a class The code that you start with is The code that you will use is The code that is…
-
RSCG- part 14 – DP_Decorator
name AutoInterface nuget https://www.nuget.org/packages/BeaKona.AutoInterfaceGenerator link https://github.com/beakona/AutoInterface author beakona Implement the Design Pattern Decorator. Based on template – you can modify the source code generated 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/DP_Decorator