fsprojects / ExcelProvider

This library is for the .NET platform implementing a Excel type provider.
http://fsprojects.github.io/ExcelProvider/
The Unlicense
141 stars 51 forks source link

System.Text.Encoding.CodePages dependency error in docker container #72

Open ViktorTsvetkov opened 4 years ago

ViktorTsvetkov commented 4 years ago

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]

quintusm commented 3 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.

OnurGumus commented 1 year ago

I can verify Provider now works fine with docker.

quintusm commented 1 year ago

Thanks for providing your feedback!