As I was following Lab 9b, I hit this issue.
$ cat Dockerfile
FROM mono:3.12.0-onbuild
RUN ["mono", "/usr/src/app/source/packages/NUnit.Runners.2.6.4/tools/nunit-console.exe", "NuGetSampleLibrary.dll", "-nologo"]
CMD ["mono", "NuGetSample.exe"]
$ docker build -t nugetsample .
Sending build context to Docker daemon 27.65 kB
Step 1 : FROM mono:3.12.0-onbuild
# Executing 4 build triggers...
Step 1 : COPY . /usr/src/app/source
Step 1 : RUN nuget restore -NonInteractive
---> Running in 4f0fb2796030
Step 1 : RUN xbuild /property:Configuration=Release /property:OutDir=/usr/src/app/build/
---> Running in 9002a97551ea
XBuild Engine Version 12.0
Mono, Version 3.12.1.0
Copyright (C) 2005-2013 Various Mono authors
Build started 06/24/2016 19:48:27.
__________________________________________________
Project "/usr/src/app/source/HelloDocker.sln" (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
Target Build:
Project "/usr/src/app/source/HelloDocker/HelloDocker.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: Release Platform: AnyCPU
Created directory "obj/Release/"
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target CoreCompile:
Tool /usr/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:pdbonly /optimize+ /out:obj/Release/HelloDocker.exe Program.cs Properties/AssemblyInfo.cs obj/Release/.NETFramework,Version=v4.5.AssemblyAttribute.cs /target:exe /define:TRACE /nostdlib /platform:AnyCPU /reference:/usr/lib/mono/4.5/System.dll /reference:/usr/lib/mono/4.5/System.Xml.Linq.dll /reference:/usr/lib/mono/4.5/System.Data.DataSetExtensions.dll /reference:/usr/lib/mono/4.5/Microsoft.CSharp.dll /reference:/usr/lib/mono/4.5/System.Data.dll /reference:/usr/lib/mono/4.5/System.Xml.dll /reference:/usr/lib/mono/4.5/System.Core.dll /reference:/usr/lib/mono/4.5/mscorlib.dll /warn:4
Target _CopyAppConfigFile:
Copying file from '/usr/src/app/source/HelloDocker/App.config' to '/usr/src/app/build/HelloDocker.exe.config'
Target DeployOutputFiles:
Copying file from '/usr/src/app/source/HelloDocker/obj/Release/HelloDocker.exe.mdb' to '/usr/src/app/build/HelloDocker.exe.mdb'
Copying file from '/usr/src/app/source/HelloDocker/obj/Release/HelloDocker.exe' to '/usr/src/app/build/HelloDocker.exe'
Done building project "/usr/src/app/source/HelloDocker/HelloDocker.csproj".
Done building project "/usr/src/app/source/HelloDocker.sln".
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.7310790
Step 1 : WORKDIR /usr/src/app/build
---> Running in 6e12e3d5cfa7
---> 7a00e3fbe0b6
Removing intermediate container 42cf209760a9
Removing intermediate container 4f0fb2796030
Removing intermediate container 9002a97551ea
Removing intermediate container 6e12e3d5cfa7
Step 2 : RUN mono /usr/src/app/source/packages/NUnit.Runners.2.6.4/tools/nunit-console.exe NuGetSampleLibrary.dll -nologo
---> Running in 40fbf8d1160b
Cannot open assembly '/usr/src/app/source/packages/NUnit.Runners.2.6.4/tools/nunit-console.exe': No such file or directory.
The command 'mono /usr/src/app/source/packages/NUnit.Runners.2.6.4/tools/nunit-console.exe NuGetSampleLibrary.dll -nologo' returned a non-zero code: 2
Senthils-MBP:HelloDocker senthil$ cat Dockerfile
FROM mono:3.12.0-onbuild
RUN ["mono", "/usr/src/app/source/packages/NUnit.Runners.2.6.4/tools/nunit-console.exe", "NuGetSampleLibrary.dll", "-nologo"]
CMD ["mono", "NuGetSample.exe"]