project-system icon indicating copy to clipboard operation
project-system copied to clipboard

Improve architecture for Web IPA

Open ocallesp opened this issue 3 years ago • 0 comments

Designing a system where other teams can tell dotnet project system what components ids to check for and when (conditions) we should check for them, so dotnet project system don't need to have this logic in our own repo.

The logic in WebWorkloadDescriptorDataSource.WpfDetected() should be handled by the corresponding team. Component Ids to install: private static readonly string s_webComponentId = "Microsoft.VisualStudio.Component.Web";

Condition to check: private static bool WpfDetected(bool dotnetCoreRazor, bool windowsForm, bool wpf) => dotnetCoreRazor && (windowsForm || wpf);

https://github.com/dotnet/project-system/blob/main/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Workloads/WebWorkloadDescriptorDataSource.cs#L37-L60

ocallesp avatar Jul 29 '22 22:07 ocallesp