티스토리 뷰

반응형

오류 내용 :

Unexpected 'NONE' in parse rule 'Element ::= . EmptyElement | ( StartElement ElementBody ).'

 

Uno의 경우 빌드가 잘되다가 갑자기 오류가 발생하는 경우가 좀 많이 있습니다.

그래서 그런 오류가 발생할때마다 해결 방법을 하나씩 정리하도록 하겠습니다.

 

네임스페이스 not_ios는 xmlns의 내용과 동일하기 때문에, not_ios를 mc:Ignorable="d not_ios ios wasm android" 와 같이 사용하면 위의 오류를 발생 시킵니다. ㅜㅜ 작성해 놓은 코드 다 지웠어요..쿨럭

<Page
    x:Class="BlankPrismUno.Shared.Views.Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:android="http://uno.ui/android"
    xmlns:behaviors="using:BlankPrismUno.Shared.Behaviors"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:i="using:Microsoft.Xaml.Interactivity"
    xmlns:ic="using:Microsoft.Xaml.Interactions.Core"
    xmlns:ios="http:/uno.ui/ios"
    xmlns:local="using:BlankPrismUno.Shared.Views"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:not_ios="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:prismMvvm="using:Prism.Mvvm"
    xmlns:prismRegions="using:Prism.Regions"
    xmlns:wasm="http://uno.ui/wasm"
    d:DesignHeight="400"
    d:DesignWidth="600"
    prismMvvm:ViewModelLocator.AutowireViewModel="True"
    mc:Ignorable="d ios wasm android">
    <i:Interaction.Behaviors>
        <ic:EventTriggerBehavior EventName="Loaded">
            <ic:InvokeCommandAction Command="{Binding LoadedCommand}" />
        </ic:EventTriggerBehavior>
    </i:Interaction.Behaviors>
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <ContentControl
            HorizontalContentAlignment="Stretch"
            VerticalContentAlignment="Stretch"
            ios:Padding="10,20,0,0"
            not_ios:Padding="10,0,0,0"
            prismRegions:RegionManager.RegionName="ContentRegion" />
    </Grid>
</Page>
반응형
댓글