Skip to content
Discussion options

You must be logged in to vote

Update: I've tried it, and it worked like a charm. However, worth noting that having ProjectReference is confusing in this case.

I've added an AppHost project with Aspire.AppHost.Sdk. In it, I added a ProjectReference to a migration service and to the server. Additional references: "Aspire.Hosting.AppHost" and "Aspire.Hosting.PostgreSQL". These references created the relevant code for .AddProject<>, basically a class with a "ProjectPath" string.

The tests project has a ProjectReference to that AppHost, which allows using DistributedApplicationTestingBuilder.CreateAsync<>.

All works well. The tests project uses version v1 of package Z, while the server referenced by the AppHost uses v2 of …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by samyonr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant