Jirka,
If you are using System.Linq and System.Web.WebSockets, but the necessary assemblies or packages are not referenced in your project, Visual Studio will underline these namespaces. If you do reference them, then System.Linq should be available by default because it is part of the core framework.
Concerning System.Web.WebSockets: does your project support System.Web?
The target framework being 4.8, both System.Linq and System.Web.WebSockets should be recognized.
My best guess at this point is to hover over the underlined namespaces and check the IntelliSense tooltip or the Error List for more specific error messages. This can give you more details about what might be wrong.
Good luck,
elsvieta