[英]Xamarin studio 5.9.7 the type or namespace name 'Xamarin' could not be found
我试图找到一个使用Xamarin.Forms的解决方案,但其他问题的解决方案不适用于Xamarin studio 5.9.6(与更新后版本5.9.7 build 22相同)
using System;
using Xamarin.Forms;
namespace test
{
public class App : Application
{
public App ()
{
// The root page of your application
MainPage = new ContentPage {
Content = new StackLayout {
VerticalOptions = LayoutOptions.Center,
Children = {
new Label {
XAlign = TextAlignment.Center,
Text = "Welcome to Xamarin Forms!"
}
}
}
};
}
}
}
我尝试添加时唯一可用的引用是Xamarin.Andoid.NUnitLite
我收到错误cs0103
我刚刚找到了如何将包添加到项目中,右键单击项目解决方案中的包并尝试添加Xamarin.Forms但我有另一个错误
现在的错误是:
添加Xamarin.Forms ...添加'Xamarin.Forms 1.3.3.6323'进行测试。 无法安装软件包'Xamarin.Forms 1.3.3.6323'。 您正尝试将此软件包安装到以“portable-net45 + dnxcore50 + win + wp80 + MonoAndroid10 + xamarinios10 + MonoTouch10”为目标的项目中,但该软件包不包含任何与该框架兼容的程序集引用或内容文件。 有关更多信息,请与软件包作者联系。
我尝试使用此链接安装4.6程序集http://www.microsoft.com/en-us/download/details.aspx?id=40727
因为看起来Xamarin.Forms需要4.6一个,有人能证实吗?
但我不知道如何正确添加到目录:C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework
如果它当然是解决方案,并尝试修复xamarian安装以包含它
由于同样的错误:
无法安装包'Xamarin.Forms 1.5.0.6447'。 您正在尝试将此软件包安装到以“portable-net45 + sl50 + win + wpa81 + wp80 + MonoAndroid10 + xamarinios10 + MonoTouch10”为目标的项目中,但该软件包不包含任何与该框架兼容的程序集引用或内容文件。 有关更多信息,请与软件包作者联系。
有人可以告诉Xamarin.Forms 1.5.0.6447中包含的女巫大会吗?
尝试从Profile78 \\ SupportedFrameworks目录中删除ASP.NET Core 5.0引用或删除ASP.NET Core 5.0.xml文件。
制作新项目时我遇到了类似的错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.