C
C#4mo ago
iampeiru

✅ How to use .NET 4.5 in Visual Studio 2022

i want use .net 4.5 in Visual Studio 2022,but i can't find it.
11 Replies
Angius
Angius4mo ago
Why 4.5 specifically? VS 2022 supports 4.6 and up, if I'm not mistaken So for an ancient version like 4.5 you'll need a sufficiently ancient version of the IDE as well Also, to be more precise, what you want is .NET Framework 4.5 .NET is the modern version that starts with version 5.0
Jimmacle
Jimmacle4mo ago
unless you're working on an existing legacy project, you should be using .NET 8
SG97
SG974mo ago
oddly enough, we've used VS2022 with .net fx 4.5.2 for years
canton7
canton74mo ago
Yes, VS2022 should support .NET 4.5 just fine. Although you might be prompted to download an extra targetting pack But, .NET 4.5 is EOL. You should be on .NET 4.6.2 if you're forced to stay on .NET Framework
Angius
Angius4mo ago
4.6 at least Ideally, 4.8, the last version of .NET Framework Ideally ideally, you're not forced to use Fx and you can go with .NET 8
canton7
canton74mo ago
Yeah, but I work in a regulated industry and I can sympathise with needing to stay on Framework
Angius
Angius4mo ago
I will never get the "security is paramount to our industry, so we will use as obsolete of a version as humanly possible"
canton7
canton74mo ago
It's not really that. It's more there's a lot of regulation, paperwork and testing involved in pushing out a new release, and actually getting new releases into things like hospitals is painful. You're easily looking at £100k+. This is all driven by safety, less so security. .NET Core versions go EOL in 3 years, and there's a good chance you'll get unlucky and have to release with less than that to go, whereas Framework is just as supported, just as secure, and doesn't go EOL
Angius
Angius4mo ago
Fair
canton7
canton74mo ago
Yes you don't get the shiny stuff, but using 3rd-party code / nuget packages / etc is painfully paperwork-y anyway
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server