microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.47k stars 2.61k forks source link

[BUG]: MSBuild@1 does not pick the latest VCToolsVersion #19320

Open jbrezina opened 10 months ago

jbrezina commented 10 months ago

New issue checklist

Task name

MSBuild@1

Task version

1.231.4

Issue Description

I have a vcxproj using vcpkg dependencies in manifest mode. The c++ project is configured to use v143 platform toolset and c++latest. All the dependencies using vcpkg (configured with cmake) are using VCToolsVersion 14.38.33130, but the project using MSBuild@1 is using version 14.37.32822 and that's causing link error: ##[error]LINK(0,0): Error C1047: The object or library file 'my.lib' was created by a different version of the compiler than other objects like 'Release\dllmain.obj'; rebuild all objects and libraries with the same compiler There might be a problem in configuration of props files (Microsoft.VCToolsVersion.default.props and/or Microsoft.VCToolsVersion.default.props) for Visual Studio located in: c:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\ I can provide diagnostic logs if necessary, but I'm not attaching the whole log for sec. reasons and I'm not sure what parts of the more than 5k lines are relevant for you.

Environment type (Please select at least one enviroment where you face this issue)

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows Server 2022

Relevant log output

##[error]LINK(0,0): Error C1047: The object or library file 'my.lib' was created by a different version of the compiler than other objects like 'Release\dllmain.obj'; rebuild all objects and libraries with the same compiler

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

No response

jbrezina commented 9 months ago

Any update on this please? It's a blocker for out C++ pipelines

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

jbrezina commented 3 months ago

Thank you for the great support of your paid product!