LINQPad 5 bug - can't use XmlSerializer
Use of XmlSerializer in LINQPad 5 is not possible. Serialization ends with "UserQuery is inaccessible due to its protection level. Only public types can be processed" exception. In V4 there is no problem.
Thanks – this is now fixed in the new beta:
http://www.linqpad.net/download.aspx#beta5
-
Anonymous commented
This seems to be a recurring problem. I am using 5.10.00 and I have the same problem.
As long as a query uses a Connection, it loses the ability to serialize local classes.
-
<paYa/> commented
Thanks for fix. There is another problem with LINQPad 5 (and also with version 4). The problem is with NuGet manager that in some cases is not possible to download stable version of package (only prerelease or beta versions are visible in manager). For example PostSharp - LINQPad offers version 4.2.5-alpha and when I choose "Add specific version" then there is 4.2.4-alpha, 4.2.3-alpha... 4.1.9-rc available etc. There is no version 4.1.15 available, which is the latest stable package of Postsharp on NuGet. This problem is only with some packages, e.g. PostSharp, Entity Framework, Razor Engine and some others.