【发布时间】:2016-08-07 15:11:36
【问题描述】:
我在使用 Xamarin Studio 时遇到了一些依赖问题。我对 FreshEssentials 有依赖,在运行时,当尝试使用该包中的组件时,我收到此错误:“无法加载文件或程序集‘FreshEssentials’或其依赖项之一”。我使用 FreshEssentials 已经有一段时间了,效果很好。这个错误是突然出现的,不知道为什么。
我做了以下事情:
Build->Clean All.
Build->Rebuild All.
Project->Update NuGet Packages(gives me the error 'Could not update packages.').
Project->Restore NuGet Packages.
Project->Add NuGet Packages, added FreshEssentials again.
Restarted the IDE.
这些程序没有帮助。很抱歉将我的操作格式化为代码,如果我不这样做,我就不会让我发布它。
当我在 iOS 模拟器上运行我的应用程序时会出现问题。
我希望这里有人遇到过类似的问题,并且可能有一些建议。
编辑:
我刚刚注意到我的测试不会执行,给了我这个 StackTrace。我猜它也是依赖相关的。这是在 Xamarin Studio 中删除所有包并再次使用 NuGet->添加 NuGet 包添加它们之后。
One or more errors occurred.
Stack trace:
at System.Threading.Tasks.Task.ThrowIfExceptional (Boolean includeTaskCanceledExceptions) [0x00014] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/threading/Tasks/Task.cs:2157
at System.Threading.Tasks.Task`1[TResult].GetResultCore (Boolean waitCompletionNotification) [0x00034] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/threading/Tasks/Future.cs:562
at System.Threading.Tasks.Task`1[TResult].get_Result () [0x00000] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/threading/Tasks/Future.cs:532
at MonoDevelop.UnitTesting.NUnit.NUnitAssemblyTestSuite.RunUnitTest (MonoDevelop.UnitTesting.UnitTest test, System.String suiteName, System.String pathName, System.String testName, MonoDevelop.UnitTesting.TestContext testContext) [0x0014a] in /Users/builder/data/lanes/3541/a6f7a24a/source/monodevelop/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitAssemblyTestSuite.cs:424
【问题讨论】:
-
您确定它们支持 Xamarin 平台吗?
-
已经使用 FreshEssentials for Xamarin 3 个月了,最近才停止工作。
-
尝试运行 NUnit 命令行,看看这是否是 Xamarin Studio 的错误。
-
您能发布项目的完整构建日志吗? kb.xamarin.com/customer/en/portal/articles/…
标签: c# xamarin xamarin.ios nuget nunit