You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extenstion fails to deploy to azure pipelines when the image is set to VS2019. This is due to the detection of the VM image not being recognised properly and defaulting to installing the VS2017 extension. This could be solved by setting the parameter VS_VERSION to each repo, but this is tedious and not futureproof.
Detailed repro steps so we can see the same problem
Details about Problem
nanoFramework area: https://github.com/nanoframework/nf-tools/blob/master/AzureDevOps/TaskInstallMSBuildComponents/TaskFiles/install-nf-build-components.ps1
VS version: 2019
VS extension version: latest
Target: all
Firmware image version: all
Device capabilities output: N/A
Description
The extenstion fails to deploy to azure pipelines when the image is set to VS2019. This is due to the detection of the VM image not being recognised properly and defaulting to installing the VS2017 extension. This could be solved by setting the parameter
VS_VERSION
to each repo, but this is tedious and not futureproof.Detailed repro steps so we can see the same problem
Build PR nanoframework/nanoFramework.Json#41
Other suggested things
Expected behaviour
The build would run sucessfully.
Screenshot
Additional context
Make an effort to fix the bug
After some research, it seems that https://github.com/microsoft/vswhere would be able to fix this issue. Mainly the use of the function discribed in https://github.com/microsoft/vswhere/wiki/Find-VSIXInstaller .
Additionally, it seems that this tool is installed on the hosted build agents by default: microsoft/azure-pipelines-tasks#4441
The text was updated successfully, but these errors were encountered: