Search code examples
.net.net-framework-version

VS2017 - Framework 4.6.2 is not shown as an option in a class library project in c#, but it is in a vb windows forms one


It's the same visual studio 2017 instalation. I've already downloaded and installed the net framework 4.6.2 developer pack from here

windows forms project I've created

class library project I've downloaded and want to switch framework

Regards!


Solution

  • When you created the C# library, I assume you selected a .Net Standard Library instead of a Windows Classic Desktop library. You can modify the csproj file by hand and change the target framework to .Net 4.6.2 like so:

    <TargetFramework>net462</TargetFramework>
    

    Once you do that, the UI should updated in the Project Properties screen.