AppDataLocal/Access 的环境变量下载的自定义程序集 [英] Environment Variable for AppDataLocal / Access Downloaded custom assemblies
问题描述
我正在尝试设置我的 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<Build User>AppDataLocalBuildAgent<Built Agent Number>
我可以通过上述路径直接访问该文件夹,但如果有一个环境变量(或我可以在构建中使用的东西)来间接访问该文件夹会很好.
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:UserLoggedInUserAppDataLocal
RootDrive:UserLoggedInUserAppDataLocal
示例:%LOCALAPPDATA%BuildAgent
请注意,%APPDATA%
将扩展为
RootDrive:UserLoggedInUserAppData漫游
RootDrive:UserLoggedInUserAppDataRoaming
这篇关于AppDataLocal/Access 的环境变量下载的自定义程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!