VS2019 not showing older frameworks installed

bek1 26 Reputation points
2021-04-13T20:05:22.703+00:00

I haven't created a new project for about 6 months (this is Windows Forms). Today I tried to create a new .NET project and started work. I needed impersonation, and i have a reusable class I always use. The class would not work because the methods seem to not work in .NET 5. So after a couple of searches with no good example showing up in .NET 5, I decided to just go back to 4.6.2 where I know it works. I have two other VS2019 projects that show the 4.6.2 framework, but it doesn't show for this project. I reinstalled framework 4.6.2, and still no luck. What in the world is going on?

I can't target any old frameworks.

I would be happy to also use a simple example of impersonation in .NET 5, if anyone has that available. This is very discouraging. I have a 1-week deadline on this project.

Developer technologies | .NET | .NET Runtime
0 comments No comments
{count} vote

Answer accepted by question author
  1. Viorel 126.3K Reputation points
    2021-04-13T20:44:28.9+00:00

    Try creating a new project: “Windows Forms App (.NET Framework)” (instead of “Windows Forms App”).

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. bek1 26 Reputation points
    2021-04-13T21:18:34.39+00:00

    Doh. Thank you.

    Visual Studio has gotten so complex since I started using it in 2002. I appreciate the help.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.