Development

Does AF SDK require .NET Framework 3.5 or 4.0?

Discussion created by Development on Aug 23, 2011
Latest reply on Aug 26, 2011 by spilon

Hi

 

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 2.0.0.0, 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=2.0.0.0, Culture=neutral, PublicKeyToken=6238be57836698e6, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.ServiceModel, Version=3.0.0.0, 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=2.0.0.0, Culture=neutral, PublicKeyToken=6238be57836698e6, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".    "

 


It also wanted to find  "System.Core, Version=3.5.0.0", "WindowsBase, Version=3.0.0.0" ,"System.IdentityModel, Version=3.0.0.0"  and "System.IdentityModel.Selectors, Version=3.0.0.0" .

 

My conclusion is that AF SDK version 2.0 requires .NET 3.5 or .NET 4.0. Is that correct?

 

Regards,

 

Nils A Thommesen, ExproSoft

Outcomes