xamarin.forms中的xaml.g.cs中存在错误

xamarin.forms中的xaml.g.cs中存在错误,xaml,xamarin.forms,Xaml,Xamarin.forms,类型或名称空间不存在…此错误发生在xaml.g.cs中 这就是: [global::Xamarin.Forms.Xaml.XamlFilePathAttribute("C:\\montana\\neoFly_Montana1\\neoFly_Montana\\neoFly_Montana\\PopUp\\LoginPopup.xaml")] public partial class LoginPopup : global::Rg.Plugins.Popup.Pages.PopupPage {

类型或名称空间不存在…此错误发生在xaml.g.cs中 这就是:

[global::Xamarin.Forms.Xaml.XamlFilePathAttribute("C:\\montana\\neoFly_Montana1\\neoFly_Montana\\neoFly_Montana\\PopUp\\LoginPopup.xaml")]
public partial class LoginPopup : global::Rg.Plugins.Popup.Pages.PopupPage {

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
    private global::Xamarin.Forms.Image login_img_forms;

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
    private global::Xamarin.Forms.StackLayout login_stack_forms;

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
    private global::Xamarin.Forms.MyEntry login_entry_login;

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
    private global::Xamarin.Forms.MyEntry login_entry_pass;
它发生在我更改xaml文件之后:

<?xml version="1.0" encoding="utf-8" ?>
<pages:PopupPage xmlns="http://xamarin.com/schemas/2014/forms"
         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         xmlns:local="clr-namespace:neoFly_Montana.LayoutScripts"
         xmlns:pages="clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup"
         xmlns:animations="clr-namespace:Rg.Plugins.Popup.Animations;assembly=Rg.Plugins.Popup"
         x:Class="neoFly_Montana.PopUp.LoginPopup"
         CloseWhenBackgroundIsClicked="False">

              <MyEntry Placeholder="E-mail:" Margin="10,0,0,0" x:Name="login_entry_login" FontSize="Medium" TextColor="{StaticResource MarromClaro}" PlaceholderColor="{StaticResource MarromClaro}"/>

我添加了MyEntryxmlns:local=“clr namespace:neoFly\u Montana.LayoutScripts”
我试图清理并重建解决方案

编译器需要知道MyEntry是什么-这有两个步骤。第一个是定义名称空间,这是您已经完成的。第二个是指定
MyEntry
存在于
local
命名空间中:

您需要使用