Could not load file or assembly ‘System.Private.ServiceModel’

I ran into a stupid issue this afternoon while working on a .NET Core Windows Worker Service. The service connects to a legacy WCF service and would connect just fine while running the service on my development machine, but when deploying to our DEV server, I was faced with…

“Could not load file or assembly ‘System.Private.ServiceModel'”

Turns out that when I added the service reference to my project, older nuget packages were brought in automatically. These nuget packages were shipped with an issue that I did not know about. Upgrading the WCF packages (System.ServiceModel.*) resolved the issue.