Category: .NET
-
RSCG – NFH.FileEmbed
RSCG – NFH.FileEmbed name NFH.FileEmbed nuget https://www.nuget.org/packages/NFH.FileEmbed/ link https://github.com/SirCxyrtyx/FileEmbed author Natalie Howes Generating embedded files This is how you can use NFH.FileEmbed . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/NFH.FileEmbed
-
VibeCoding and testing to BDD to understand the output
So the AI has written all tests for the solution. But now the problem was reading all those tests. For example for this code public static class ArrayFilters { // Checks if the argument is included in the comparison array public static bool IsIncludedIn<T>(T arg, T[] comparisonArray) { return comparisonArray != null && comparisonArray.Contains(arg); }…
-
Converting from https://github.com/Oaxoa/fp-filters – generate
History of how I ported https://github.com/Oaxoa/fp-filters to csharp So to port from Javascript to CSharp I followed those steps Clone the original project – easy Open in VSCode – easy Start discussing with GPT4.1 . Easy enough – see Whole discussion Verifying the results. This was the difficult part. So in the time span of…
-
TransCSharpGlot programming
History of how I ported https://github.com/Oaxoa/fp-filters to csharp This is my first attempt to utilize AI to translate from a programming language to another . To be easy, I choose the npm package https://github.com/Oaxoa/fp-filters to be translated to C# nuget package . It could bring some benefits to C# programmer to replace var numbers =…
-
RSCG – SKPromptGenerator
RSCG – SKPromptGenerator name SKPromptGenerator nuget https://www.nuget.org/packages/SKPromptGenerator/ link https://github.com/CharlieDigital/SKPromptGenerator author Charlie Chen Generate typed prompts for Semantic Kernel This is how you can use SKPromptGenerator . The code that you start with is The code that you will use is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/SKPromptGenerator
-
RSCG – Nino
RSCG – Nino name Nino nuget https://www.nuget.org/packages/Nino/ link https://github.com/JasonXuDeveloper/Nino author Jason Xu binary serialization This is how you can use Nino . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/Nino
-
RSCG – EnumsEnhanced
RSCG – EnumsEnhanced name EnumsEnhanced nuget https://www.nuget.org/packages/EnumsEnhanced/ link https://github.com/snowberry-software/EnumsEnhanced author VNCC generating enums fast retrieval This is how you can use EnumsEnhanced . The code that you start with is The code that you will use is The code that is generated is #nullable enable using System.Text; using System.Runtime.CompilerServices; using System.Collections.Generic;…
-
Aspire Resource for Aspire–part 3–usage
AspireExtensionsResource This package provides Aspire as a Resource in the Aspire Host Dashboard, making it easier to test and manage Aspire dashboards. You can download the solution at https://github.com/ignatandrei/aspireExtensions/tree/main/src/AspireResourceExtensions in order to see the tests. Installation Install via NuGet: dotnet add package AspireExtensionsResource Usage Add the Aspire resource to your distributed application builder: using AspireResourceExtensionsAspire;…
-
Aspire Resource for Aspire–part 2–code
So those are the challenges Challenge 1: Extracting the Dashboard URL The Aspire dashboard doesn’t expose its URL directly through a simple API. Instead, the URL is logged to the application’s output. To capture it, I had to hook into the logging infrastructure. I created a FakeLoggerProvider(https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.testing.fakeloggerprovider?view=net-9.0-pp) that collects log messages, then scanned those messages…
-
Aspire Resource for Aspire–part 1–idea
I have published many Aspire Extensions ( see https://msprogrammer.serviciipeweb.ro/category/aspire/ – ) However, to make an AUTOMATED demo, I need the token url of the dashboard and the url itself. How can I obtain those and pass to the demo / tests ? So here are the specs As a Aspire Resource developer I wanted to…