2 of 2 people found this helpful
I believe to recall that Visual Studio recently prompted me to change my .NET Framework target to 4.5.2 because this is the target Framework of the referenced AF SDK. This happened to me after upgrading to AF Client 2016 R2.
You should find .NET Framework 4.5.2 already installed. All you need to do is to change the target Framework for your project before compiling.
Odd. THe 2016 R2 Release Notes states that applications must target .NET 4.5.2, yet under the System Prerequisites it states that .NET 4.6 will be installed.
Thanks Gregor. It turns out .NET 4.5.2 was not pre-installed on my system (just 4.5.1), so I grabbed the 4.5.2 developer pack from Microsoft and installed it. Once this was complete, I was able to change the target version to 4.5.2 in my project properties and successfully compile the application. Appreciate your help with this.