Visual Studio Publish Failed: “Unable to delete file … Access to the path … is denied.”

前端 未结 11 1250
生来不讨喜
生来不讨喜 2021-02-12 13:43

I\'ve recently switched from a Windows XP machine to Windows 7. I use Subversion and TortoiseSVN.

I cannot publish my .NET application in Visual Studio. I get over a tho

11条回答
  •  花落未央
    2021-02-12 14:03

    What actually works is the solution that Zack Peterson gave? Thanks Zack!

    I am writing an application that will automatically remove all of the .SVN folders and files during deployment. While doing so, I was getting the same error as described above.

    • Once I changed the folder to NOT be Read Only, I was able to delete files and folders programmatically.
    • My next step is to set the attribute programmatically on NOT Read Only so that I can accomplish the entire installation with the click of a button.

提交回复
热议问题