dll - Where is the version and publickey token information stored in an application? -
I load a project from TFS on my local machine. But this requires log4Net Libary, and I downloaded it from the Internet. It has been successfully rebuilt but when it runs, an exception occurs.
The file or assembly could not be loaded 'log4net, version = 1.2.10.0, culture = neutral, public keychone = 1B44A14942115821' or one of its dependencies A clear definition of assembly does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I know that this version and publisher have a problem mixing token. But my question is, when the code runs in the studio studio, how can it detect that it requires Log4N in version4.2? Can anyone help? Thank you.
There is a Log 4 Net assembly with this version in your project which is here; It may be a direct reference or an indirect reference (your project reference A.dll which may refer to the log4net.dll reference)
Look through your projects to find the referenced assembly, and So complete the context (correct version through Nuget, it is the easiest) or change it. The reference code includes context
tags
referenced assemblies (* .csproj or whatever extension applies to your language) When you include a reference, The power of naming will depend on the settings you choose:
& lt; Include references = "name" & gt; & Lt ;! - No version specified here because no specific version is needed - & gt; & Lt; Include in context = "name, version = xxx, culture = neutral, processor-extractor = MSIL" & gt; & Lt; - The version is specified, probably because a specific version was once referenced - & gt; Can find some more information at
Comments
Post a Comment