【问题标题】:Universal WIndows App Visual Studio Enterprise 2015通用 Windows 应用程序 Visual Studio Enterprise 2015
【发布时间】:2017-11-04 23:41:18
【问题描述】:

在创建空白通用 Windows 应用程序时,我收到以下错误:

The type 'IAsyncAction' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'.    
The type 'IAsyncActionWithProgress<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'.  
The type 'IAsyncOperation<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'.   
The type 'IAsyncOperationWithProgress<,>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'.  

任何帮助表示赞赏。谢谢

【问题讨论】:

    标签: visual-studio-2015 windows-10 uwp universal


    【解决方案1】:

    您的 Visual Studio 2015 设置有时会失败。这个错误永远不会发生。

    执行全新安装(卸载/重新安装)。

    这里有一些参考资料

    http://blogs.msdn.com/b/lucian/archive/2015/05/21/win10-apps-in-net-common-library-issues.aspx

    How to resolve " 'IAsyncActionWithProgress<>' is defined in an assembly that is not referenced" in Windows UAP app

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-19
      • 1970-01-01
      • 2017-02-27
      • 2016-12-11
      • 2019-05-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多