Adding System.Memory to a Task causes RuntimeInformation.FrameworkDescription to return an incorrect description
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
Description
### Steps to reproduce
[ConsoleApp11.zip](https://github.com/microsoft/msbuild/files/4412430/ConsoleApp11.zip)
- Build `ClassLibrary1` in Visual Studio
- Build `ConsoleApp11` using `dotnet build` in CLI.
Removing the `System.Memory` reference from the task fixes the issue.
### Expected behavior
`RuntimeInformation.FrameworkDescription: .NET Core 3.1.2` or similar
### Actual behavior
`RuntimeInformation.FrameworkDescription: .NET Framework 4.700.20.6602` or similar
### Environment data
```
Microsoft (R) Build Engine version 16.6.0-preview-20162-03+00781ad13 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
```
```
dotnet --version
3.1.300-preview-015048
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.