You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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/orMicrosoft.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
Repro steps
No response
The text was updated successfully, but these errors were encountered: