khoi
khoi

Reputation: 1180

Xamarin.Form Failed Adding New XAML Pages

I'm new in Xamarin. I want to create XAML Page.But VS create difference file.I don't know what mistake that I do.Hope you guys can help me solve this problem.Thank you in advance.

Create new XAML Page,Car.xaml Create new XAML Page

but visual studio generated Car.xaml.cs file.Why? enter image description here

Upvotes: 3

Views: 427

Answers (2)

tonycarrbcn
tonycarrbcn

Reputation: 36

I have solved it by creating the project again in another way, instead of using "Shared project" using "NET Standard" and it works perfectly for me.

With "Shared Project" and with Visual Studio 2017 Version 15.6.6, it does not work

Use Net Standard option to create the project

Upvotes: 1

TheGeneral
TheGeneral

Reputation: 81493

This looks like bug and/or the Nested File issue

You could try

  1. Deleting the class and restarting Visual Studio and add again
  2. Make sure your Visual studio is up to date, and you are using the latest version of Xamarin.Forms

Upvotes: 0

Related Questions