加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – 缺少Xamarin.Forms .NetStandard的系统引用

发布时间:2020-12-15 22:36:57 所属栏目:百科 来源:网络整理
导读:我的 Xamarin.Forms项目针对.NETStandard 1.4并导入便携式系统存在系统引用问题. 为.NETCore导入相关的可移植配置文件和System NuGet包,但Xamarin.Forms(PCL)不接受它们. 有没有解决这个问题? { "supports": {},"dependencies": { "Microsoft.NETCore.Porta
我的 Xamarin.Forms项目针对.NETStandard 1.4并导入便携式系统存在系统引用问题.

为.NETCore导入相关的可移植配置文件和System NuGet包,但Xamarin.Forms(PCL)不接受它们.

有没有解决这个问题?

{
  "supports": {},"dependencies": {
    "Microsoft.NETCore.Portable.Compatibility": "1.0.1","NETStandard.Library": "1.6.0","System.ComponentModel": "4.0.1","System.Diagnostics.Tools": "4.3.0-preview1-24530-04","System.Resources.ResourceManager": "4.3.0-preview1-24530-04","System.Runtime.Serialization.Primitives": "4.1.1","Prism.Core": "6.2.1","Prism.Forms": "6.2.0","Prism.Unity.Forms": "6.2.0","Xamarin.Forms": "2.3.2.127"
  },"frameworks": {
    "netstandard1.4": {
      "imports": "portable-net45+win81"
    }
  }
}

像这样获取构建错误:

The type ‘IEditableObject’ is defined in an assembly that is not
referenced. You must add a reference to assembly
‘System.ComponentModel,Version=4.0.0.0,Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a’.

…还有这个:

The type name ‘GeneratedCodeAttribute’ could not be found in the
namespace ‘System.CodeDom.Compiler’. This type has been forwarded to
assembly ‘System.Diagnostics.Tools,Version=0.0.0.0,
PublicKeyToken=b03f5f7f11d50a3a’ Consider adding a reference to that
assembly.

解决方法

我升级到Visual Studio 2017,这个问题就消失了.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读