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

[release/8.0] Remove obsolete APIs. #3336

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 2, 2024

Backport of #3329 to release/8.0

/cc @mitchdenny

Customer Impact

Only removing APIs that were already marked with obsolete. Many have been marked obsolete since P3/P4. There are some obsolete APIs remaining into GA but they are internal related to DCP.

Testing

These APIs weren't used any more in our test cases/playgrounds anyway after we obsoleted them.

Risk

Low. Some customers may have used these APIs but they should have been getting obsolete warnings for a while.

Microsoft Reviewers: Open in CodeFlow

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-integrations Issues pertaining to Aspire Integrations packages label Apr 2, 2024
@eerhardt
Copy link
Member

eerhardt commented Apr 2, 2024

@mitchdenny - there is still these Obsolete attributes present in the code:

[Obsolete] public const string CSharpProjectPathAnnotation = "csharp-project-path";
[Obsolete] public const string CSharpLaunchProfileAnnotation = "csharp-launch-profile";
[Obsolete] public const string CSharpDisableLaunchProfileAnnotation = "csharp-disable-launch-profile";

Along with this suppression and TODO:

#pragma warning disable CS0612 // These annotations are obsolete; remove in Aspire Preview 6
annotationHolder.Annotate(Executable.CSharpProjectPathAnnotation, projectMetadata.ProjectPath);
// ExcludeLaunchProfileAnnotation takes precedence over LaunchProfileAnnotation.
if (project.TryGetLastAnnotation<ExcludeLaunchProfileAnnotation>(out _))
{
annotationHolder.Annotate(Executable.CSharpDisableLaunchProfileAnnotation, "true");
}
else if (project.TryGetLastAnnotation<LaunchProfileAnnotation>(out var lpa))
{
annotationHolder.Annotate(Executable.CSharpLaunchProfileAnnotation, lpa.LaunchProfileName);
}
#pragma warning restore CS0612

What is the plan for those?

cc @karolz-ms

@karolz-ms
Copy link
Member

@eerhardt the plan is to remove these post-GA. Even P5 is relying on these, and given all the moving parts (Aspire.Hosting, IDEs, DCP) I would be hesitant to touch these earlier than that.

Do you want me to open a tracking issue?

@eerhardt
Copy link
Member

eerhardt commented Apr 2, 2024

Do you want me to open a tracking issue?

Yes please.

It might make sense to update this comment since it says "remove in Aspire Preview 6".

@karolz-ms
Copy link
Member

@eerhardt done and done (the comment part via #3294)

@joperezr joperezr added Servicing-consider Issue for next servicing release review Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Apr 3, 2024
@eerhardt eerhardt merged commit af97f4d into release/8.0 Apr 3, 2024
7 checks passed
@eerhardt eerhardt deleted the backport/pr-3329-to-release/8.0 branch April 3, 2024 17:15
@danmoseley danmoseley mentioned this pull request Apr 12, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-integrations Issues pertaining to Aspire Integrations packages Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants