简体   繁体   中英

Azure pipeline Error C1083: Cannot open include file: 'atlstr.h' since yesterday

Ok first of all, this is probably on Azure Pipelines side and some change that happened on Wednesday on their server-side (we do not use our own servers, all runs on Azure machines). Do not redirect me to how to reference ALT libraries in Visual Studio for a C++ project because our project does build locally perfectly. Even more, I have triggered the same pipeline, on the same exact commit on Wednesday and Today, and one is completely successful, and the pipeline build today fails with:

Error MSB8041: MFC libraries are required for this project.

Error C1083: Cannot open include file: 'atlstr.h': No such file or directory

You can see here the configuration for the C++ project that fails:

在此处输入图像描述

Anybody facing the same issue or knows how to fix it?

Well apparently on Thursday the updated 'windows-latest' to 'windows-2022'.

So we were building locally with windows-2019 but the server was windows-2022.

To fix it you just need to update your pipeline yaml:

pool:
   vmImage: 'windows-latest'

to

pool:
   vmImage: 'windows-2019'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM