7 Replies Latest reply on Jan 4, 2017 1:28 AM by Eugene Lee

    Error Building VS2015 Solution after installing AF Client 2016 R2 SP1

    helgesonc

      Hello,

      I encountered a problem building a VB.NET solution after installing the latest AF Client 2016 R2 SP1.  Background on the .NET solution:

      • Target .NET Framework is 4.5
      • Solution contains a folder with copies of PI dlls (OSIsoft.AFSDK.dll being one of them) used for referencing by multiple projects in the solution
      • Project A creates A.dll and references OSIsoft.AFSDK.dll; this project builds fine and creates A.dll
      • Project B references A.dll
      • After installing AF Client 2016 R2 SP1, Project B will NOT build due to compiler warnings:
        • 5>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3275: The primary reference "A.dll" could not be resolved because it has an indirect dependency on the assembly "OSIsoft.AFSDK, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6238be57836698e6" which was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".

        • 5>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3275: The primary reference "A.dll" could not be resolved because it has an indirect dependency on the assembly "OSIsoft.PI.Net, Version=1.6.3.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805" which was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".

        • 5>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3275: The primary reference "A.dll" could not be resolved because it has an indirect dependency on the assembly "OSIsoft.PI.Configuration, Version=1.6.3.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805" which was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".

        • 5>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3275: The primary reference "A.dll" could not be resolved because it has an indirect dependency on the assembly "OSIsoft.PI.Net.Core, Version=1.6.3.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805" which was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".

        • 5>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3275: The primary reference "A.dll" could not be resolved because it has an indirect dependency on the assembly "OSIsoft.PI.Configuration.PISDKRegDirectoryProvider, Version=1.6.3.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805" which was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".

        • 5>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3275: The primary reference "A.dll" could not be resolved because it has an indirect dependency on the assembly "OSIsoft.PI.Resources, Version=1.6.3.0, Culture=neutral, PublicKeyToken=c3309f0734ba2805" which was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".

       

      My co-workers had no problems building the solution so I tried closing/opening IDE, rebooting, and deleting/re-retrieving all the solution files from our source control, but no luck.  Only after uninstalling AF Client 2016 R2 SP1 was I able to build the solution again.  Has anyone else run into these issues?  Is there a workaround?  The OSIsoft.AFSDK.dll version we reference in our solution is version 2.7.5.7166

       

      Thanks,
      Caleb