Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

How to set proper environment path variable for the visual studio in windows

like VSINSTALLDIR, VCINSTALLDIR ,ETC

I will add my own answer as I struggled with this a lot, others are also welcomed to make this answer better.

Thank You!

question from:https://stackoverflow.com/questions/66050116/set-proper-environment-path-variables-for-visual-studio

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.2k views
Welcome To Ask or Share your Answers For Others

1 Answer

I was struggling and getting lots of errors while setting proper path variables for Visual Studio on Windows.

People use this directly VCINSTALLDIR, VSINSTALLDIR, many newcomers like me face problems so I thought to add this here.

SET INCLUDE

D:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.16.27023include;D:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.16.27023atlmfcinclude;C:Program Files (x86)Windows Kits10\include10.0.17763.0ucrt;C:Program Files (x86)Windows Kits10\include10.0.17763.0shared;C:Program Files (x86)Windows Kits10\include10.0.17763.0um;C:Program Files (x86)Windows Kits10\include10.0.17763.0winrt;D:Program FilesMATLABR2020aexterninclude;D:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.16.27023include;D:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.16.27023atlmfcinclude;C:Program Files (x86)Windows Kits10\include10.0.17763.0ucrt;C:Program Files (x86)Windows Kits10\include10.0.17763.0shared;C:Program Files (x86)Windows Kits10\include10.0.17763.0um;C:Program Files (x86)Windows Kits10\include10.0.17763.0winrt;D:Program FilesMATLABR2020aexterninclude;

SET LIB

D:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.16.27023libx64;D:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.16.27023atlmfclibx64;C:Program Files (x86)Windows Kits10\Lib10.0.17763.0ucrtx64;C:Program Files (x86)Windows Kits10\lib10.0.17763.0umx64;D:Program FilesMATLABR2020alibwin64;D:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.16.27023libx64;D:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.16.27023atlmfclibx64;C:Program Files (x86)Windows Kits10\Lib10.0.17763.0ucrtx64;C:Program Files (x86)Windows Kits10\lib10.0.17763.0umx64;D:Program FilesMATLABR2020alibwin64;

Others are also welcome to add to it.

enter image description here

My path contains this

%MS_VS17%Community;
%MS_VS17%CommunityVCToolsMSVC14.16.27023in;
%MS_VS17%CommunityVCToolsMSVC14.16.27023include;
%MS_VS17%CommunityCommon7IDE;%MS_VS17%CommunityCommon7Tools;
%MS_VS17%CommunityVCAuxiliaryBuild;
%MS_VS17%CommunityVCToolsMSVC14.16.27023inHostx64x64;
%MS_VS17%CommunityVCToolsMSVC14.16.27023inHostx64x86;

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...