Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
4 of 7 tasks
jbrezina opened this issue Nov 24, 2023 · 4 comments
Closed
4 of 7 tasks

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

jbrezina opened this issue Nov 24, 2023 · 4 comments
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug

Comments

@jbrezina
Copy link

jbrezina commented Nov 24, 2023

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)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

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
Copy link
Author

jbrezina commented Dec 4, 2023

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

Copy link

github-actions bot commented Jun 1, 2024

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

@github-actions github-actions bot added the stale label Jun 1, 2024
@jbrezina
Copy link
Author

jbrezina commented Jun 4, 2024

Thank you for the great support of your paid product!

@github-actions github-actions bot removed the stale label Jun 4, 2024
@v-schhabra v-schhabra added Area: ABTT Akvelon Build Tasks Team area of work and removed Area: Release labels Jun 14, 2024
@jbrezina
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug
Projects
None yet
Development

No branches or pull requests

3 participants