CMS12 .NET5 Upgrade

Vote:
 

Hi Team,

I have started upgrading my CMS11 application to CMS 12.

Using Upgrade Assistant tool to convert. As part this, i have started with one of existing class library but always target framework is setting with net6.0 instead of net5.0.

I have only net5.0 SDK installed in my system but not sure why it is taking always net6.0.

Tried with setting defaut target framework version as mentioned in below link but still same issue.

https://github.com/episerver/upgrade-assistant-extensions

Please let me know what else i am missing here.

Please refer below screenshot reference.

#272730
Feb 22, 2022 13:01
Vote:
 

Based on this blogpost https://world.optimizely.com/blogs/Johan-Bjornfot/Dates1/2022/1/upgrade-to-cms-12-updates-to-upgrade-assistant-extensions/

It looks like you need to clone the upgrade-assistant and build localy and use the CLI from the output folder for net5

"is to instead of installing the upgrade-assistant tool, clone the upgrade-assistant repo and build it locally. The CLI tool is targeting both net5 and net6 so you can then run the executable from the net5 output folder. "

#272731
Feb 22, 2022 13:23
Vote:
 

You have to run set DefaultTargetFrameworks__LTS=net5.0 before running upgrade-assistant upgrade {projectName}.csproj --extension "{extensionPath}" --ignore-unsupported-features --target-tfm-support LTS

#272735
Feb 22, 2022 16:41
Vote:
 

Default target fragemwork command worked now when i try with windows command prompt.

Last time i did in Windows Powershell and always targated to net6.0

#274498
Feb 24, 2022 10:22
Vote:
 

Could also start looking at .NET 6, depending on what packages you use: https://world.optimizely.com/blogs/Magnus-Rahl/Dates/2022/2/rolling-out-support-for--net-6/

#275062
Mar 01, 2022 1:30
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.