update shell namespace causes error

Topics: Prism v4 - WPF 4
Feb 14, 2011 at 5:24 AM

Hi all, 

how to solve the problem listed below? 



fail to compile the shell project with error "Could not find 'Shell.App' specified for Main method" after I have changed the namespace of the shell project. 

this shell project is created by template: Prims WPF 4.0 Shell. (this template is the latest one which I downloaded at 11Feb2011.)

detail steps:

1. create a Prism WPF 4.0 Shell project. 

2. select Bootstrapper.cs file, select "Shell" at the line: namespace Shell.

3. update the name space from "Shell" to "Test.Shell" by right click--refactor-rename, (default click all the button on the pop up windows.)

4. check other classes. find the namespaces are updated accordingly. 

5. rebuild all

6. error occurs...



Feb 14, 2011 at 5:13 PM


You might find this thread handy as it explains a possible cause for the exception you are experiencing.

As this is not strictly related to Prism, if you have further concerns about this, you might find better support in the WPF forums.


Miguel Bronzovic