Add a reference to C# program
Hello,
I used to be able to add references in LP5 but after upgrading to LP6 I am struggling to do this.
Been a while since I have used the product so could be I am not adding in the correct way. I did a google
search and followed the instructions to add via F4, however I cannot seem to add a reference for System.Web or .UI.
Add NuGet filtered on System.Web gives me pages of assemblies but not the system.web assembly.
Do I need to download the DLL and browse/add?
Thanks
Comments
-
No need to add the dll, just reference it, eg
System.Web.HttpUtility.HtmlEncode("1&2").Dump();
There's no longer an option to add Framework assembly references. In keeping with Visual Studio, all .NET Core Framework assemblies are referenced automatically.
From the Things that behave differently in LINQPad 6 section of https://www.linqpad.net/LINQPad6.asp -
Hello
Ok that makes sense. How do I reference System.Web.UI in LP6?Is it because it is essentially a control that would be included in a web project but not a console app?
Thanks
-
System.Web.UI is part of Web Forms, which is not supported in .NET Core.
If you still need Web Forms or other features specific to .NET Framework, you can run LINQPad 5 in parallel.
-
Ok, thanks for the clarification.