General task. My task is to make a build (of a set of C# projects) failed if there exists such DLLs which were not found and thus were not copied to the output folder. It seems that a corresponding warning is not a warning of a compiler, thus I cannot provide a warning code to the "Treat warnings as errors" option in Visual Studio. The workaround I found is to use MsBuild like it is described here. However I still cannot find any solution for building with a Visual Studio.
Question. Is there a way to obtain a build log and especially build warnings in a post-build event in Visual Studio and make the build failed if some exact warnings exist?
What I looked at. Looked here, but suggested macro is not a convinient solution. According to this and this Visual Studio does not save build logs for C# projects.
More specific. I have been asked to provide information about the specific warning which I want to make an error of. This is "MSB3245: Could not resolve this reference. Could not locate the assembly..."