Could find "Microsoft.Office.Interop.Excel" in your GAC path?
Reference below path:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I've been attempting to setup a project that allows me to use Excel Interop in C# on the Office 365 version (I need to create and edit some sheets to automate some tasks from work involving CSV files). However almost every attempt has resulted in the following error...
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. The system cannot find the file specified.
File name: 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
at Program.<Main>$(String[] args)
I get that I'm missing an assembly or dll however I have no idea how I could fix it. I've attempted multiple solutions, adding various references and packages however I've had almost no success.
I only have 365 installed on this machine and what confuses me more is that by reverting to version 12.0.4518.1014 and installing a third party package simply called "Office" from NuGet, the project mostly works, aside from it telling me to use .Net Framework 4.8 instead of .Net Core 6.0
I've also had some others report that for some reason they can't get the version of interop to function with Office 365. Is there some step or package that we're missing?
I'm currently using Visual Studio 2022 with the Microsoft.Office.Interop.Excel package in C#, It's a simple console app. if any other information is needed feel free to ask.
Could find "Microsoft.Office.Interop.Excel" in your GAC path?
Reference below path:
as to .Net Core 6.0,How about openxml.package to handle Excel file?
There is a warning message in here that is highlighted purple like the one that says we "Microsoft" does not support this check the product lifecycle. Have you seen that one? Well the other one I saw says it does not work because of the 64-bit conversion and 2019 was the last edition that worked. 2022 is 64-bit so it said the use the ACE. It really has no code sample that I could find so I asked a separate question.