【问题标题】:Visual Studio 11 Missing Assembly referencesVisual Studio 11 缺少程序集引用
【发布时间】: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


    【解决方案1】:

    您只能在 Windows 8 上构建 Metro 应用程序。您在使用它吗?

    如果不下载安装了 VS 2011 的 Windows 8 开发者预览版。

    http://dev.windows.com/

    编辑:来自下载链接的注释

    为了开发 Metro 风格的应用程序,Visual Studio 11 Developer Preview 必须安装在 Windows Developer Preview 上,并使用开发人员工具英语,64 位。不支持在 Windows 8 的其他 Preview 版本上开发 Metro 风格的应用程序。

    注2:http://social.msdn.microsoft.com/Forums/en/toolsforwinapps/thread/12057f17-2f6c-422e-836e-47bcb1656a5d

    开发 Windows Metro 风格的应用程序

    在 BUILD,开发 Windows Metro 风格应用程序的唯一平台是 Windows Developer Preview,它带有开发人员工具英语,64 位 (x64)。64 位仅限 Metro 风格开发工具的限制仅适用于 BUILD。 32 位版本的 Visual Studio 将在未来的预发布​​版本中支持 Metro 风格开发。

    • 这包括 Visual Studio Express for Windows 和 Blend Developer
      从周五开始预览和安装 Windows SDK,您 将有权访问 Visual Studio 11 开发人员预览版,安装此 在 Windows Developer Preview 上使用开发者工具英语,64 位

    • (x64) 构建 Metro 风格的应用程序不支持任何其他 图片

      注意:Visual Studio 11 Express for Windows Developer Preview 将无法单独下载

    【讨论】:

    • 我用的是win8,但是安装VS的那个对于我的CD或USB来说太大了
    • 好的,下一个问题是您下载了 64 位版本的 Windows 8 吗?
    • 再次阅读注释,我不仅看到 64 位,而且必须“使用开发人员工具英语安装在开发人员预览版上”。这意味着 Metro 的东西将无法工作。
    猜你喜欢
    • 2017-06-14
    • 1970-01-01
    • 1970-01-01
    • 2012-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-15
    相关资源
    最近更新 更多