tfsaggregator / aggregator-cli

A new version of Aggregator aiming at Azure DevOps (ex Visual Studio Team Services)
https://tfsaggregator.github.io/
Apache License 2.0
74 stars 32 forks source link

Issue updating to latest version of aggregator-cli #260

Closed marnheus closed 2 years ago

marnheus commented 2 years ago

Steps to reproduce

I've updated the cli to the latest version (1.2) from releases. I then ran the update command to update my instance

aggregator-cli.exe update.instance --resourceGroup rg-Aggregator-ADO --instance xxx

Expected behavior

Everything works smoothly

Actual behavior

I get 500 and compilation errors

Diagnostic logs

2022-03-25T16:37:34.676 [Information] Script for function 'userStoryTest' changed. Reloading. 2022-03-25T16:37:35.207 [Error] run.csx(14,23): error CS1705: Assembly 'aggregator-function' with identity 'aggregator-function, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' which has a higher version than referenced assembly 'Microsoft.Extensions.Logging.Abstractions' with identity 'Microsoft.Extensions.Logging.Abstractions, Version=3.1.18.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' 2022-03-25T16:37:35.396 [Error] run.csx(15,27): error CS1705: Assembly 'aggregator-webshared' with identity 'aggregator-webshared, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' which has a higher version than referenced assembly 'Microsoft.Extensions.Logging.Abstractions' with identity 'Microsoft.Extensions.Logging.Abstractions, Version=3.1.18.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' 2022-03-25T16:37:35.516 [Warning] run.csx(16,24): warning CS1701: Assuming assembly reference 'Microsoft.AspNetCore.Mvc.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' used by 'aggregator-function' matches identity 'Microsoft.AspNetCore.Mvc.Abstractions, Version=3.1.18.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' of 'Microsoft.AspNetCore.Mvc.Abstractions', you may need to supply runtime policy 2022-03-25T16:37:35.517 [Information] Compilation failed.

giuliov commented 2 years ago

My bad, I should have stated clearly that upgrade won't work in this scenario. New version use Function Runtime v4 and .NET 6 instead of Function Runtime v2 and .NET Core 3.1. As of now you must create new instances, redeploy the rules and remap.

marnheus commented 2 years ago

I did that actually ;)