project-system
project-system copied to clipboard
Remove hardcoded map values s_packageVersionToComponentId
We have to improve the design MissingRuntime to be less fragile whenever Msft adds new runtime versions.
We have to remove the hardcoded map s_packageVersionToComponentId that contains the relation (RuntimeVersion, ComponentId).
Since Sdk manages this information (runtime versions and component Ids), we have created the GitHub #25575 to request a new design-time msbuild item that can provide the componentId of a missing runtime.
Once #25575 is completed, we have to update the design of MissingSdkRuntimeDetector to read the componentId from the new design-time msbuild item.