Category: Aspire

  • JavaScriptExtensionsAspire–part 2–execution

    Now about the execution of https://www.nuget.org/packages/JavaScriptExtensionsAspire Finding and parsing the package json is pretty easy – this is the code More interessant is to find the name of npm executable Also I want to add the environment variables from the original javascript app Otherwise, pretty obvious stuff of starting the npm process info . NuGet…

  • JavaScriptExtensionsAspire–part 1

    TL;DR: Add package.json commands to ASPIRE Simplifying JavaScript Workflows in .NET with JavaScriptExtensionsAspire As a developer working with .NET and JavaScript, I often find myself juggling between managing JavaScript resources and integrating package.json commands into my applications. It can be tedious and time-consuming. That’s why I’m excited to share my experience with JavaScriptExtensionsAspire, a .NET…

  • Aspire Resource for Aspire–part 4–programatic access

    Aspire 13 has a MCP server integrated https://aspire.dev/dashboard/mcp-server/ . But what about an OPENAPI / swagger ? Also and a graph to show the  resources – https://aspire.dev/dashboard/explore/#resources-page , see graph image. But how about Mermaid syntax display of resources ? So I implemented in https://www.nuget.org/packages/AspireExtensionsResource , version >= 13 . This is how it looks…

  • DocumentorDatabaseExtensionsAspire–part 3–usage

    The usage is pretty simple : add  the package https://www.nuget.org/Packages/DocumentorDatabaseExtensionsAspire to the Aspire host project.  Add an SqlServer database and write //accepts also relative paths var res = db.AddDocumentationOnFolder(@”D:\documentation”); That will be all ! And here it the Aspire Dashboard with documentation for Pubs database And the diagram Here you will find a video about…

  • DocumentorDatabaseExtensionsAspire–part 2–implementation

    The Aspire project as already a database resource  – and a executing one ( sqlpad or dbgate or adminer ) So the answer to the several problems to be solved: 1. How to obtain the tables definition  ? We can obtain the definition by handling ourselves the tables- but why do not profit from the…

  • DocumentorDatabaseExtensionsAspire–part 1–idea

    The Aspire project as already a database resource  – and a executing one ( sqlpad or dbgate or adminer ) What if we can generate documentation for the database  ? There are several problems to be solved: 1. How to obtain the tables definition  ? 2. How to generate documents for the site ? 3.…

  • SqlExtensionsAspire–drop create database

    Another improvement for https://www.nuget.org/account/Packages/SqlExtensionsAspire : Drop Database , Create the database, run init scripts . Demo with Video : https://ignatandrei.github.io/aspireExtensions/images/SqlServerExtensions/video-Recreate_Database_With_Scripts-20251102225854.mp4 The code is pretty simple: executing drop create and initialization

  • 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: Usage Add the Aspire resource to your distributed application builder: Use the resource to add environment…

  • 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…