Kevin
Kevin

Reputation:

WPF .g.cs files are not being generated?

The generated window.g.cs file for a window I made is not being created. Is there any way where I can manually generate the file?

Upvotes: 3

Views: 4568

Answers (1)

Kent Boogaart
Kent Boogaart

Reputation: 178780

You may have accidentally changed the Build Action of the .xaml file. Select the file in Solution Explorer and ensure the Build Action is set to Page.

Upvotes: 12

Related Questions