📅  最后修改于: 2022-03-11 14:48:22.341000             🧑  作者: Mango
The problem was that the NuGet package
Microsoft.NET.Test.Sdk was not installed.
Installing this package in the project via the NuGet Package Manager
solved the problem.
This wasn't intuitive to me since I have another unit test project that
runs fine without the Microsoft.NET.Test.Sdk package,
but that project is .NET Framework 4.6.2.