WPF application in obj directory doesn't work.

Posted by juharr on Stack Overflow See other posts from Stack Overflow or by juharr
Published on 2010-05-25T14:19:43Z Indexed on 2010/05/25 14:21 UTC
Read the original article Hit count: 220

Filed under:
|

When I build my WPF application the exe that ends up in the bin directory works just fine, but the one in the obj directory does not. When I Debug the exe from the obj directory I get the following exception:

TypeInitializationException was unhandled:
The type initializer for 'MyProject.App' threw an exception.

So basically I'm wondering why the obj exe doesn't work while the bin one does (I was under the assumption that the obj exe was just copied to the bin) and how to fix it. The reason that I even care is because I'm using Wix to create a MSI for my application and I have a Votive project setup that uses var.MyProject.TargetPath which points to the exe in the obj directory.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about build