C
C#2y ago
ApathyErr

❔ how to transfer your project from .NET Framework 4.8 to the latest version?

HELP
20 Replies
Jimmacle
Jimmacle2y ago
change the target version
ApathyErr
ApathyErrOP2y ago
How do I do this? I used to .Net Framework 4.8 and now I want to transfer my project to .Net 7.0
jcotton42
jcotton422y ago
you need to edit the csproj directly, it won't show in the UI
jcotton42
jcotton422y ago
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.
Angius
Angius2y ago
Now, mind you, there will be breaking changes You can't just swap out 4.8 for 7.0 and call it a day
ApathyErr
ApathyErrOP2y ago
sadge
reflectronic
reflectronic2y ago
i 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
Mayor McCheese
Possibly need to convert to sdk project too Would 4.8 create sdk style by default?
Monsieur Wholesome
the upgrade-assistant handles that and its easy to use
Mayor McCheese
Didn't know that was a thing now
Monsieur Wholesome
îts awesome!
Mayor McCheese
I don't have any old 4 cruft lying around any longer At least not that's maintained
HimmDawg
HimmDawg2y ago
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 owo
Mayor McCheese
NB: it's pretty simple to update most projects to sdk style; at worst you create a new project and build it back up
ApathyErr
ApathyErrOP2y ago
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
Monsieur Wholesome
lovely
jcotton42
jcotton422y ago
None of the framework templates use SDK style by default
Mayor McCheese
wasn't sure if that had changed
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server