I have a WCF .NET 4.5 project I am trying to build. I have a nuget reference to UNITY.WCF (Along with the associated unity references). The references are set to copy local true.
Now everytime I build I get the following error:
- WcfServiceFactory.cs(41, 33): error CS0012: The type 'System.IDisposable' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
This is baffling to me. I even updated the web.config adding the following (based on other sluething)
<compilation debug="true" targetFramework="4.5">
<add assembly="System.Runtime, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
This code builds fine locally and on a TFS build server. But I can't get this to work on the TeamCity server.. Has anyone run into something like this before?
This is very annoying.