Admiral Land
Admiral Land

Reputation: 2492

How to convert Wpf Page application to dll?

I write Page application with WPF as exe project. But when i change type of project to Class library- i get many errors: Library project file cannot specify ApplicationDefinition element, The name InitializeComponent does not exist in the current context.

How to convert Page exe project to dll? Thank you!

Upvotes: 1

Views: 993

Answers (1)

Lei Yang
Lei Yang

Reputation: 4335

I tried, you can delete App.Xaml and rebuild will succeed.

Upvotes: 2

Related Questions