You don't. If your code is compiled against .NET 4.0, your C# code won't be running because the .NET 4.0 isn't installed.
These are the command lines
] to install the .NET Framework.
You'll especially want to read this page
] on the options for installing .NET 4.0.