TFS 2012 Build “Access to Path Denied”

后端 未结 15 1949
星月不相逢
星月不相逢 2020-12-04 12:42

I’m using TFS 2012 Build and running into an error

Access to the path is denied

The solution being built contains about 15 proje

15条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 13:31

    I was having this problem and chose to ignore it because I didn't want to sacrifice build performance for the sake of getting rid of some benign error messages by NuGet. However, I seem to have stumbled across a solution while trying to solve another problem, and I think it is related. I think the order of fetching of NuGet packages is related to the build order of projects in the solution. So if this has somehow become disjointed, then NuGet may be the first casualty before you run into build errors where you start getting "Metadata file 'XXX.dll' could not be found" errors which annoyingly require you to build again until the build succeeds (as described here).

    So, I believe the solution is to follow the steps described in the accepted answer to the aforementioned question. Or, follow the more comprehensive steps in one of the alternative answers. In other words, disable building of all projects, restart VS, then re-enable building of all projects. This will (normally) resolve build order. And that should hopefully resolve the NuGet issue. Please let me know if this fixes it for anyone.

提交回复
热议问题