Beckhoff / TF6000_ADS_DOTNET_V5_Samples

Sample code for the Version 6.X series of the TwinCAT ADS .NET Packages
https://infosys.beckhoff.com/content/1033/tc3_ads.net/9407515403.html?id=6770980177009971601
BSD Zero Clause License
37 stars 15 forks source link

Wrong dependencies in version 6.0.216 #44

Closed drvic10k closed 1 year ago

drvic10k commented 1 year ago

In version 6.0.216 you are referencing old version of Abstractions (6.0.190)

image

RalfHeitmann commented 1 year ago

I just checked the dependencies of the ADS Packages. I don't see any wrong dependency there. Which package shows the problem?

image image

Eventually you have a problem with your local nuget package cache. You could try to clean it with nuget CLI commands.

drvic10k commented 1 year ago

it's not visible on the package, it is a runtime exception

RalfHeitmann commented 1 year ago

Sure, but I expect that within your project a wrong version of the dll is located on the disk, because it is not properly updated by nuget, or because your application build is not renewing the dll from the correct package properly (these are common problems in VisualStudio that bite from time to time). The runtime simply loads the Assembly it finds in its search path because different Nuget package versions have all the same AssemblyVersion. You could check the location where the wrong Dll is loaded from in the Vs-Debugger (Modules View) and check that version.

So please ensure:

Because the package dependencies seem to be correct, it must be an issue in updating/copying the package/dlls on your system. Or picking the wrong dll from an unexpected location during runtime.

drvic10k commented 1 year ago

the problem was with an old version of one of our own nuget packages having a dependency on 6.0.190

thanks for pointing me to the solution