Skip to main content

Microsoft Silverlight

Answered Question why "InitializeComponent();dosen't exist" in June, when build the project made in March ??!!RSS Feed

(0)

angel_cfc
angel_cfc

Member

Member

0 points

1 Posts

why "InitializeComponent();dosen't exist" in June, when build the project made in March ??!!

The project we made in Blend March preview works well,

but after we installed the new June preview and new SDK in VS 2008,

The project can't be compiled, and the error shows "InitializeComponent(); dosen't exist" ......

 

Why? How to solve??

Thanks so much!!!!!!!!!!!!!! 

jeetAbhi
jeetAbhi

Member

Member

424 points

81 Posts

Answered Question

Re: why "InitializeComponent();dosen't exist" in June, when build the project made in March ??!!

The xaml generated .cs file is not being created. Because the build action is set on the XAML file to

“SilverlightPage” instead of “Page”.This is the new build action name.

So right click your page.xaml , choose properties and set Build Action to Page and not

SilverlightPage and build and run.....

This may work for u...MARK AS ANSWER if this post has helped Smile

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities