Jenkins pipeline with .NET core app, MSTest, and Cake script
I found the answer and it was related to restoring NuGet packages.
In my original Cake build I had a step named "RestoreNugetPackages that looked like this
Task("RestoreNugetPackages") .Does(() => { NuGetRestore(name + ".sln", new NuGetRestoreSettings()); });
This would be the correct way to restore NuGet packages for a non-.Net Core application. For a .Net Core application, it should look like this
Task("RestoreNugetPackages") .Does(() => { DotNetCoreRestore(name + ".sln"); });
Now, the NuGet packages are restored correctly and my tests run as expected.