带有 .netStandard 2.0 的 Xamarin 表单,无法引用 Core [英] Xamarin forms with .netStandard 2.0, can't reference Core

查看:25
本文介绍了带有 .netStandard 2.0 的 Xamarin 表单,无法引用 Core的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法将我的接口从我的 .Core 项目引用到我的 Android 项目,我不明白为什么...

I can't reference my Interfaces from my .Core project to my Android Project and I don't understand why...

我在 Xamarin.Forms 中使用 Visual Studio 2017 和 .Net Standard lib 创建了一个新解决方案.

I created a new solution with Visual Studio 2017 in Xamarin.Forms with .Net Standard lib.

这就是我尝试过的:

使用旧的 .NetFramework Core 项目方法,它可以完美运行,但现在不行...

With the old .NetFramework Core project method, it worked perfecly, but not now...

感谢您的帮助

推荐答案

好的,我现在明白你的意思了,我以前也经历过这种情况

Ok i understand what you mean now, and i have experienced this before

  1. 确保您的 .Net Standard 项目能够编译
  2. 删除 .Net Standard 引用并将其添加回您的 Andriod 项目

还尝试删除所有项目的所有 bin 和对象目录,然后重新启动 Visual Studio 并重新编译

Also try deleting all you bin and object directories for all your projects and restart visual studio and compile again

Xamarin 可能非常善变,它可以工作,但您需要确保它不会在此过程中混淆

Xamarin can be very fickle, it will work but you need to make sure it doesn't get confused in the process

这篇关于带有 .netStandard 2.0 的 Xamarin 表单,无法引用 Core的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆