is It support "Microsoft.Office.Interop.Excel" for linux container using Net Core cpplication

nandkishor ingavale 1 Reputation point
2021-06-03T10:27:33.02+00:00

I want create sample application in dot net core which are using Microsoft.Office.Interop.Excel reference to read the excel and run the some Macros from them and I need to deploy this small application to docker Linux host.
So is it possible?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,668 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 49,251 Reputation points
    2021-06-03T14:48:55.67+00:00

    Yes it is supported as of .NET 3.0 as discussed in the Github repo for .NET core. However the caveat, as with most things .NET Core, is that it would probably only work on Windows as the other platforms don't have Office. There is/was an Office for Mac so maybe it'd work there but the COM stuff has always been Windows only so I doubt it would work anyway.


  2. Olaf Helper 41,806 Reputation points
    2021-06-04T13:22:25.55+00:00

    Interop is the .NET wrapper for the ActiveX interface of Excel and ActiveX (or COM) is 100% pure Windows world; don't think this works on Linux.