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
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
- Linqpad targets .NET Core 3
- Microsoft.TeamFoundation appears to access the APIS via Soap.
- Linqpad did not bundle the missing reference because... (drumsroll)
- System.Web.Services is not available in .NET Core 3.
Comments
The following might help:
https://mitchdenny.com/vsts-libraries-from-dotnet-core/
I'll keep an eye peeled and will comment if a solution is found.
Thanks!