episerver / upgrade-assistant-extensions

Apache License 2.0
10 stars 6 forks source link

Wrong framework version targeted #20

Closed marijorg closed 2 years ago

marijorg commented 2 years ago

I've followed the instructions on how to set target framework for upgrade assistant: https://github.com/episerver/upgrade-assistant-extensions#using-the-extension But I can see from log files that .NET 6 sdk is being used....

Setting env variable does not seem to work.

image

lunchin commented 2 years ago

It will always use the latest version of msbuild because the tool is written in dotnet 6. However it should set the correct version when updating the project file framework version,

vyan024 commented 2 years ago

@marijorg

If you have multiple versions of SDK installed and want to build with specific .NET5 SDK, you'll need to build your own version of upgrade-assistant instead. Please refer to Johan's blog post with more details.

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

marijorg commented 2 years ago

Ok, closing issue.