dotnet / dotnet/msbuild

ToolLocationHelper.GetSupportedTargetFrameworks/GetPathToReferenceAssemblies are not aware of .NET Core

Open
#5,750 5 comments 0 reactions 0 assignees View on GitHub
For consideration Partner request triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Issue Description
ToolLocationHelper.GetSupportedTargetFrameworks and ToolLocationHelper.GetPathToReferenceAssemblies provide information about installed .NET Framework, UWP, and Silverlight frameworks, but not installed .NET Core frameworks.

### Steps to Reproduce
On machine with .NET Core 3.1 installed, call:

- ToolLocationHelper.GetSupportedTargetFrameworks();
- ToolLocationHelper.GetPathToReferenceAssemblies(new FrameworkName(".NETCoreApp", new Version(3, 1)));

### Expected Behavior
GetSupportedTargetFrameworks() returns a collection that includes .NETCoreApp,Version=v3.1.
GetPathToReferenceAssemblies returns a collection of paths to directories containing ,NET Core 3.1 reference assemblies.

### Actual Behavior
GetSupportedTargetFrameworks() returns a collection that does not include any .NETCoreApp framework names.
GetPathToReferenceAssemblies returns an empty collection.

### Versions & Configurations
Visual Studio 16.8.0 Preview 4.0 (main 30515.42)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.