Unable to change the target framework from 4.5.1 to 4.6.1 for my project

Rama Krishna boyina 21 Reputation points
2022-05-04T09:44:11.377+00:00

198799-rk2.pngIn my solution I have 10 project. In that 2 web projects and remaining class library and wpf project.
It was build in dotnet framework 4.5.1. Now i want to upgrade the solution to 4.6.1.
I went to each project properties and changed Target framework to 4.6.1.Then I got popup about Project unsave files.
I clicked on YES. After target framework becomes 4.5.1. I tried several times to change target framework to 4.6.1
But it is not allowing to change the framework.
Could you please guide me on this issue.

Regards
RamaKrishna
198807-rk.png

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,140 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jiachen Li-MSFT 28,946 Reputation points Microsoft Vendor
    2022-05-05T06:22:30.6+00:00

    Hi @Rama Krishna boyina
    See if the solution in the following link works for you.
    https://stackoverflow.com/a/24768050/17334287
    https://stackoverflow.com/a/36771226/17334287
    Best Regards.
    Jiachen Li

    ----------

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments