SendETHToThisAddress
SendETHToThisAddress

Reputation: 3744

Xamarin build error 'cxmlns' is an undeclared prefix

I'm trying to build my Xamarin.Forms project and running into an unexpected error "'cxmlns' is an undeclared prefix. Line 3, position 14". I've tried searching the web for a solution to this but not fining any. I've seen other similar problems and I tried solutions that worked for others, but nothing that worked in my case so far. Here is my MainPage.xaml code:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
         cxmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         xmlns:local="clr-namespace:DojoBoss"
         x:Class="DojoBoss.MainPage"
         BackgroundImage="background1">

</ContentPage>

I find it strange that I'm getting this error since this is all stock code that came with the blank app from Visual Studio (VS) aside from 1 line where I put in a background image. This was also working fine earlier today, I didn't make any changes but now it doesn't work. I've been disappointed with VS and Xamarin so far, seems very buggy and difficult to get started. Here's what I've tried so far:

VS is also giving me 4 other errors which may be related to the problem:

Upvotes: 0

Views: 769

Answers (1)

user13431110
user13431110

Reputation:

I do not know what is this "cxmlns". Can we change this line

cxmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"

to

xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"

Upvotes: 1

Related Questions