I have been trying to compile Bonsai on a Docker container with latest version of Mono 6.x.x. The dockerfile:
CopyFilesToOutputDirectory:
Copying file from "/bonsai/Bonsai.System.Tests/obj/Debug/net462/Bonsai.System.Tests.dll" to "/bonsai/Bonsai.System.Tests/bin/Debug/net462/Bonsai.System.Tests.dll".
Bonsai.System.Tests -> /bonsai/Bonsai.System.Tests/bin/Debug/net462/Bonsai.System.Tests.dll
Copying file from "/bonsai/Bonsai.System.Tests/obj/Debug/net462/Bonsai.System.Tests.pdb" to "/bonsai/Bonsai.System.Tests/bin/Debug/net462/Bonsai.System.Tests.pdb".
Done Building Project "/bonsai/Bonsai.System.Tests/Bonsai.System.Tests.csproj" (default targets).
Done Building Project "/bonsai/Bonsai.sln" (default targets) -- FAILED.
Build FAILED.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Core/Bonsai.Core.csproj" (default target) (6) ->
(CoreCompile target) ->
WorkflowBuilder.cs(236,71): warning CS0612: 'SourceBuilder' is obsolete [/bonsai/Bonsai.Core/Bonsai.Core.csproj]
WorkflowBuilder.cs(236,94): warning CS0612: 'WindowWorkflowBuilder' is obsolete [/bonsai/Bonsai.Core/Bonsai.Core.csproj]
Expressions/ExpressionBuilder.cs(176,28): warning CS0612: 'SourceBuilder' is obsolete [/bonsai/Bonsai.Core/Bonsai.Core.csproj]
WorkflowBuilder.cs(325,34): warning CS0612: 'SourceBuilder' is obsolete [/bonsai/Bonsai.Core/Bonsai.Core.csproj]
WorkflowBuilder.cs(326,34): warning CS0612: 'WindowWorkflowBuilder' is obsolete [/bonsai/Bonsai.Core/Bonsai.Core.csproj]
Expressions/InspectBuilder.cs(192,13): warning CS0612: 'InspectBuilder.Error' is obsolete [/bonsai/Bonsai.Core/Bonsai.Core.csproj]
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Core/Bonsai.Core.csproj" (default target) (6) ->
(GenerateNuspec target) ->
/usr/lib/mono/msbuild/Current/bin/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(198,5): warning : The 'licenseUrl' element will be deprecated. Consider using the 'license' element instead. [/bonsai/Bonsai.Core/Bonsai.Core.csproj]
/usr/lib/mono/msbuild/Current/bin/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(198,5): warning : The 'PackageIconUrl'/'iconUrl' element is deprecated. Consider using the 'PackageIcon'/'icon' element instead. Learn more at https://aka.ms/deprecateIconUrl [/bonsai/Bonsai.Core/Bonsai.Core.csproj]
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.System/Bonsai.System.csproj" (default target) (8) ->
/usr/lib/mono/msbuild/Current/bin/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(198,5): warning : The 'licenseUrl' element will be deprecated. Consider using the 'license' element instead. [/bonsai/Bonsai.System/Bonsai.System.csproj]
/usr/lib/mono/msbuild/Current/bin/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(198,5): warning : The 'PackageIconUrl'/'iconUrl' element is deprecated. Consider using the 'PackageIcon'/'icon' element instead. Learn more at https://aka.ms/deprecateIconUrl [/bonsai/Bonsai.System/Bonsai.System.csproj]
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Arduino/Bonsai.Arduino.csproj" (default target) (9) ->
/usr/lib/mono/msbuild/Current/bin/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(198,5): warning : The 'licenseUrl' element will be deprecated. Consider using the 'license' element instead. [/bonsai/Bonsai.Arduino/Bonsai.Arduino.csproj]
/usr/lib/mono/msbuild/Current/bin/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(198,5): warning : The 'PackageIconUrl'/'iconUrl' element is deprecated. Consider using the 'PackageIcon'/'icon' element instead. Learn more at https://aka.ms/deprecateIconUrl [/bonsai/Bonsai.Arduino/Bonsai.Arduino.csproj]
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Player/Bonsai.Player.csproj" (default target) (11) ->
(ILRepack target) ->
/bonsai/Bonsai.Player/Bonsai.Player.csproj(31,5): warning : ILRepack: Did not write source server data to output assembly. Source server data is only writeable on Windows
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Player/Bonsai.Player.csproj" (default target) (11) ->
(GenerateNuspec target) ->
/usr/lib/mono/msbuild/Current/bin/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(198,5): warning : The 'licenseUrl' element will be deprecated. Consider using the 'license' element instead. [/bonsai/Bonsai.Player/Bonsai.Player.csproj]
/usr/lib/mono/msbuild/Current/bin/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(198,5): warning : The 'PackageIconUrl'/'iconUrl' element is deprecated. Consider using the 'PackageIcon'/'icon' element instead. Learn more at https://aka.ms/deprecateIconUrl [/bonsai/Bonsai.Player/Bonsai.Player.csproj]
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Osc/Bonsai.Osc.csproj" (default target) (22) ->
/usr/lib/mono/msbuild/Current/bin/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(198,5): warning : The 'licenseUrl' element will be deprecated. Consider using the 'license' element instead. [/bonsai/Bonsai.Osc/Bonsai.Osc.csproj]
/usr/lib/mono/msbuild/Current/bin/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(198,5): warning : The 'PackageIconUrl'/'iconUrl' element is deprecated. Consider using the 'PackageIcon'/'icon' element instead. Learn more at https://aka.ms/deprecateIconUrl [/bonsai/Bonsai.Osc/Bonsai.Osc.csproj]
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Core.Tests/Bonsai.Core.Tests.csproj" (default target) (23) ->
(CoreCompile target) ->
TypeMappingTests.cs(21,39): warning CS0612: 'ExternalizedTimeSpan<int>' is obsolete [/bonsai/Bonsai.Core.Tests/Bonsai.Core.Tests.csproj]
/bonsai/Bonsai/Bonsai.csproj : error : Unable to locate the .NET Core SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed version.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai/Bonsai.csproj" (default target) (2) ->
/bonsai/Bonsai/Bonsai.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Editor/Bonsai.Editor.csproj" (default target) (3) ->
/bonsai/Bonsai.Editor/Bonsai.Editor.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Vision/Bonsai.Vision.csproj" (default target) (4) ->
(OpenCV_init_targets_0 target) ->
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Design/Bonsai.Design.csproj" (default target) (5) ->
/bonsai/Bonsai.Design/Bonsai.Design.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Vision.Design/Bonsai.Vision.Design.csproj" (default target) (7) ->
/bonsai/Bonsai.Vision.Design/Bonsai.Vision.Design.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Scripting/Bonsai.Scripting.csproj" (default target) (10) ->
/bonsai/Bonsai.Scripting/Bonsai.Scripting.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Audio/Bonsai.Audio.csproj" (default target) (14) ->
(OpenCV_init_targets_0 target) ->
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Dsp.Design/Bonsai.Dsp.Design.csproj" (default target) (15) ->
/bonsai/Bonsai.Dsp.Design/Bonsai.Dsp.Design.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Dsp/Bonsai.Dsp.csproj" (default target) (16) ->
(OpenCV_init_targets_0 target) ->
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.System.Design/Bonsai.System.Design.csproj" (default target) (17) ->
/bonsai/Bonsai.System.Design/Bonsai.System.Design.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Design.Visualizers/Bonsai.Design.Visualizers.csproj" (default target) (18) ->
/bonsai/Bonsai.Design.Visualizers/Bonsai.Design.Visualizers.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.NuGet.Design/Bonsai.NuGet.Design.csproj" (default target) (19) ->
/bonsai/Bonsai.NuGet.Design/Bonsai.NuGet.Design.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai32/Bonsai32.csproj" (default target) (20) ->
/bonsai/Bonsai32/Bonsai32.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Windows.Input/Bonsai.Windows.Input.csproj" (default target) (21) ->
/bonsai/Bonsai.Windows.Input/Bonsai.Windows.Input.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.StarterPack/Bonsai.StarterPack.csproj" (default target) (24) ->
"/bonsai/Bonsai.Design.Visualizers/Bonsai.Design.Visualizers.csproj" (GetTargetFrameworks target) (18:2) ->
/bonsai/Bonsai.Design.Visualizers/Bonsai.Design.Visualizers.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.StarterPack/Bonsai.StarterPack.csproj" (default target) (24) ->
"/bonsai/Bonsai.Dsp.Design/Bonsai.Dsp.Design.csproj" (GetTargetFrameworks target) (15:2) ->
/bonsai/Bonsai.Dsp.Design/Bonsai.Dsp.Design.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.StarterPack/Bonsai.StarterPack.csproj" (default target) (24) ->
"/bonsai/Bonsai.Scripting/Bonsai.Scripting.csproj" (GetTargetFrameworks target) (10:2) ->
/bonsai/Bonsai.Scripting/Bonsai.Scripting.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.StarterPack/Bonsai.StarterPack.csproj" (default target) (24) ->
"/bonsai/Bonsai.Shaders.Design/Bonsai.Shaders.Design.csproj" (GetTargetFrameworks target) (25) ->
/bonsai/Bonsai.Shaders.Design/Bonsai.Shaders.Design.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.StarterPack/Bonsai.StarterPack.csproj" (default target) (24) ->
"/bonsai/Bonsai.System.Design/Bonsai.System.Design.csproj" (GetTargetFrameworks target) (17:2) ->
/bonsai/Bonsai.System.Design/Bonsai.System.Design.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.StarterPack/Bonsai.StarterPack.csproj" (default target) (24) ->
"/bonsai/Bonsai.Vision.Design/Bonsai.Vision.Design.csproj" (GetTargetFrameworks target) (7:2) ->
/bonsai/Bonsai.Vision.Design/Bonsai.Vision.Design.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.StarterPack/Bonsai.StarterPack.csproj" (default target) (24) ->
"/bonsai/Bonsai.Windows.Input/Bonsai.Windows.Input.csproj" (GetTargetFrameworks target) (21:2) ->
/bonsai/Bonsai.Windows.Input/Bonsai.Windows.Input.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Shaders/Bonsai.Shaders.csproj" (default target) (26) ->
(OpenCV_init_targets_0 target) ->
"/bonsai/Bonsai.sln" (default target) (1) ->
"/bonsai/Bonsai.Shaders.Design/Bonsai.Shaders.Design.csproj" (default target) (25:2) ->
/bonsai/Bonsai.Shaders.Design/Bonsai.Shaders.Design.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.WindowsDesktop' specified could not be found.
18 Warning(s)
24 Error(s)
Time Elapsed 00:00:06.88
The command '/bin/sh -c msbuild bonsai/Bonsai.sln' returned a non-zero code: 1