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

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

set proper environment path variables for Visual studio

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...