I have not found an official list of compatibility between the various versions of AF SDK and the versions of .NET Frameworks. Does one exist?
Searching for that information, I found a previous post in these forums, which said that" AFSDK uses WCF to communicate to the AF Service which is only available in .NET 2.0. In addition, there are changes to .NET DateTime in .NET 2.0 that AF makes specific use of. " (from URL: http://vcampus.osisoft.com/discussion_hall/development_with_osisoft_sdks/f/28/p/852/4005.aspx#4005)
Based on our own testing with OSIsoft.AFSDK.dll, version 126.96.36.199, we found implicit dependencies on libraries in .NET 3.0 and .NET 3.5:
Here is a sample warning that I get when trying to target .NET 2.0:
"Warning The primary reference "OSIsoft.AFSDK, Version=188.8.131.52, Culture=neutral, PublicKeyToken=6238be57836698e6, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.ServiceModel, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "OSIsoft.AFSDK, Version=220.127.116.11, Culture=neutral, PublicKeyToken=6238be57836698e6, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.ServiceModel, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b77a5c561934e089". "
It also wanted to find "System.Core, Version=22.214.171.124", "WindowsBase, Version=126.96.36.199" ,"System.IdentityModel, Version=188.8.131.52" and "System.IdentityModel.Selectors, Version=184.108.40.206" .
My conclusion is that AF SDK version 2.0 requires .NET 3.5 or .NET 4.0. Is that correct?
Nils A Thommesen, ExproSoft