Open ViktorTsvetkov opened 4 years ago
@ViktorTsvetkov, you have probably moved on with your life, but I have just released version 2.0.0 of this provider, which I believe will solve this issue. I would appreciate it if you or someone else using the provider in Docker can provide confirmation that it is working now.
I can verify Provider now works fine with docker.
Thanks for providing your feedback!
Description
I have prepared a sample app which I can run successfully, but once I try to build a linux docker container using the provided Dockerfile I get the following error:
/src/Program.fs(3,22): error FS3033: The type provider 'FSharp.Interop.Excel.ExcelProvider.ProviderImplementation+ExcelProvider' reported an error: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621) [/src/ConsoleApp.fsproj]
Repro steps
ConsoleApp.zip Extract the project and try to build a linux docker container using the provided Dockerfile.
Expected behavior
Successfully build the project inside the docker container.
Actual behavior
Docker build fails with error:
/src/Program.fs(3,22): error FS3033: The type provider 'FSharp.Interop.Excel.ExcelProvider.ProviderImplementation+ExcelProvider' reported an error: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621) [/src/ConsoleApp.fsproj]