WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
115 stars 54 forks source link

Get Solution Task returning old version #245

Open jblaseske opened 3 years ago

jblaseske commented 3 years ago

We have noticed a pipeline change in the last week where the Get Solution task, when implemented within a release pipeline after a solution has been upgraded, is returning the previous (not post-upgrade) version of the solution. I am guessing the task is using a cached connection. If this is the case, is there a way to re-cache the connection prior to invoking this task?

WaelHamze commented 2 years ago

@jblaseske did you try to set RequireNewInstance = true in the connection string

https://docs.microsoft.com/en-us/power-apps/developer/data-platform/xrm-tooling/use-connection-strings-xrm-tooling-connect#connection-string-parameters