-
Is there an existing issue for this?
Describe the bugI created a custom resource (though that is not the important part here) and used the new 9.1 ResourceRelationshipAnnotation here so that in the dashboard the resource would be shown as a child resource, similar to for example the SQL Server resource and the databases created in it.
Expected BehaviorA resource annotated as a child should display as a child in the dashboard. Steps To ReproduceNo response Exceptions (if any)No response .NET Version infoC:\Users\WimVanHouts>dotnet --info Runtime Environment: .NET workloads installed: Configured to use loose manifests when installing new manifests. Host: .NET SDKs installed: .NET runtimes installed: Anything else?Aspire 9.1 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Just use this method, it'll do the right thing 😄 . |
Beta Was this translation helpful? Give feedback.
-
Having a similar (?) issue - WithParentRelationship only seems to work on certain types of resource? https://github.com/CZEMacLeod/AspireAppHost_Parent_Issue var builder = DistributedApplication.CreateBuilder(args);
var group = builder.AddResource(new GroupResource("my-group"));
builder.AddProject<Projects.WebApplication1>("webapplication1")
.WithParentRelationship(group);
builder.Build().Run();
public class GroupResource : Resource
{
public GroupResource(string name) : base(name)
{
}
} If I use an |
Beta Was this translation helpful? Give feedback.
Just use this method, it'll do the right thing 😄 .