So I want to find all the .xml and .pdb files and delete them from a build output folder. I can do this one at a time, but can I do this as one find matching files.
Right-Click In the File List, right-click the file you want to check in and select Source Control > Check In (for selected files) or Source Control > Project > Check In All (for all files in the project). Local Toolbar In the File List, select the file(s) you want to check in.
From the Visual Studio Tools menu, select Options, then select Source Control > Plug-in Selection. Select Visual Studio Team Foundation Server. For Visual Studio Team Foundation Server, enter the name and port number for the Azure DevOps Proxy Server. Select Use SSL encryption (https) to connect.
If you are doing this as part of the TFS build process template then you need a few activities and a variable. I'll do my best to talk you through it.
matchedFiles
of type IEnumerable<String>
String.Format("{0}\**\*.xml;{0}\**\*.pdb", BuildDetail.DropLocation)
. You can change it to use BinariesDirectory
if you are not cleaning the Drop Folder.matchedFiles
String
.file
in matchedFiles
System.IO.File
Delete
In
Type: String
Value: file
Now to avoid having a every File Delete in your build log, open the Process Template XAML with Visual Studio, find the InvokeMethod
step, and add the following Attribute to the XAML:
mtbwt:BuildTrackingParticipant.Importance="None"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With