❔ how to transfer your project from .NET Framework 4.8 to the latest version?
HELP
20 Replies
change the target version
How do I do this? I used to .Net Framework 4.8 and now I want to transfer my project to .Net 7.0
you need to edit the csproj directly, it won't show in the UI
you may also want to look at the upgrade assistant https://learn.microsoft.com/en-us/dotnet/core/porting/upgrade-assistant-overview
Overview of the .NET Upgrade Assistant - .NET Core
Introducing the .NET Upgrade Assistant tool that helps migrate from .NET Framework and upgrades your projects to .NET 6.
Now, mind you, there will be breaking changes
You can't just swap out
4.8
for 7.0
and call it a dayi mean, for WPF, it's unlikely that there will be anything that matters
i bet the only one you'll run into is with
Process.Start
Possibly need to convert to sdk project too
Would 4.8 create sdk style by default?
the upgrade-assistant handles that
and its easy to use
Didn't know that was a thing now
îts awesome!
I don't have any old 4 cruft lying around any longer
At least not that's maintained
Just a little addition. The upgrade assistent tries it's best to convert your project, but it has it's limits. So for bigger projects there might be a couple of errors that need manual fixing
NB: it's pretty simple to update most projects to sdk style; at worst you create a new project and build it back up
After updating the project with the "upgrade-assistant", I didn't have to fix anything in the code and now I can use .NET 7.0
thx everyone
lovely
None of the framework templates use SDK style by default
wasn't sure if that had changed
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.