0

i got an error with partial declaration of 'BitmapSource.main page'must not specify different base classes.

In my XAML, I have

x:Class="BitmapSource.MainPage", xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone", xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" 

Then in MainPage.g.i.cs there the error that highlight is public partial class MainPage Microsoft.Phone.Controls.PhoneApplicationPage

How to solve it?

jv42
  • 8,521
  • 5
  • 40
  • 64
  • Check your XAML vs code behind files, you probably have a namespace/class name difference somewhere. Or your type in the XAML is not the right one ( for instance). – jv42 Apr 12 '12 at 15:13

1 Answers1

0

I will go for a long shot and say that the problem is caused by the potential BitmapSource confusion. The easy test to see whether this is the case or not - rename your project to something else other than BitmapSource and see if the issue persists.

Den
  • 16,686
  • 4
  • 47
  • 87