Visual Basic Power Pack - is is compatible with .NET 5?

Peter Toye 191 Reputation points
2021-05-17T14:58:56.437+00:00

I am converting a VB .NET 4.7 project to .NET5. It uses the VB Power Pack version 10. However, when I try to look at the form which uses it, Visual Studio produces an error message saying:
Type 'System.Drawing.Printing.PrinterSettings' in Assembly 'System.Drawing.Common, Version=5.0.0.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' is not marked as serializable.

My program does not use serialization at all. I cannot remove the offending item as VS will not open the form design.

Is the Power Pack incompatible with .NET 5, and in that case, how can I print a window?

Developer technologies VB
0 comments No comments
{count} votes

Accepted answer
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2021-05-17T15:20:28.607+00:00

    Hello,

    A tell tale sign would be having a yellow explanation symbol next to Dependencies node in solution explorer which my guess is what would be seen adding this library to your .NET Core project.

    Power Pack was never compiled to work with .NET Core and doubtful Microsoft will release a version for .NET Core.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.