Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot use ML.NET in a Windows nano container #1823
Base image: microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1803
Microsoft Windows [Version 10.0.17134.345]
Host (useful for support):
.NET Core SDKs installed:
.NET Core runtimes installed:
To install additional .NET Core runtimes or SDKs:
Repro: Install the Visual Studio Service Fabric Mesh tools from https://blogs.msdn.microsoft.com/azureservicefabric/2018/12/04/service-fabric-mesh-preview-refresh-release/ then follow the tutorial at https://docs.microsoft.com/en-us/azure/service-fabric-mesh/service-fabric-mesh-tutorial-create-dotnetcore and install the ML.NET package to try training an ML model.
When the web project starts, a System.InvalidOperationException is thrown.
I investigated this today. It appears the issue is that we are dynamically linking to the VC++ Runtime, which is not available on Windows Nano (and it isn't installed on "normal" users machines either).
The fix is simple (once you know what to do). We should be statically linking against the VC++ Runtime (using the
@singlis - FYI we do now support 32-bit on Windows.
Windows Nano is the "small" Windows docker container technology: https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/quick-start-windows-10