❔ Retarget solution to .net 7
I may start a new project with .net 7, but I am not able to re target and old project to .net 7
Why is this?
10 Replies
I have tried .NET Upgrade Assistant however, it doesn't appear to work with this at all.
I don't really care if targetting to .net 7 breaks everything, It likely will not work out of the box regardless. At this rate I think I am better off manually editing all of the csproject files and then working from there. I have had to run windows and VS to even try these utilities, which don't work anyway.
Similar issues here:
https://stackoverflow.com/questions/72563165/why-cant-i-target-net-6-in-my-vs2022-windows-app
https://stackoverflow.com/questions/69952447/vs-2022-cannot-change-target-platform-to-net-6-0-for-a-project-created-in-vs
It would seem that I am expected to simply use the upgrade assistant instead of retargetting and dealing with issues as they arise.
Stack Overflow
Why can't I target .Net 6 in my VS2022 Windows App?
I have to maintain an old legacy Windows .Net Forms C# app.
I can open and build the app as-is in VS2022, targetting .Net 4.8, but I like to target .Net 6 now. However .Net 6 is not an option in the
Stack Overflow
VS 2022 - cannot change Target Platform to .Net 6.0 for a project c...
Just installed VS 2022 on a machine, after I removed VS 2019 (VM with limited space).
VS 2022 installed fine. I can create a .Net 6.0 project and compile it - no problem.
I can open the project I
$newproject
When creating a new project, prefer using .NET over .NET Framework, unless you have a very specific reason to be using .NET Framework.
.NET Framework is now legacy code and only get security fix updates, it no longer gets new features and is not recommended.
https://cdn.discordapp.com/attachments/569261465463160900/899381236617855016/unknown.png
When updating from old Framework to modern .NET, chances are you'll have to edit the csproj file manually
upgrade assistant tool does a great job in fixing most of the dependencies issues and updating the references but there are usually some left that need to get cleaned up manually
Yes I just have to do this.
Upgrade assistant just doesn't work
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.