Obtain output files from a MSBuild project

后端 未结 4 1684
一个人的身影
一个人的身影 2020-12-31 04:20

Is it possible to obtain a list all all the output files from a MSBuild project?

In a simple project, I could do something like



        
4条回答
  •  一生所求
    2020-12-31 04:52

    Take a look at my previous blog entry MSBuild: Find Many Project References. In that post I describe how you can create an MSBuild file which could extract out the values for the Reference ItemGroup. In your case just replace the target that I created with one that populated an item from all the files found in the OutputPath. Let me know if you want me to expand on that.

提交回复
热议问题