Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

Closed Unassigned: DeterminePackUriForType doesn't return correct URI if assembly name is different from namespace [306]

$
0
0
I have two projects in my solution. One is for WP71 and one is for WP80.

In the WP71 project properties I have:

- Assembly Name: MyApp.WP71
- Default Namespace: MyApp.Phone.UI

In WP80 I have:

- Assembly Name: MyApp.WP80
- Default Namespace: MyApp.Phone.UI

If I try to get a UriFor<TViewModel>, it doesn't return the correct URI:

```
_navigation.UriFor<MyViewModel>().Navigate();

=> returns "MyApp/Phone/UI/Views/MyView.xaml"
```

Which throws an exception. As soon as I make the Assembly Name match the default namespace, it works fine.

To workaround, I changed the assembly names but it would be nice to fix the issue.
Comments: Not an issue. Also, it is not possible to determine the root namespace of an assembly in a generic way.

Viewing all articles
Browse latest Browse all 1760

Trending Articles