Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unique project capability to workload SDK #967

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

danegsta
Copy link
Member

Adding a unique project capability to the Aspire.Hosting.Sdk workload SDK to allow tooling to identify Aspire projects before project restore.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Nov 20, 2023
@danegsta danegsta enabled auto-merge (squash) November 22, 2023 19:50
@@ -11,6 +11,7 @@
<ItemGroup>
<ProjectCapability Include="DynamicFileNesting" />
<ProjectCapability Include="DynamicFileNestingEnabled" />
<ProjectCapability Include="AspireOrchestration" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we tie all our tooling to this capability rather than the "Aspire" one?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the tooling isn't tightly coupled to the Aspire.Hosting assembly being restored, you can rely on this before restore completes. If you do have something that's tied to Aspire.Hosting in some way, the existing Aspire capability is probably the safer option in that case.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phenning - For the readme support, can we switch to this capability?

src/Aspire.Hosting.Sdk/SDK/Sdk.targets Show resolved Hide resolved
@danegsta danegsta merged commit c6b5fbd into dotnet:main Nov 27, 2023
3 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants