tag:help.appveyor.com,2012-11-13:/discussions/problems/24061-mfc-is-missing-from-latest-visual-studio-2019-imageAppVeyor: Discussion 2019-06-25T21:36:38Ztag:help.appveyor.com,2012-11-13:Comment/473646662019-06-18T19:25:17Z2019-06-18T19:27:42ZMFC is missing from latest Visual Studio 2019 image<div><p><a href="https://ci.appveyor.com/project/Xottab-DUTY/xray-16/builds/25369353/job/nw9oc0u9s95x2gat/messages">https://ci.appveyor.com/project/Xottab-DUTY/xray-16/builds/25369353...</a></p>
<p>Build is failing with missing afxres.h which belongs to MFC.</p>
<p>What can I do? Switch back to 2017 for now?</p></div>Xottab_DUTYtag:help.appveyor.com,2012-11-13:Comment/473646662019-06-18T22:18:58Z2019-06-18T22:18:58ZMFC is missing from latest Visual Studio 2019 image<div><p>This image is in building stage now and we update it often. Please watch <a href="https://github.com/appveyor/ci/issues/2985">https://github.com/appveyor/ci/issues/2985</a>. It would be very helpful if you confirm that VS component we plan to add (<code>Microsoft.VisualStudio.Component.VC.ATLMFC</code>) is correct.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/473646662019-06-19T09:51:42Z2019-06-19T09:51:42ZMFC is missing from latest Visual Studio 2019 image<div><p>According to the component's name, it's correct. But how I can look at the names of components installed by VS Installer on my computer? Just to be 146% sure)</p></div>Xottab_DUTYtag:help.appveyor.com,2012-11-13:Comment/473646662019-06-19T18:13:09Z2019-06-19T18:13:09ZMFC is missing from latest Visual Studio 2019 image<div><p>Appreciate the help. I think <a href="https://stackoverflow.com/a/50983068/6733637">here</a> you can find a proper approach. I would add a filter to the last line though, e.g.</p>
<pre>
<code>Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module VSSetup -Scope CurrentUser -Force
(Get-VSSetupInstance | Select-VSSetupInstance -Product *).packages | ? {$_.id -like "*MFC*" -and $_.Version -like "16*"}</code>
</pre></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/473646662019-06-20T12:23:03Z2019-06-20T12:23:03ZMFC is missing from latest Visual Studio 2019 image<div><p>Here, that should be the list of packages that are required to install.</p>
<p>In VS Installer you can just select "MFC for x86 and x64", it will say that "ATL for x86 and x64" is also required and that's all, while internally "MFC for x86 and x64" and "ATL..." is separated to several packages.</p></div>Xottab_DUTYtag:help.appveyor.com,2012-11-13:Comment/473646662019-06-21T01:19:49Z2019-06-21T01:19:49ZMFC is missing from latest Visual Studio 2019 image<div><p>I tried to double-check and was not able to find an option called exactly <code>MFC for x86 and x64</code>. Here is a screen of <code>SDKs, libraries, and frameworks</code> in <code>Individual components</code> in Visual Studio 2019 version 16.1.3. When specific one should be checked? Sorry my ignorance :)</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/473646662019-06-21T01:25:55Z2019-06-21T01:25:55ZMFC is missing from latest Visual Studio 2019 image<div><blockquote>
<p>not able to find an option called exactly</p>
</blockquote>
<p>True, It was an approximate name, since I'm using Russian-localized VS Installer I just translated it roughly. My bad)</p>
<p>According to the screenshot, it's name is <code>C++ MFC for v142 build tools (x86 & x64)</code></p></div>Xottab_DUTYtag:help.appveyor.com,2012-11-13:Comment/473646662019-06-21T01:39:37Z2019-06-21T01:39:37ZMFC is missing from latest Visual Studio 2019 image<div><p>Sure, thank you :)</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/473646662019-06-25T18:12:54Z2019-06-25T18:12:54ZMFC is missing from latest Visual Studio 2019 image<div><p>Please try now.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/473646662019-06-25T20:45:25Z2019-06-25T20:45:25ZMFC is missing from latest Visual Studio 2019 image<div><p>Thank you! The build is working now: <a href="https://ci.appveyor.com/project/Xottab-DUTY/xray-16/builds/25536057">https://ci.appveyor.com/project/Xottab-DUTY/xray-16/builds/25536057</a></p></div>Xottab_DUTYtag:help.appveyor.com,2012-11-13:Comment/473646662019-06-25T21:36:36Z2019-06-25T21:36:36ZMFC is missing from latest Visual Studio 2019 image<div><p>Great! Thanks for the update.</p></div>Ilya Finkelshteyn