Microsoft .Net Framework TargetFrameWork

Srivastava, Shailendra 1 Reputation point
2020-06-02T09:58:30.55+00:00

I compiled the .net code in 4.6.1 in development environment. While compilation, 4.6.1 has been set in targetframework in config file in development environment. In Production environment, 4.8 .Net framework is installed. So my question is -

  1. Is it mandatory to put 4.6.1 in TargetFramework in Production Web Config?
  2. Please correct me here if I am mistaken - If I mention 4.6.1 in TargetFramework in Prodcution web config and in Production 4.8 framework is installed then application will always choose latest framework, it means 4.8. it means 4.8 will surpass 4.6.1.
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,513 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 85,591 Reputation points
    2020-06-02T10:42:28.593+00:00

    Hi,

    Q&A currently supports the products listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).

    You can reach the experts in the dedicated .NET Framework forum over here:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=netdevelopment

    (Please don't forget to accept helpful replies as answer)

    Best regards,
    Leon

    0 comments No comments