Build Failed 9.4.1 .NetFramework v4.7.2 Notfound

Ranorex Studio, Spy, Recorder, and Driver.
gsb
Posts: 23
Joined: Wed Mar 17, 2021 3:49 pm

Build Failed 9.4.1 .NetFramework v4.7.2 Notfound

Post by gsb » Thu Mar 18, 2021 4:14 pm

Getting error

The reference assemblies for framework ".NETFramework,Version=v4.7.2" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. (MSB3644) - C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets:1179,5

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

Re: Build Failed 9.4.1 .NetFramework v4.7.2 Notfound

Post by odklizec » Wed Apr 07, 2021 9:32 am

Hi,

Have you solved this problem? If not, please try to update Ranorex with most recent 9.5.0 and if it does not help, install the 4.7.2 SDK or Targeting Pack, as suggested in the error. You can get it here: https://dotnet.microsoft.com/download/d ... ork/net472
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

gsb
Posts: 23
Joined: Wed Mar 17, 2021 3:49 pm

Re: Build Failed 9.4.1 .NetFramework v4.7.2 Notfound

Post by gsb » Wed Apr 07, 2021 4:49 pm

yeah thanks,

Resolved by changing the sdk version from 4.7.2 to 4.6 have emailed also to Endrit Maliqi

SOlution > Project > Project Option > Compiling