microsoft / microsoft/msix-packaging
[BUG] task: MsixPackaging@1, msbuildVersion: 'latest' ==> Microsoft (R) Build Engine version 4.8.4161.0
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.1k
- Forks
- 193
- Avg merge
- 2h 16m
- Merged PRs (30d)
- 2
Description
Pipeline task:
- task: MsixPackaging@1
displayName: Build Msix
inputs:
outputPath: '$(Build.ArtifactStagingDirectory)\AppxPackages'
solution: '$(solution)'
clean: false
generateBundle: false
buildConfiguration: '$(buildConfiguration)'
buildPlatform: '$(buildPlatform)'
updateAppVersion: false
appPackageDistributionMode: 'SideloadOnly'
msbuildLocationMethod: 'version'
msbuildVersion: 'latest'
msbuildArchitecture: 'x64'
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.. :-/
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the MsixPackaging@1 task's handling of msbuildLocationMethod, msbuildVersion, and msbuildArchitecture on the windows-latest image. Reproduce the configuration shown in the issue and verify that selecting 'latest' or '16.0' resolves and runs the intended MSBuild version without requiring a hard-coded msbuildLocation.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100