AnsweredAssumed Answered

PDMWorkgroup using C# --- .NET target framework issue

Question asked by Claudio Berardino on Mar 3, 2017
Latest reply on Mar 6, 2017 by Claudio Berardino

I started from an example (Listreferences) as I did not find anything  done in C# for PDMW.

I got this far .... before i ran into my error, I am using Visual Studio Community 2015

Would anyone have some thoughts....THx

 

Code snipitt

 

using PDMWorks.Interop.pdmworks;

 

namespace ListReferences

{

    class Program

    {

        static void Main(string[] args)

        {  

 

            PDMWorks.Interop.pdmworks.IPDMWConnection connection = new PDMWorks.Interop.pdmworks.PDMWConnection() as PDMWorks.Interop.pdmworks.IPDMWConnection;

 

            connection.Login("cberardino", "xxx", "16x - MEC - PROD");

 

The error

SeverityCodeDescriptionProjectFileLineSuppression State
WarningThe primary reference "PDMWorks.Interop.pdmworks" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework.ListReferences

Outcomes