Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUWP build fails if both VS2017 and VS2019 are installed #25845
Comments
|
I don't have this issue. And I have both 2017 and 2019 installed. I'm actually surprised to hear that it builds with 2019 at all. |
|
That's what the |
|
Just to mention that I've hit this same build issue, although this is after I resolved an earlier build issue by ensuring I had VS2017 installed so I don't expect uninstalling VS2017 is going to fix my build. Uninstalling VS2019 would also be really awkward. |
|
Our CI builds without any trace of 2017. only 2029 is a supported configuration at this point. |
|
ok, I'll try again after removing VS2017. The issue might have come from something being out-of-date from the last time I experimented with Servo earlier in the year. |
|
@jdm can you maybe point me at how the CI handles Windows builds since I'm currently stuck with build problems here. I've completely scrubbed my repo (
I can see that there used to be an appveyor.yml that built with VS2017 removed in November last year but couldn't see where CI for windows was handled now. As far as I can tell I do have ATL/MFC headers installed with VS2019 so not exactly sure what the real failure is here - maybe I have the wrong version of these installed? Also seems odd seeing the This was the original build issue I hit that prompted me to make sure I had VS2017 installed according to the README.md instructions. |
|
When I've seen the ATL/MFC error, I was missing the appropriate components from the VS installer. This is the list of components and workloads that we install in VS on CI, which corresponds with the list at https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2019. |
|
Ah it looks like I only had MFC/ATL headers installed for Visual Studio itself not for the build tools. Now that I've installed these headers for the build tools I've got past the above build failure. Still could be helpful to know where the CI for Windows is configured to have an authorative reference to compare with the README instructions. |
|
oops I hadn't refreshed this issue to see your latest comment but thanks for the pointer! |
|
Incidentally then, it looks like CI does use VS2017 build tools since that script fetches the version 15 build tools installer from: Either way my build (with the VS2019 build tools) has completed now, yay :) thanks again for the pointer. |
|
Oh, we haven't merged servo/taskcluster-config#27 yet, but that's what is actually deployed on CI. |
Doing a UWP build when both VS2017 and VS2019 are installed can fail:
Most of the build uses the 2019 build environment, but rustc's linker uses the 2017 LIBPATH, which causes link errors such as:
Uninstalling VS2017 fixes the problem, but that's not ideal.