Why does modifying project output directories cause: IOException was unhandled “Cannot locate resource 'app.xaml'.”
问题 In an attempt to consolidate project settings into property sheets for both C++ and C# projects, the following property sheet was constructed: <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!-- Trying to support both C++ and C# projects by introducing derived properties and setting the appropriate output properties. --> <PropertyGroup Label="UserMacros"> <ProjectOrAssemblyName Condition="'