AnsweredAssumed Answered

trying to create new AF sdk project in .net

Question asked by mdspath on Feb 3, 2015
Latest reply on Feb 4, 2015 by dng

Hello:

I have downloaded the AF client and developer tools from the osi site, I create a new .net project and include the reference by browsing to the dll in the C:\Program Files (x86)\PIPC\AF\PublicAssemblies\4.0\OSIsoft.AFSDK.dll

It still gives me "... missing reference .." errors for PIServers

namespace AFSDKConsoleApp1

{

    class Program

    {

        static void Main(string[] args)

        {

            PIServers pIServers = new PIServers();

 

            foreach (var server in pIServers)

            {

                Console.WriteLine("Server: {0}", server.Name);

            }

            Console.ReadKey();

        }

    }

}

How do I verify that the AF SDK is installed correctly?

Outcomes