Ejemplo n.º 1
0
        private void CreateRuntime()
        {
            ClrInfo clrInfo = _target.ClrVersions[_clrVersionIndex];
            string  dacLocation;

            _context.Runtime = _target.CreateRuntimeAndGetDacLocation(clrInfo, out dacLocation);
            if (_context.Runtime == null)
            {
                Bail("Unable to create runtime object for runtime version {0}", clrInfo.Version);
            }
            _context.WriteInfoLine("Using Data Access DLL at: " + dacLocation);
            _context.DacLocation     = dacLocation;
            _context.ClrVersionIndex = _clrVersionIndex;
            _context.ClrVersion      = clrInfo;
            _context.Heap            = _context.Runtime.GetHeap();
        }