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中为某个开发项目设置环境变量。

目录
相关文章
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
关于 CMake编译出出现错误“Could not find compiler set in environment variable RC:” 的解决方法
|
Java Nacos 开发者
Nacos无法启动详解:Please set the JAVA_HOME variable in your environment, We need java(x64) jdk8 or later
Nacos无法启动详解:Please set the JAVA_HOME variable in your environment, We need java(x64) jdk8 or later
3448 1
|
并行计算 PyTorch 算法框架/工具
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
|
开发工具 Android开发
Appium问题解决方案(7)- Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME environment variable with the Android SDK root directory path
Appium问题解决方案(7)- Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME environment variable with the Android SDK root directory path
578 0
Appium问题解决方案(7)- Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME environment variable with the Android SDK root directory path
|
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...
1147 0
Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to “*****”
Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to “*****”  的一种解决方案:   修改工程依赖的build.
1090 0
|
Java Maven
解决-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variabl
解决-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match. myeclipse 2015 在编译(Run As-Maven install)maven项目出现如上错误,需要添加-Dma
2958 0