NAnt: get task permission denied

2019-07-27 21:20发布

I'm trying to use the NAnt <get> task to download some artifacts from our build server.

However I'm getting permission denied to the destination folder even though the folder I'm downloading to has "Everyone" with full control.

What's going on?

2条回答
孤傲高冷的网名
2楼-- · 2019-07-27 21:58

Is the directory read-only? If so, you should be able to use the <attrib> task before <get> to allow read/write access temporarily.

查看更多
干净又极端
3楼-- · 2019-07-27 22:03

Nevermind,

The problem was that in the destination of the <get> task you need to specify the file as well as the directory.

查看更多
登录 后发表回答