Skip to content

Conversation

benjaminmishra
Copy link
Contributor

Fixes #846

Adds .NET Aspire specific parts to the template. Also introduces a boolen flag --aspire that allows template users to choose if they want Aspire included in the template during creation.

The following projects were added to the template:

  • src/Clean.Architecture.AspireHost
  • src/Clean.Architecture.ServiceDefaults
  • tests/Clean.Architecture.AspireTests

The template.json file was modified

  • Adds a new symbol called "aspire"
  • Adds conditional inclusion/exclusion of above mentioned project folders based on the aspire flag
  • Adds a PostAction that inlcudes the aspire sepcific projects to the solution if the aspire flag is set to true.

New PackegeReferences were added to Directory.Packages.Props to conditionally add references based on the aspire flag.

@ardalis
Copy link
Owner

ardalis commented Oct 28, 2024

What's left for this to be ready to merge?

@benjaminmishra
Copy link
Contributor Author

Hi @ardalis , The test that I added in the AspireHost test project is failing. Was investigating it, but I recently noticed that we have a comment about it in the ListContributorsQueryService.cs file that its expected with In memory databases. Unfortunately by default aspire uses in memory database to do integration testing. So was wondering if we need to have a real test in the aspire test project at all ?

@ardalis
Copy link
Owner

ardalis commented Oct 28, 2024

probably not. Alternately use a fake version of that service but that's probably not a good integration test...

@benjaminmishra
Copy link
Contributor Author

Alright , I will remove it and publish the PR or should I just leave it as a comment ?

@ardalis
Copy link
Owner

ardalis commented Oct 28, 2024

Go ahead and remove it.

@benjaminmishra benjaminmishra marked this pull request as ready for review October 29, 2024 23:36
@benjaminmishra
Copy link
Contributor Author

@ardalis this is now ready to be merged

@ardalis ardalis merged commit bed60d8 into ardalis:main Oct 30, 2024
2 checks passed
@ardalis
Copy link
Owner

ardalis commented Oct 30, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Aspire
2 participants