Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

XAMLG Compile Error upon upgrading to 3.1.0 #3206

Closed
davidortinau opened this issue Jul 3, 2018 · 1 comment
Closed

XAMLG Compile Error upon upgrading to 3.1.0 #3206

davidortinau opened this issue Jul 3, 2018 · 1 comment

Comments

@davidortinau
Copy link
Contributor

Description

App compiles and runs with latest 3.0, but fails to compile with 3.1.0. Error is:

/work/ConferenceVision/ConferenceVision/ConferenceVision/obj/Debug/netstandard2.0/Views/ImageDetailView.xaml.g.cs(51,51): Error CS0542: 'ImageDetailView': member names cannot be the same as their enclosing type (CS0542) (ConferenceVision)

Steps to Reproduce

  1. Clone and run ConferenceVision (link below)
  2. Stop and update to 3.1.0. Clean. Obliterate. Close and Reopen the project.
  3. Run and observe the error.

Expected Behavior

Should not error.

Actual Behavior

Boom, error.

Basic Information

Reproduction Link

https://github.com/Microsoft/ConferenceVision

@davidortinau
Copy link
Contributor Author

Ok I see this was introduced in #2582. My issue is/was the x:Name here:

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" 
             ios:Page.UseSafeArea="false"
             x:Name="ImageDetailView"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant