I have created a C# Console App and a C# Unit Test by following this Microsoft Article here:
This works fine within Visual Studio.
I now want to create an Azure DevOps Pipeline and want it to call this Unit Test as part of the Pipeline. I have added the VsTest Test Assemblies to the Pipeline but I do not know how to make sure that this is actually running the unit test (like when I see it running within Visual Studio).
When I check the results of the build, I can see it has passed all the tests but even though this is marked as passed, there's an error reading:
"Error: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."
I know this is connected to the version of .Net Core that is being used, but I don't know where in my Pipeline I need to change this?