0

I am getting below error when i try to build and run c++ program.

error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.Default.props" was not found. Confirm that the expression in the Import declaration "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.Default.props" is correct, and that the file exists on disk.

so i have checked inside this specific folder and i am missing v160 folder.

Question :- how can i install or put this folder in windows container?screen shot of error

Nilesh Solanki
  • 336
  • 4
  • 19
  • 1
    https://learn.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2019 – user7860670 Jun 12 '20 at 08:27
  • Thank you @user7860670 link which you have commented i already checked earlier, but be more specific regarding msbuild , for instance "--add Microsoft.VisualStudio.Workload.AzureBuildTools " will add azure tool in docker what is command for msbuild? – Nilesh Solanki Jun 12 '20 at 09:04
  • There is a link to the Visual Studio Build Tools component list there. – user7860670 Jun 12 '20 at 09:59
  • Thanks @user7860670 that was helpful but none of component has installed buildtool VC/v160 in directory. Do you know how can i get this specifc dir?thanks in advance – Nilesh Solanki Jun 12 '20 at 11:06
  • I would like to know the same - the exact workload that will get the cpp items in the v160 directory. Anyone had luck with this? – AmmarArnt Apr 12 '21 at 23:20
  • @AmmarArnt https://stackoverflow.com/questions/62551660/add-or-copy-folder-to-windows-docker-container you can see this which might be helpful for you. – Nilesh Solanki Apr 19 '21 at 13:10

0 Answers0