I have created a class library in .NET Framework 3.5. Now I want to change the .NET Framework Version to 4.0.
How can I do this?
NET Framework, you can generally upgrade it to . NET Framework 4.5 and its point releases (4.5.
So to answer your question you only need both if your application uses features from both or altenatively you have separate web applications that use . NET 3.5 and . NET 4.0.
Use Registry EditorIn the Registry Editor, open the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full. If the Full subkey isn't present, then you don't have .NET Framework 4.5 or later installed.
In Visual Studio:
If you are not seeing .NET Framework 4 as an option there, ensure you have it installed.
EDIT
I don't think this is what you're asking, but for completeness, one can also point an existing DLL to a later version of the .NET Framework without recompiling using Binding Redirects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With