Search code examples
c#visual-studio.net-corebuild

VS output window shows "The system cannot find the file specified" but compilig succeeds


I have a .NET core app compiling just fine but the output window keeps showing

"The system cannot find the file specified"

I went through app property editor as well as manually through appname.csproj with a text editor removing anything not strictly necessary but I seem unable to find the source of this messages.

Is there any way to actually see the commands or directives causing this?

Forms and WPF are enabled for this project. It happens in any build configuration ("Release" and "Debug").

Output window showing 'Build'


Solution

  • Visual Studio and MSBuild can produce verbose logs for more info about what was happening during the build, as per Visual Studio docs:

    ... configure the logger verbosity with the following steps:

    1. In Visual Studio, select Tools > Options to open the Options dialog.
    2. On the dialog, expand the Projects and Solutions section and select the Build and Run tab.
    3. Use the MSBuild project build output verbosity dropdown list and select your build output preference.
    4. Use the MSBuild project build log file verbosity dropdown list and select your logger verbosity preference.