This project has moved and is read-only. For the latest updates, please go here.

Problem when compiling as DotNET 4.0 client profile

Topics: Errors
Jul 8, 2016 at 4:51 PM
Hello! Thanks for the great work.

I'm trying to compile under 4.0 client (which is the latest included by default in Windows 7 SP1) and I'm facing this error:
.NETFramework,Version=v2.0,Profile=Client" 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.
It is compiling, I see the 4.0 under bin updating.
The problem is that after being sure it compiles correctly I'd like to include it directly into my project.
How can I disable compiling for all architectures but 4.0 client?
I can't seem to find that configuration anywhere, I'm sorry if this is very basic or not directly related to your project.
Jul 9, 2016 at 1:24 AM
This library requires assemblies in the full .NET 4.0 library and does not support the .NET 4.0 Client Profile.
Marked as answer by dahall on 7/20/2016 at 11:12 AM