$(ProjectDir)FixTemplateFolderAttributes.cmd $(ProjectDir)
This points to a command file in your project directory called "FixTemplateFolderAttributes.cmd" like so:
:: Changes file attributes as needed.
cd %1
powershell Set-ExecutionPolicy RemoteSigned
powershell ../Build/Scripts/FixTemplateFolderAttributes.ps1
This calls the following powershell commands to make files writable:
$computer = gc env:computername $fileList = Get-ChildItem ".\InfoPath Form Template" | Where-Object {$_.name -like "*.dll" -or $_.name -like "*.pdb" -or $_.name -like "*.xsf" } foreach ($fileItem in $fileList) { $fileItem.set_IsReadOnly($false) # Remove readonly flag } $fileList = Get-ChildItem ".\obj\Debug\" | Where-Object {$_.name -like "*.dll" -or $_.name -like "*.pdb" -or $_.name -like "*.txt"} foreach ($fileItem in $fileList) { $fileItem.set_IsReadOnly($false) # Remove readonly flag } $fileList = Get-ChildItem ".\bin\Debug\" | Where-Object {$_.name -like "*.dll" -or $_.name -like "*.pdb" -or $_.name -like "*.txt"} foreach ($fileItem in $fileList) { $fileItem.set_IsReadOnly($false) # Remove readonly flag }
DDK
No comments:
Post a Comment