Microsoft has introduced the new version 8.1 of its cloud native framework .NET Aspire. In addition to additional components and expansion of dashboard and telemetry functionality, Microsoft is focusing on new functions to help build Docker containers and deal with Python code.
Advertisement
with two new methods AddDockerfile(...)
And WithDockerfile(...)
Developers can now specify a Dockerfile that Docker uses to create containers when starting the .NET Aspire App Host. This is the method AddDockerfile(…)
whereas, the newer, custom containers are intended for WithDockerfile(…)
Available to customize existing container resources. Microsoft specifies how to use the new methods in more detail in this Developer Documentation,
Polyglot Micro-Services Architecture
.NET Aspire has long been familiar with Node.js apps. With the new version 8.1, developers can now also orchestrate Python services using the new method AddPythonProject(...)
Available. In the background, .NET uses the Aspire Virtual Environment (venv) tool. Microsoft emphasizes the point that developers should install dependencies manually (per pip install -r requirements.txt
). .NET Aspire itself isn’t capable of doing this yet.
Under the hood, the new release of Microsoft’s cloud-native framework offers a whole range of additional additions in terms of resource types and components, features for testing and open telemetry functionality, as well as revised instance names, which are no longer full GUIDs, but rather the application name and part of the instance ID. Microsoft lists the details of all the innovations release notes But.
(Who)