Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

Commented Issue: A bug when using XAML module catalog in WPF [9906]

$
0
0
When I write __... Ref="file://MyFile.dll" ....__ in my XAML module catalog, the __MefFileModuleTypeLoader__ returns __"yFile.dll"__ instead of __"MyFile.dll"__ .

In project __Prism.MefExtensions.Desktop__ , file __Modularity\MefFileModuleTypeLoader.Desktop.cs__ Line __105__
```
string path = moduleInfo.Ref.Substring(RefFilePrefix.Length + 1);
```
It should be changed to:
```
string path = moduleInfo.Ref.Substring(RefFilePrefix.Length);
```
In project __Prism.Desktop__ , file __Modularity\FileModuleTypeLoader.Desktop.cs__ Line __133__
```
string path = moduleInfo.Ref.Substring(RefFilePrefix.Length + 1);
```
It should be changed to:
```
string path = moduleInfo.Ref.Substring(RefFilePrefix.Length);
```
Comments: ** Comment from web user: DCherubini **

Hi Hamson,

The issue you are reporting seems to be similar the issue described in this work item:
* [Issue with ModuleCatalog.CreateFromXaml for WPF application with MEF Bootstrapper](http://compositewpf.codeplex.com/workitem/7215)

Is this correct? If so, a possible workaround you can use in the mean time is to add an extra character after __"file://"__ and before the assembly file name. For example, if you write __"file://xMyFile.dll"__ the __MefFileModuleTypeLoader__ should read __"MyFile.dll"__ .

Also, it seems that several users in the aforementioned work item have confirmed that performing the changes you are describing seem to fix the problem without any other undesired effect.

Regards,

Damian Cherubini
http://blogs.southworks.net/dcherubini


Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>