-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excel Interop, Could not load file or assembly #433
Comments
Microsoft.Office.Interop.Excel targets .NET Standard 2.0. As a result, this DLL can work with .NET 6.0. If we take the example of the console application, it is necessary to import the DLL manually and to define the EmbedInteropTypes property. Regarding LinqPad, indeed the developers have added the possibility to integrate the Office Interop COM libraries from the 6th version for .NET Core 3.1 and above. So can we classify this issue as an enhancement? I will try to work on it! 😉 |
@tsiank, I created a PR to solve this issue 👍 |
@jboinembalome ,I have't thought it's fixed so quickly, thank you for your work, that's great! I will have a try. |
@jboinembalome ,I have tested, it works perfectly now, thank you again! |
Good news! You’re welcome @tsiank, it's a pleasure to help you 😉 |
Describe the bug
I use Microsoft.Office.Interop.Excel.dll in RoslynPad15 DotNet 6.0 to read and write Excel, but it shows error:
"Could not load file or assembly 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. "
But it can run normally with dotnetFrameWork
To Reproduce
Expected behavior
Version
The text was updated successfully, but these errors were encountered: