I am using BuildManager.DefaultBuildManager.Build() to build a visual studio solution which contains many projects. My code looks a lot like this.
Once the build completes, I'd like to copy the output (DLLs in my case) to a target folder.
But I don't see any way to retrieve the file names of the build output from the BuildResult.
I can scan the SLN file and then infer the output locations. But that will be error-prone and tedious.
Build() returns a BuildResult. As far as I can tell, BuildResult does not contain the actual output file names.
How can I get the output file names after a build completes?