Try creating a new project: “Windows Forms App (.NET Framework)” (instead of “Windows Forms App”).
VS2019 not showing older frameworks installed
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
1 additional answer
Sort by: Most helpful
-
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.