This is a pretty simple one but it took me a little time figuring it out as I don't have prior MSBuild experience. Basically, you just need to use the Exec with the command attribute
<Exec Command="attrib -R $(SolutionRoot)\myFile.ext" />
This will remove the read-ony attribute from the myFile.ext file in the solution folder.
Subscribe to:
Post Comments (Atom)
3 comments:
To support paths with spaces in the name, use " to quote it:
<Exec Command="attrib -R "$(SolutionRoot)\myFile.ext"" />
Post a Comment