Home

Linq queries won't run if referred assemblies require System.Web.Services

Probably related to this.
I have a query that references the Microsoft.TeamFoundation assemblies, which act as proxy for the current TFS APIs. This works correctly on Linqpad 5, but on 6, it throws this exception:

FileNotFoundException: Could not load file or assembly 'System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

It is probably related to the facts that
  1. Linqpad targets .NET Core 3
  2. Microsoft.TeamFoundation appears to access the APIS via Soap.
  3. Linqpad did not bundle the missing reference because... (drumsroll)
  4. System.Web.Services is not available in .NET Core 3.
Any ideas of how to make this work? Or is it a lost cause?

Comments

Sign In or Register to comment.