Travis build for Visual Studio Solutions project not working

It looks like whatever MSBuild variable is in the script before “/Microsoft.Cpp.Default.props” is not set. Can’t say anything more specific without seeing the build, so the following are guesses.


First, I don’t see os: windows and mono:/dotnet: – so it’s probable that you’re running the job in Linux with a default version of Mono installed while you probably want Windows with VS build tools.


https://stackoverflow.com/questions/50308833/trace-execution-of-msbuild-toolchain-scripts shows that this happens when

To diagnose the problem properly, run MsBuild with diagnostic output and tracing and upload the trace log somewhere for examination – to find out which exact variable it is and how the stock logic tries to fill it (most probably, by consulting the registry for VS installation paths).