C
C#2y ago
yanny2

❔ 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
yanny2
yanny2OP2y ago
I have tried .NET Upgrade Assistant however, it doesn't appear to work with this at all.
yanny2
yanny2OP2y ago
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.
yanny2
yanny2OP2y ago
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
friedice
friedice2y ago
$newproject
MODiX
MODiX2y ago
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
Angius
Angius2y ago
When updating from old Framework to modern .NET, chances are you'll have to edit the csproj file manually
Florian Voß
Florian Voß2y ago
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
yanny2
yanny2OP2y ago
Yes I just have to do this. Upgrade assistant just doesn't work
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