I'm trying to build a Visual Studio project, using Visual Studio 2017. This fails and the error list shows quite some Chinese characters.
I've understood that those characters are caused by a misinterpretation of the MSBuild command, so I've decided to run the MSBuild command myself, in order to see which error messages lead to the Chinese characters and in order to solve my problem.
Therefore, as mentioned in "this relevant StackOverflow post", I've modified my Visual Studio "MSBuild project build output verbosity" to "Detailed" (I even put it on "Diagnostic"), but although there was quite some information, I could not retrieve the MSBuild commandline from that output. As I mentioned in a comment, I don't have the checkbox "Show all settings" in my options window.
So I've tried doing something else: I opened a Command prompt and I went to the location of my Visual Studio project, and there I simply launched the command "\MSBuild.exe". This however was not a good idea: the project was building successfully and the number of warnings (864) did not correspond to the expected number of warnings, as seen in the error list of Visual Studio (3), so I'm left with two questions:
- I have different MSBuild.exe files on my PC, how can I know which
one Visual Studio is using? (For your information, when I simply launch "MSBuild" it's not running: no MSBuild runtime directory in my
$PATH
environment variable) - I believe some parameters might be used while launching a build using Visual Studio, how can I retrieve those from the output window?
In the meanwhile I've found out there is a tool, called "Developer command prompt". I've opened this tool, went to my project's directory and started up MSBuild
. The build was successful, there are zero errors and zero warnings, so also this does not give an expected results.
Thanks in advance