microsoft / msix-packaging

MSIX SDK
MIT License
978 stars 165 forks source link

[BUG] task: MsixPackaging@1, msbuildVersion: 'latest' ==> Microsoft (R) Build Engine version 4.8.4161.0 #518

Open peterdrier opened 2 years ago

peterdrier commented 2 years ago

Pipeline task:

on a devops pipeline set to: vmImage: 'windows-latest'

resulted in msbuild running with version: Microsoft (R) Build Engine version 4.8.4161.0

I also tried forcing the msbuildVersion to '16.0' per the dropdown options, and that didn't change the version which was run.

Forcing the buildLocation did work (but hopefully we don't want to make things this fragile..): msbuildLocation: 'C:/Program Files/Microsoft Visual Studio/2022/Enterprise/MSBuild/Current/Bin/msbuild.exe'

And wow, does running a version of msbuild which is 12 major versions behind cause all sorts of problems I just blew half a day on.. :-/