src/Shared/EntityFramework.SqlServerCompact/RemoteProviderHelper.cs
// <summary>
// Use current assembly information to construct the full
// assembly name for an assembly with name assemblyName.
// This is called for Microsoft.SqlServerCe.Client.dll only.
// </summary>
Use current assembly information to construct the full
assembly name for an assembly with name assemblyName.
This is called for Microsoft.SqlServerCe.Client.dll only.
Use current assembly information to construct the full assembly name for an assembly with name assemblyName . This is called for Microsoft . SqlServerCe . Client . dll only .
private static string ConstructFullAssemblyName(string assemblyName)
        {
            DebugCheck.NotNull(assemblyName);
            if (assemblyName.EndsWith(".dll", StringComparison.OrdinalIgnoreCase))
            {
                assemblyName = Path.GetFileNameWithoutExtension(assemblyName);
            }
            Debug.Assert(!assemblyName.EndsWith(".dll", StringComparison.OrdinalIgnoreCase));
            var ourAssembly = Assembly.GetExecutingAssembly();
            Debug.Assert(ourAssembly != null);
            var fullName = ourAssembly.FullName;
            fullName = fullName.Replace(ourAssembly.GetName().Name, assemblyName);
            return fullName;
        }
private static string ConstructFullAssemblyName ( string assemblyName ) { DebugCheck . NotNull ( assemblyName ) ; if ( assemblyName . EndsWith ( " " , StringComparison . OrdinalIgnoreCase ) ) { assemblyName = Path . GetFileNameWithoutExtension ( assemblyName ) ; } Debug . Assert ( ! assemblyName . EndsWith ( " " , StringComparison . OrdinalIgnoreCase ) ) ; var ourAssembly = Assembly . GetExecutingAssembly ( ) ; Debug . Assert ( ourAssembly != null ) ; var fullName = ourAssembly . FullName ; fullName = fullName . Replace ( ourAssembly . GetName ( ) . Name , assemblyName ) ; return fullName ; }
Use current assembly information to construct the full
assembly name for an assembly with name assemblyName.
Use current assembly information to construct the full assembly name for an assembly with name assemblyName .
//we'll use the name to construct full assembly name. If what we got ends with //.DLL , we should get rid of it, as file extension is not part of assembly name //construct full target assembly name.  //All parts of its strong name except for the assembly name should be exactly the same as ours //
assemblyName
string