test/Shared/FunctionalTests.Transitional/Standard/Loader.cs
/// <summary>
/// Loads the required native assemblies for the current architecture (x86 or x64)
/// </summary>
/// <param name="rootApplicationPath">
/// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
/// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
/// </param>
Loads the required native assemblies for the current architecture (x86 or x64)
Loads the required native assemblies for the current architecture ( x86 or x64 )
public static void LoadNativeAssemblies(string rootApplicationPath)
        {
            var nativeBinaryPath = IntPtr.Size > 4
                ? Path.Combine(rootApplicationPath, @"Standard\x64\")
                : Path.Combine(rootApplicationPath, @"Standard\x86\");
        }
public static void LoadNativeAssemblies ( string rootApplicationPath ) { var nativeBinaryPath = IntPtr . Size > 4 ? Path . Combine ( rootApplicationPath , @"Standard\x64\" ) : Path . Combine ( rootApplicationPath , @"Standard\x86\" ) ; }
Loads the required native assemblies for the current architecture (x86 or x64)
Loads the required native assemblies for the current architecture ( x86 or x64 )
// TODO: ZZZ_ Restore this load assembly? //LoadNativeAssembly(nativeBinaryPath, "msvcr100.dll"); //LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial110.dll");
rootApplicationPath
string
Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
Root path of the current application . Use Server . MapPath ( " . " ) for ASP . NET applications and AppDomain . CurrentDomain . BaseDirectory for desktop applications .