Changing a file’s attribute from a MSBuild script

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-only attribute from the myFile.ext file in the solution folder.