NuGet problem in LINQPad 5 - missing assemblies in net48 profile

edited July 16
It seems that LINQPad 5 cannot find assemblies if they are inside the net48 profile. Neither can the types be referred to from inside C# code in LINQPad, nor the "Show assemblies in this package" shows the problematic assemblies. All other assemblies are shown, that are not inside the net48 profile.

The problem is being experienced with version 5.36.03, but the problem still persists in beta version 5.39.0.

The problem seems to be very similar to this one (only this time it is the net48 profile instead of the net471 profile):

http://forum.linqpad.net/discussion/1541/nuget-problem-net471-profile

(BTW, when is the 5.39.* beta version going be a stable version? It contains some quite useful features and bugfixes. If this net48 profile problem was fixed, and a new stable version was released, then it would be fantastic! :smile:)

Comments

  • edited July 17
    Yes, I can confirm this on my Windows Sandbox(on Windows 10 1809), because Windows Sandbox is .NET Framework 4.8 only, and LINQPad cannot run directly on this platform.
  • davidnemeti - can you please provide the ID a sample NuGet package I can test it with?

    sdflysha - can you tell me what happens when you run LINQPad on Win10 1809? I would anticipate the only problem would in finding the latest XML documentation files (and that's if you have installed the SDK).
  • edited July 18
    Well, I realized it's not the same issue, what I said is I cannot run LINQPad 5 directly on fresh Windows 10 1809 Sandbox, it report that need .NET Framework 4.6 to be installed:


    And I can confirm the Windows 10 1809 Sandbox have .NET Framework 4.8 installed:
  • Can you run any .NET Framework 4.6 apps on Windows 10 1809 Sandbox?
  • edited July 19
    JoeAlbahari Yes I confirmed that I cannot run .NET Framework 4.6 "Hello World" application in Windows 10 1903 Sandbox, and .NET 4.8 is even also cannot run:

    So it should be Microsoft's bug.😂
  • JoeAlbahari, the nuget package which I was trying to use is our company's own nuget package, so I cannot share an ID with you.

    However, I have attached two nuget packages which can reproduce the problem.

    ClassLibraryNet48.1.0.0.nupkg has been created from a .NET 4.8 class library project with no dependencies. When I try to use this then LINQPad cannot even add it to the query because it says that "There are no usable .NET assemblies in package 'ClassLibraryNet48'".

    ClassLibraryNet48WithReferences.1.0.0.nupkg has been created from a .NET 4.8 class library project with dependency to EPPlus nuget package. When I try to use this then LINQPad can add it to the query, however, neither can the types be referred to from inside C# code in LINQPad, nor the "Show assemblies in this package" shows the ClassLibraryNet48WithReferences.dll assembly.
  • Thanks for those packages - I can confirm this is fixed for the next build.
  • Thanks for the fix! :smile:
  • JoeAlbahari, when are you planning to release the beta as a stable version? It would be very useful with all those new features and bugfixes. :smile:
  • Yes, within a few days.
  • It's now RTM. The automatic updates will take place over the next week or so.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!