[英]NCrunch doesn't recognise environment variable
I've set my NCrunch cache storage path
to %TEMP%\\NCrunchCache
. 我已经将
NCrunch cache storage path
为%TEMP%\\NCrunchCache
。 However, I get the following error: 但是,出现以下错误:
NCrunch was unable to access the directory
'C:\src\solutionFolder\%TEMP%\NCrunchCache' as specified in the configuration for this solution.
Cache data will instead be stored in the default location
The documentation suggests this is possible: 该文档表明这是可能的:
From NCrunch v2.20, this setting supports specifying environment variables (ie '%MyCacheRootDir%\\MySolution')
从NCrunch v2.20开始,此设置支持指定环境变量(即'%MyCacheRootDir%\\ MySolution')
What am I missing? 我想念什么?
Have you tried restarting VS since changing the environment variable? 自更改环境变量以来,您是否尝试过重新启动VS? When you start a process, it gets copies of the environment variables, so if VS was opened before you changed it, you might be working with old variables.
当启动一个进程时,它会获取环境变量的副本,因此,如果在更改之前打开了VS,则可能正在使用旧变量。
I'd consider closing all VS instances, then making sure you don't have any NCrunch.BuildHostXXX.x86.exe
processes in Task Manager. 我考虑关闭所有VS实例,然后确保任务管理器中没有任何
NCrunch.BuildHostXXX.x86.exe
进程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.