Windows 10: Have a windows C# App using .NET 6.0 runs, but reports error CS0246 with a class library...

Discus and support Have a windows C# App using .NET 6.0 runs, but reports error CS0246 with a class library... in Windows 10 Gaming to solve the problem; Using VS 2022!My windows app calls my private class library assembly name 'ExcelInteropLib' using Microsoft Excel 16.0 Object Library.My windows C#... Discussion in 'Windows 10 Gaming' started by inq-mike, Apr 13, 2023.

  1. inq-mike Win User

    Have a windows C# App using .NET 6.0 runs, but reports error CS0246 with a class library...


    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

    :)
     
    inq-mike, Apr 13, 2023
    #1
  2. GSquadron Win User

    C# .net windows apps programming

    hi,
    i am having a very hard time on finding a book on C# .net windows apps programming.
    Can anyway help with this? I means how to create desktop windows applications using C# with .net framework.
    I know video tutorials, i want to learn through a book.
     
    GSquadron, Apr 13, 2023
    #2
  3. GSquadron Win User
    C# .net windows apps programming

    I mean not learning C#, but learning how to build windows applications with C# and visual studio 2012
    When i was learning it, people called C# the language and C# .net the one to build apps.
    Even though C# is the same i know *Smile Have a windows C# App  using .NET 6.0 runs, but reports error CS0246 with a class library... :)
     
    GSquadron, Apr 13, 2023
    #3
  4. Kreij Win User

    Have a windows C# App using .NET 6.0 runs, but reports error CS0246 with a class library...

    C# .net windows apps programming

    C# is the language.
    .Net is a collection of APIs that you call from a C# (or any .Net language) program.
    If you are creating C# applications in Visual Studio, you are using .Net as it's the entire framework that the language uses.

    There is not one book that will cover all of the .Net APIs as there are simple too many (1000s), and things have been added and obsoleted as each .Net revision comes out.
    Your best bet it to just start making stuff using VS and use the MSDN libraries for reference information. When you hit a snag ... let us know. *Smile Have a windows C# App  using .NET 6.0 runs, but reports error CS0246 with a class library... :)
     
    Kreij, Apr 13, 2023
    #4
Thema:

Have a windows C# App using .NET 6.0 runs, but reports error CS0246 with a class library...

Loading...
  1. Have a windows C# App using .NET 6.0 runs, but reports error CS0246 with a class library... - Similar Threads - App using NET

  2. Have a windows C# App using .NET 6.0 runs, but reports error CS0246 with a class library...

    in Windows 10 Software and Apps
    Have a windows C# App using .NET 6.0 runs, but reports error CS0246 with a class library...: 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...
  3. c++ library runtime error

    in Windows 10 Gaming
    c++ library runtime error: How can I fix this?I've watched a tutorial but still it's not solved https://answers.microsoft.com/en-us/windows/forum/all/c-library-runtime-error/874f7e73-70a2-41af-b16e-ab859393ef92
  4. c++ library runtime error

    in Windows 10 Software and Apps
    c++ library runtime error: How can I fix this?I've watched a tutorial but still it's not solved https://answers.microsoft.com/en-us/windows/forum/all/c-library-runtime-error/874f7e73-70a2-41af-b16e-ab859393ef92
  5. c++ library runtime error

    in Windows 10 BSOD Crashes and Debugging
    c++ library runtime error: How can I fix this?I've watched a tutorial but still it's not solved https://answers.microsoft.com/en-us/windows/forum/all/c-library-runtime-error/874f7e73-70a2-41af-b16e-ab859393ef92
  6. how to report C# errors

    in Windows 10 Gaming
    how to report C# errors: Part of the programConsole.WriteLinetext; if text.Contains"<@>" { sqltext = sqltext + text.Replace"<@>", ""; Console.WriteLinesqltext; } result of Console.WriteLinetext; INSERT INTO zdcontainer.errorregister SET...
  7. how to report C# errors

    in Windows 10 Software and Apps
    how to report C# errors: Part of the programConsole.WriteLinetext; if text.Contains"<@>" { sqltext = sqltext + text.Replace"<@>", ""; Console.WriteLinesqltext; } result of Console.WriteLinetext; INSERT INTO zdcontainer.errorregister SET...
  8. how to report C# errors

    in Windows 10 Network and Sharing
    how to report C# errors: Part of the programConsole.WriteLinetext; if text.Contains"<@>" { sqltext = sqltext + text.Replace"<@>", ""; Console.WriteLinesqltext; } result of Console.WriteLinetext; INSERT INTO zdcontainer.errorregister SET...
  9. Line: 0 Class not registered & Error #-2147221164

    in Windows 10 BSOD Crashes and Debugging
    Line: 0 Class not registered & Error #-2147221164: Received both error messages when trying to access .xlsx file using Quickbooks Desktop Pro and Transaction Pro https://answers.microsoft.com/en-us/windows/forum/all/line-0-class-not-registered-error-2147221164/066737e6-c7df-48ea-a7de-021d5c44248f
  10. c++ library runtime error

    in Windows 10 BSOD Crashes and Debugging
    c++ library runtime error: I received error message : this application has requested the rentime to terminate it in an unusual way... https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/c-library-runtime-error/b7f6855d-bebf-4b85-88d3-c83b9b96a6d4