Your application declares that it is compliant with the .NET Framework Client Profile by using the <supportedRuntime> element in the application's configuration file, application.exe.config. Assign "client" to the sku attribute. The following XML shows an example setting.
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" sku="client"/>
</startup>
</configuration>
The sku attribute name is case-sensitive. If the sku attribute is missing, or if its value is set to anything other than "client", the runtime assumes the application is not a .NET Framework Client Profile application.
If there are multiple <supportedRuntime> elements in the same configuration file that has the same major version number:
And there are one or more elements have sku="client", the application runs against the .NET Framework Client Profile of the specified version.
And none of the elements has sku="client", the application runs only on the specified full version of the .NET Framework.
Note: |
|---|
If you set sku=”client”, the application will run on a computer that has either the
.NET Framework Client Profile version or the full version of the .NET Framework 3.5 SP1 or later. The application will not run on a computer that has a version before the .NET Framework 3.5 SP1.
|
Testing
An application that does not have the sku="client" setting requires the full .NET Framework to be installed. When the application is installed, the user will be prompted to install the full .NET Framework. If you try to run an application that does not have the sku="client" setting on a computer that just has the .NET Framework Client Profile installed, the application will fail to run and an error will be displayed.
You can turn off this safety check and allow your application to run on the .NET Framework Client Profile even if it does not have the configuration file or the sku="client" setting.
Under HKLM\SOFTWARE\Microsoft\Fusion, create a new registry key named NoClientChecks as a DWORD type. Set it to any value except 0 to turn off the safety check in the runtime. This works for both 32-bit and 64-bit operating systems.
Note: |
|---|
Only use this registry key for testing purposes. Do not set this key on any computer other than a test computer. The use of this key on production and end-user computers is unsupported.
|