It seems that the AfterBuild target is not being called when building a VB.net solution using MSBuild. It should be substituted for the AfterCompile target.
Is that right?
Tuesday, October 30, 2007
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-ony attribute from the myFile.ext file in the solution folder.
<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:
Posts (Atom)