You can use events after assembly or ...
In Project A, add the link link to B.exe.config. You do this by adding an existing item to the project. But before clicking the Add button in the file dialog box, click the down arrow to the right of the Add button and select Add As Link. Then install the file to copy to the output directory. In your project file, it will look something like this:
From ProjectA.csproj:
<None Include="..\ProjectB\bin\Debug\B.exe.config"> <Link>B.exe.config</Link> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None>
If you do not mind manually editing the project file, the included file may depend on the configuration of the assembly. The following works for the assembly (although VS2013 will not open the file by double-clicking on the icon in the project tree.)
<None Include="..\ProjectB\bin\$(Configuration)\B.exe.config"> <Link>B.exe.config</Link> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None>
source share