You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a container using something similar to the below. Basically the pre-req is dotnet core. In our case we needed both framework and core to build our projects.
Steps to reproduce
Build your .net core source code, I used https://github.com/dotnet/samples/tree/master/core/getting-started/unit-testing-using-nunit in the below example and saved it in
c:/source/unit-testing-using-nunit
Create a container using something similar to the below. Basically the pre-req is dotnet core. In our case we needed both framework and core to build our projects.
Start the container and bind mount a volume with your built source code
Run
cd /source/unit-testing-using-nunit
anddotnet test --no-build
in the root test folderBuilt DLLs in Docker Container
Expected behavior
The tests run without a restore or build beforehand.
Actual behavior
dotnet test exits out immediately
Environment data
dotnet --info output:
.NET Core SDK (reflecting any global.json):
Version: 3.1.101
Commit: b377529
Runtime Environment:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.101\
Host (useful for support):
Version: 3.1.1
Commit: a1388f194c
.NET Core SDKs installed:
3.1.101 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
The text was updated successfully, but these errors were encountered: