I recently retargeted my Windows 8.1 app to Windows 10. I'm getting this error when building the UI projects,
"MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down. Diagnostic information may be found in files in the temporary files directory named MSBuild_*.failure.txt."
That's not particularly useful, so I went to %temp% looking for said failure log, and it doesn't exist. Am I looking in the wrong "temp" directory?
What causes this error? I can build my supporting library project without this error.
So, I worked through this manually. I ended up creating a new project and moving source files over piece by piece. After moving something, checking the project to make sure it still built.
It turns out that this line existed in my App.xaml that blew it up:
<ResourceDictionary Source="Assets/Resources/LayoutTemplates.xaml" p8:Name="LayoutTemplates" xmlns:p8="http://schemas.microsoft.com/winfx/2006/xaml" />
Removing the namespace and "Name" attribute fixed the problem.
Pretty obscure huh...