appveyor / ci

AppVeyor community support repository
https://www.appveyor.com
344 stars 66 forks source link

Provide VS 16.11.2 image #3748

Closed rseanhall closed 3 years ago

rseanhall commented 3 years ago

Since VS 2019 16.11.3, WiX no longer builds on the Visual Studio 2019 image. With the new image update, we can no longer fallback to the Previous Visual Studio 2019 image for a working build. See https://help.appveyor.com/discussions/problems/30452-build-broken-after-20211002-update-to-visual-studio-2019-image and https://developercommunity.visualstudio.com/t/libucrtlibstreamobj-error-lnk2001-unresolved-exter/1544787.

Please provide the ability to specify the 2021/09/04 version of the Visual Studio 2019 image until we can build with an updated Visual Studio image that doesn't have that bug.

FeodorFitsner commented 3 years ago

Oh, sorry about that. So, you need like "Previous Previous Visual Studio 2019" image then? Could you send the link to your project please?

PS: Microsoft team can obviously create an account and do a repro build. Wondering what's wrong with the image. Neither VS 2019 installation script, nor WiX setup changed for a while. Have you tried doing the repro while in RDP to a build worker?

rseanhall commented 3 years ago

It is a legitimate bug in Visual Studio, I think we're past needing them to be able to reproduce it. Right now, yes we need a "Previous Previous Visual Studio 2019" image but that might keep on sliding depending on when they actually fix the bug so it's specifically the 2021/09/04 image we would want to use.

We feel bad asking for support on this since we're using the free tier, so thanks for anything that you can do. Our project is https://ci.appveyor.com/project/wixtoolset.

FeodorFitsner commented 3 years ago

No problem, we've added a new vs2019-16-11-2 image which is available just to wixtoolset account. Give it a try and let me know how it worked.

rseanhall commented 3 years ago

Thanks! The build has already passed the point where it fails on the newer images, so this looks like it was exactly what we needed. https://ci.appveyor.com/project/wixtoolset/wix4/builds/41398567

FeodorFitsner commented 3 years ago

Nice! Let me know when VS fixed the issue and the image is no longer needed.

rseanhall commented 2 years ago

@FeodorFitsner Microsoft diagnosed the issue and we are able to work around it, so we are able to use the latest Visual Studio 2019 image. We don't need the special image any more.

The problem was that we were statically linking an x64 and ARM64 .dll with the v141 toolset and Win11 SDK. This is why that first image broke us - the Win11 SDK was installed on the image. Microsoft still hasn't fixed the bug, so someone could still theoretically run into this issue. It was probably unusual that we were building with v141 with VS2019 though, since v141 is the C++ toolset for VS2017.

FeodorFitsner commented 2 years ago

OK, thanks for the update! We are disabling that image then.