【发布时间】:2018-09-29 21:06:42
【问题描述】:
请查看我的 .xaml 文件中的完整代码。如您所见,它只有 10 行:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage BackgroundColor="Black"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:ImageTest"
x:Class="ImageTest.ImagePage">
<Button Image="clock.png" x:Name="btn" />
</ContentPage>
当我尝试构建我的项目时,我收到以下错误消息:
Severity Code Description Project File Line Suppression State
Error Position 12:16.
Type EmbeddedImage not found in xmlns http://xamarin.com/schemas/2014/forms ImageTest
D:\Mobile Apps\Mosh\ImageTest\ImageTest\ImageTest\ImagePage.xaml 12
为什么 Visual Studio 在不存在的行上给我一个错误?
【问题讨论】:
标签: c# xamarin visual-studio-2017