gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 12:40:51 24 4
gpt4 key购买 nike

我的 Xamarin.Forms 以 .NETStandard 1.4 为目标并导入可移植项目的项目在系统引用方面存在问题。

为 .NETCore 导入了相关的可移植配置文件和系统 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, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.

最佳答案

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

关于c# - 系统引用缺少 Xamarin.Forms .NetStandard,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40447370/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com