Include referenced project's .config file

前端 未结 1 825
南旧
南旧 2021-02-01 05:33

Rather than excluding a file from the referenced output of an assembly, I want to add one!

I have a console application project (BuildTest1) that references a second cla

1条回答
  •  执念已碎
    2021-02-01 05:45

    I was so close... I tracked this down to the MSBuild ResolveAssemblyReference task that is called from the ResolveAssemblyReferences target in Microsoft.Common.targets. This is what populates the ReferenceCopyLocalPaths item.

    So looking at the pattern of files it was matching I discovered that the file extension .dll.config (rather than just .config) did the trick:

    
        
            .pdb;
            .xml;
            .dll.config
        
    
    

    0 讨论(0)
提交回复
热议问题