Visual Studio Set Project Environment Variables

简介: Visual Studio Set Project Environment Variables eryar@163.com In Visual Studio you can specify changes to environment variables in the project settings.

Visual Studio Set Project Environment Variables

eryar@163.com

In Visual Studio you can specify changes to environment variables in the project settings. Open your project, go to Project -> Properties... Under Configuration Properties -> Debugging, edit the Environment value to set environment variables.

For example, if you want to add the directory “c:\foo\bin” to the path when debugging your application, set the Environment value to “PATH=%PATH%;c:\foo\bin”.

Here’s a screenshot of the settings dialog:

wpsD79C.tmp

当使用第三方库进行开发时,如果某个第三方库有多个版本,为了使多个版本互不影响,且也不想把相关的程序路径设置到电脑的环境变量中去,则可以在Debugging中为某个开发项目设置环境变量。

目录
相关文章
|
编译器 C++ 计算机视觉
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“
693 0
|
C++
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“:
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“:
283 0
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“:
|
Java Android开发
can not watch variables in Eclipse
can not watch variables in Eclipse
can not watch variables in Eclipse
|
Android开发 Windows 分布式计算
Hadoop on Windows with Eclipse -03- Set Environment Variables
Set Environment Variables The next step is to set up the PATH environment variable so that Eclipse IDE can access Cygwin commands here To set environm...
1116 0