I'm new to vs-team services, right now I have a CI build setup that will have a copy publish artifact step to upload the artifact to the vsts server.
And there is an option for me to filter out the Contents of the artifact, which I've put in the path relative to the root because under my repository I have multiple projects, and this build is only targeting one of them.
Now my question is, the artifact is being published, but it includes everything under that path, meaning all the .cs files that i don't want to publish. Is there a way to exclude those? Or should the artifact include those at all?
Thanks.
The "Contents" of "Copy Files" & "Copy Publish Artifacts" task support multiple lines of minimatch patterns. You can use it to exclude the files you don't want to publish.
For example, the pdb and config files will not be included with following settings:
For detailed information, please refer to this link for details: Copy executables and a readme file