AppData\Local/Access 下载的自定义程序集的环境变量 [英] Environment Variable for AppData\Local / Access Downloaded custom assemblies

查看:50
本文介绍了AppData\Local/Access 下载的自定义程序集的环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置我的 TFS2010 Build,我想访问通过自定义程序集的版本控制路径"下载的文件.

I am trying to setup my TFS2010 Build and I want to access the files that are downloaded via the "Version control path to custom assemblies".

据我所知,这些文件被下载到:

From what I can tell those files are downloaded to:

C:\User\\AppData\Local\BuildAgent\

我可以通过上述路径直接访问该文件夹,但如果有一个环境变量(或我可以在构建中使用的东西)间接访问该文件夹,那就太好了.

I can directly access that folder via the above path, but it would be nice if there was an environment variable (or something I can use in the build) to access that folder indirectly.

或者...有没有更好的方法来获取这些文件?(我在那里放了一个版本文件,每次构建运行时都会下载).

Or... Is there a better way to get at these files? (I am putting a version file in there to be downloaded every time the build is run).

推荐答案

您可以使用 %LOCALAPPDATA% 环境变量.它扩展到

You can use %LOCALAPPDATA% environment variable. It expands to

RootDrive:\User\LoggedInUser\AppData\Local

RootDrive:\User\LoggedInUser\AppData\Local


示例:%LOCALAPPDATA%\BuildAgent

注意%APPDATA%会扩展为

RootDrive:\User\LoggedInUser\AppData\漫游

RootDrive:\User\LoggedInUser\AppData\Roaming

这篇关于AppData\Local/Access 下载的自定义程序集的环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆