Ranorex .NET Framework Reference Issue

Bug reports.
muharremaltunbag
Posts: 1
Joined: Mon Jun 14, 2021 1:10 pm

Ranorex .NET Framework Reference Issue

Post by muharremaltunbag » Mon Jun 14, 2021 1:17 pm

Dear Team,
I have an issue about plugins while trying to build solution on Ranorex version 9.5.2. It gives an error like below. How can I solve this issue?
Thank you for your suggestions.

Warning MSB3268: The primary reference "Ranorex.Plugin.WinForms.Core" could not be resolved because it has an indirect dependency on the framework assembly "netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.WinForms.Core" or retarget your application to a framework version which contains "netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51".
Warning MSB3268: The primary reference "Ranorex.Plugin.Wpf.Core" could not be resolved because it has an indirect dependency on the framework assembly "netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.Wpf.Core" or retarget your application to a framework version which contains "netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51".
Warning MSB3268: The primary reference "Ranorex.Plugin.WinForms.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Data.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.WinForms.Core" or retarget your application to a framework version which contains "System.Data.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.Wpf.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Data.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.Wpf.Core" or retarget your application to a framework version which contains "System.Data.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.WinForms.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Diagnostics.StackTrace, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.WinForms.Core" or retarget your application to a framework version which contains "System.Diagnostics.StackTrace, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.Wpf.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Diagnostics.StackTrace, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.Wpf.Core" or retarget your application to a framework version which contains "System.Diagnostics.StackTrace, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.WinForms.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Globalization.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.WinForms.Core" or retarget your application to a framework version which contains "System.Globalization.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.Wpf.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Globalization.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.Wpf.Core" or retarget your application to a framework version which contains "System.Globalization.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.WinForms.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Net.Sockets, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.WinForms.Core" or retarget your application to a framework version which contains "System.Net.Sockets, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.Wpf.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Net.Sockets, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.Wpf.Core" or retarget your application to a framework version which contains "System.Net.Sockets, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.WinForms.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.WinForms.Core" or retarget your application to a framework version which contains "System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51".
Warning MSB3268: The primary reference "Ranorex.Plugin.Wpf.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.Wpf.Core" or retarget your application to a framework version which contains "System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51".
Warning MSB3268: The primary reference "Ranorex.Plugin.WinForms.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.WinForms.Core" or retarget your application to a framework version which contains "System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.Wpf.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.Wpf.Core" or retarget your application to a framework version which contains "System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.WinForms.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Security.Cryptography.Algorithms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.WinForms.Core" or retarget your application to a framework version which contains "System.Security.Cryptography.Algorithms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.Wpf.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Security.Cryptography.Algorithms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.Wpf.Core" or retarget your application to a framework version which contains "System.Security.Cryptography.Algorithms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.WinForms.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Security.SecureString, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.WinForms.Core" or retarget your application to a framework version which contains "System.Security.SecureString, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.Wpf.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Security.SecureString, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.Wpf.Core" or retarget your application to a framework version which contains "System.Security.SecureString, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.WinForms.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Threading.Overlapped, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.WinForms.Core" or retarget your application to a framework version which contains "System.Threading.Overlapped, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.Wpf.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Threading.Overlapped, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.Wpf.Core" or retarget your application to a framework version which contains "System.Threading.Overlapped, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.WinForms.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Xml.XPath.XDocument, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.WinForms.Core" or retarget your application to a framework version which contains "System.Xml.XPath.XDocument, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Warning MSB3268: The primary reference "Ranorex.Plugin.Wpf.Core" could not be resolved because it has an indirect dependency on the framework assembly "System.Xml.XPath.XDocument, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "Ranorex.Plugin.Wpf.Core" or retarget your application to a framework version which contains "System.Xml.XPath.XDocument, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex .NET Framework Reference Issue

Post by odklizec » Tue Jun 15, 2021 6:02 am

Hi,

My guess is that you've upgraded from an old Ranorex version (which one?) and that your solution contains several projects?

At first, please try to install .Net 4.6.2 SDK, available here:
https://www.microsoft.com/en-us/downloa ... x?id=53321
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration