MFC is missing from latest Visual Studio 2019 image

Xottab_DUTY's Avatar

Xottab_DUTY

18 Jun, 2019 07:25 PM

https://ci.appveyor.com/project/Xottab-DUTY/xray-16/builds/25369353/job/nw9oc0u9s95x2gat/messages

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

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

  1. Support Staff 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 https://github.com/appveyor/ci/issues/2985. 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. Support Staff 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 2.8.5.201 -Force
    Install-Module VSSetup -Scope CurrentUser -Force
    (Get-VSSetupInstance | Select-VSSetupInstance -Product *).packages | ? {$_.id -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. Support Staff 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. Support Staff 7 Posted by Ilya Finkelshte... on 21 Jun, 2019 01:39 AM

    Ilya Finkelshteyn's Avatar

    Sure, thank you :)

  8. Support Staff 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. Support Staff 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

Generic

? 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

16 Jul, 2019 06:34 PM
16 Jul, 2019 05:17 PM
16 Jul, 2019 10:17 AM
16 Jul, 2019 07:46 AM
16 Jul, 2019 04:51 AM

 

15 Jul, 2019 06:33 PM
15 Jul, 2019 06:09 PM
15 Jul, 2019 05:53 PM
15 Jul, 2019 05:46 PM
15 Jul, 2019 05:21 PM
15 Jul, 2019 04:29 PM