Error when abc.nuspec is set read only by TFS - Unable to copy file abc.nuspec Access to the path abc.nuspec is denied

This line in OctoPack.targets

seems to cause this error when building in visual studio when the nuspec file is read only as it will be if using TFS

Seems to be trying to copy the file over itself.

workaround is to make the file writable.

I’m also having this issue. It seems to only occur with our web application.

I’ve tried changing the OctoPack.targets file to exclude the file, but it doesn’t seem to work.

I’ve got a feeling the copy is happening in the CopyWebApplicationDefault in:

Has anyone had any luck with this?

Thanks for letting me know, there’s a bug on the OctoPack issues list to track this, and I’ll try to get it fixed this weekend:

https://github.com/OctopusDeploy/OctoPack/issues/6

Paul

Hi,

This should now be fixed in OctoPack 1.0.103

Paul