Hi, @Helena_Reyes,
Welcome to the MongoDB Community Forums. I understand that you’re having trouble compiling and signing the MongoDB.Driver
(and related) assemblies from source.
You mentioned the CS0122 compiler error related to the inaccessibility of the IClock
interface. IClock
is defined in the MongoDB.Driver.Core.Misc
namespace and is marked internal
. It is part of the MongoDB.Driver.Core
assembly. That assembly is marked with [assembly: InternalsVisibleTo("MongoDB.Driver")]
to allow the MongoDB.Driver
assembly access to the internal members of the MongoDB.Driver.Core
assembly.
When you strong name assemblies, the public key of the assembly becomes part of its strong name. Thus you will have to update src/MongoDB.Driver.Core/Properties/AssemblyInfo.cs
to include the public key of your SNK. You will have to do the same for the other AssemblyInfo.cs
files for other projects in the solution. You should then be able to compile the solution to produce strong-named assemblies.
Sincerely,
James