MFC is missing from latest Visual Studio 2019 image

Xottab_DUTY's Avatar


18 Jun, 2019 07:25 PM

Build is failing with missing afxres.h which belongs to MFC.

What can I do? Switch back to 2017 for now?

  1. 1 Posted by Ilya Finkelshte... on 18 Jun, 2019 10:18 PM

    Ilya Finkelshteyn's Avatar

    This image is in building stage now and we update it often. Please watch It would be very helpful if you confirm that VS component we plan to add (Microsoft.VisualStudio.Component.VC.ATLMFC) is correct.

  2. 2 Posted by Xottab_DUTY on 19 Jun, 2019 09:51 AM

    Xottab_DUTY's Avatar

    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)

  3. 3 Posted by Ilya Finkelshte... on 19 Jun, 2019 06:13 PM

    Ilya Finkelshteyn's Avatar

    Appreciate the help. I think here you can find a proper approach. I would add a filter to the last line though, e.g.

    Install-PackageProvider -Name NuGet -MinimumVersion -Force
    Install-Module VSSetup -Scope CurrentUser -Force
    (Get-VSSetupInstance | Select-VSSetupInstance -Product *).packages | ? {$ -like "*MFC*" -and $_.Version -like "16*"}
  4. 4 Posted by Xottab_DUTY on 20 Jun, 2019 12:23 PM

    Xottab_DUTY's Avatar

    Here, that should be the list of packages that are required to install.

    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.

  5. 5 Posted by Ilya Finkelshte... on 21 Jun, 2019 01:19 AM

    Ilya Finkelshteyn's Avatar

    I tried to double-check and was not able to find an option called exactly MFC for x86 and x64. Here is a screen of SDKs, libraries, and frameworks in Individual components in Visual Studio 2019 version 16.1.3. When specific one should be checked? Sorry my ignorance :)

  6. 6 Posted by Xottab_DUTY on 21 Jun, 2019 01:25 AM

    Xottab_DUTY's Avatar

    not able to find an option called exactly

    True, It was an approximate name, since I'm using Russian-localized VS Installer I just translated it roughly. My bad)

    According to the screenshot, it's name is C++ MFC for v142 build tools (x86 & x64)

  7. 7 Posted by Ilya Finkelshte... on 21 Jun, 2019 01:39 AM

    Ilya Finkelshteyn's Avatar

    Sure, thank you :)

  8. 8 Posted by Ilya Finkelshte... on 25 Jun, 2019 06:12 PM

    Ilya Finkelshteyn's Avatar

    Please try now.

  9. 9 Posted by Xottab_DUTY on 25 Jun, 2019 08:45 PM

    Xottab_DUTY's Avatar
  10. 10 Posted by Ilya Finkelshte... on 25 Jun, 2019 09:36 PM

    Ilya Finkelshteyn's Avatar

    Great! Thanks for the update.

  11. Ilya Finkelshteyn closed this discussion on 25 Jun, 2019 09:36 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

27 Jan, 2023 08:06 PM
27 Jan, 2023 08:05 PM
25 Jan, 2023 03:23 PM
25 Jan, 2023 03:22 PM
23 Jan, 2023 03:29 PM