After a long time, I have a problem again.
I have a DLL project that was previously created for .net Framework 4.8. It uses the Microsoft.Office.Interop.Excel package.
After converting the project to .net8, it no longer works. The package is included (entry in the .elements file exists), but is not displayed in the project solution. When compiling, the error message
(E28) Unknown type “Microsoft.Office.Interop.Excel.Application”
appears.
However, a .net8 test project with C# compiles without any problems and the package is also listed in the project solution.
I use Visual Studio 2022.
The attached ZIP file contains three test projects (Oxygene .net4, Oxygene .net8 and C# .net8).
Best regards,
Manfred
Interop_Excel_Error.zip (5.1 MB)