Пример #1
0
        /// <nodoc />
        public SimpleFrontEndEngineAbstraction(PathTable pathTable, IFileSystem filesystem, IConfiguration configuration = null)
        {
            m_pathTable  = pathTable;
            m_fileSystem = filesystem;

            m_environmentVariables.Add("BUILDXL_IS_ELEVATED", CurrentProcess.IsElevated.ToString());
            m_customMountsTable = ConstructMountsTable(configuration, pathTable.StringTable);

            var testRoot = AbsolutePath.Create(pathTable, Path.GetDirectoryName(AssemblyHelper.GetAssemblyLocation(GetType().Assembly)));

            Layout = new LayoutConfiguration()
            {
                ObjectDirectory     = testRoot.Combine(pathTable, "obj_test"),
                RedirectedDirectory = testRoot.Combine(pathTable, "redirected_test"),
                FrontEndDirectory   = testRoot.Combine(pathTable, "frontend"),
                TempDirectory       = testRoot.Combine(pathTable, "tmp_test"),
            };
        }
Пример #2
0
 /// <nodoc />
 public LanguageServiceEngineAbstraction(TextDocumentManager documentManager, PathTable pathTable, BuildXL.FrontEnd.Sdk.FileSystem.IFileSystem fileSystem)
     : base(pathTable, fileSystem)
 {
     m_documentManager = documentManager;
 }