|(I'm not sure there's a better place to ask)
I'm trying to use VS2022 in our build pipeline.
I have a pipeline like this :
- task: CmdLine@2
displayName: 'Choco install additional packages'
choco install windows-sdk-8.1 visualstudio2017community microsoft-build-tools-2013 visualstudio2022professional
- task: VSBuild@1
displayName: 'Build Debug143|x64'
I get errors that it cannot find the installation.
Quote:2022-02-17T18:46:30.0197396Z ##[error]MyProject.vcxproj(77,3): Error MSB4019: The imported project "C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Default.props" was not found. Confirm that the expression in the Import declaration "C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Default.props" is correct, and that the file exists on disk.
When I put a "dir /s" in my pipeline, it looks like VS2022 is not installed in that path.
I'm not sure what I have to do to make it work.
Any Idea ?
CI/CD = Continuous Impediment/Continuous Despair