【发布时间】:2011-09-18 21:32:42
【问题描述】:
在尝试在 Visual Studio 中构建最简单的 Metro 应用程序时,我收到十几个关于缺少程序集引用的错误(错误 WMC1003)。我刚刚从这里安装了 VS 11:http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27543
感谢您的任何帮助! 以下是指定错误的构建输出部分:
1>C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v1.0\Microsoft.Windows.UI.Xaml.Common.targets(95,9): XamlCompiler error WMC1003: Window Runtime Reference Assembly is missing: 'Windows.Foundation'
1>C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v1.0\Microsoft.Windows.UI.Xaml.Common.targets(95,9): XamlCompiler error WMC1003: Window Runtime Reference Assembly is missing: 'Windows.UI.Xaml'
1>C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v1.0\Microsoft.Windows.UI.Xaml.Common.targets(95,9): XamlCompiler error WMC1003: Window Runtime Reference Assembly is missing: 'Windows.UI.Xaml.Controls'
1>C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v1.0\Microsoft.Windows.UI.Xaml.Common.targets(95,9): XamlCompiler error WMC1003: Window Runtime Reference Assembly is missing: 'Windows.UI.Xaml.Markup'
1>C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v1.0\Microsoft.Windows.UI.Xaml.Common.targets(95,9): XamlCompiler error WMC1003: Window Runtime Reference Assembly is missing: 'Windows.UI.Xaml.Media'
1>C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v1.0\Microsoft.Windows.UI.Xaml.Common.targets(95,9): XamlCompiler error WMC1003: Window Runtime Reference Assembly is missing: 'Windows.UI.Xaml.Media.Animation'
1>C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v1.0\Microsoft.Windows.UI.Xaml.Common.targets(95,9): XamlCompiler error WMC1003: Window Runtime Reference Assembly is missing: 'Windows.UI.Xaml.Media.Imaging'
1>C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v1.0\Microsoft.Windows.UI.Xaml.Common.targets(95,9): XamlCompiler error WMC1003: Window Runtime Reference Assembly is missing: 'Windows.UI.Xaml.Data'
1>C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v1.0\Microsoft.Windows.UI.Xaml.Common.targets(95,9): XamlCompiler error WMC1003: Window Runtime Reference Assembly is missing: 'Windows.UI.Xaml.Documents'
【问题讨论】:
标签: visual-studio assembly-references visual-studio-2012