Windows 11 Have a windows C# App using .NET 6.0 runs, but reports error CS0246 with a class library (.NET Framework 4.8). How can I fix the error?

  • Thread starter Thread starter inq-mike
  • Start date Start date
I

inq-mike

Using VS 2022!My windows app calls my private class library (assembly name 'ExcelInteropLib' using Microsoft Excel 16.0 Object Library).My windows C# App is targeting .NET 6.0, but my excel class library targets .NET Framework 4.8.When debug the app, the expected Excel workbook and sheets are produced correctly. However, lines containing references to the library, for example pbExcel = new ExcelInteropLib.ioExcelAccess();produce the following Error List entry (VS 2022):Severity Code Description Project File Line Suppression State Error CS0246 The

Continue reading...
 
Back
Top