tags:

views:

43

answers:

0

I have a small C# library written in C# (and .NET4.0 B2). I use a resource assembly (let's call this XXXAssembly) containing resx files to provide the message strings which are used in other assemblies. When running a program by using these assemblies, I get the following lines (always happen to be 4 these 4 lines):

'AssemblyResolver': Not in Cache: XXXAssembly.resources, Version=1.0.0.0, Culture=en-US, PublicKeyToken=null
'AssemblyResolver': Not in Cache: XXXAssembly.resources, Version=1.0.0.0, Culture=en-US, PublicKeyToken=null
'AssemblyResolver': Not in Cache: XXXAssembly.resources, Version=1.0.0.0, Culture=en, PublicKeyToken=null
'AssemblyResolver': Not in Cache: XXXAssembly.resources, Version=1.0.0.0, Culture=en, PublicKeyToken=null

This happens for few of the message strings, not all messages. In fact, I have noticed that this happens when a new message shows up in the output where the message is dynamically constructed using String.Format. That is, the string stored in the resx file has {0}, {1} etc., and the message which is shown on the screen is dynamically constructed by using the parameters passed. Some of these parameters are again strings which are coming from another resx file in the same assembly.

I can't remember if I have seen this when I was using .NET3.5 (I may have - not sure). I found this page when researching this problem: Microsoft Connect Page

Anything I can do to remove these messages? They look ugly in the output !!