Esempio n. 1
0
        public LinkerOptions CreateLinkerOptions()
        {
            var c = app.Config<LinkerConfig>();
            var opt = new LinkerOptions();
            var svc = app.GetService<IPathService>();

            c.Directories.ForEach(d => opt.CodeBase.Directories.Add(new DirectoryInfo(svc.ResolvePathMacros(d))));
            opt.CodeBase.LookupStartupDirectory = c.LookupStartupDirectory;
            opt.ForceRecompile = c.ForceRecompile;
            opt.NoWarnings = c.NoWarnings;
            opt.WarningsAsErrors = c.WarningsAsErrors;
            opt.SkipTimeStampCheck = c.SkipTimeStampCheck;
            return opt;
        }
Esempio n. 2
0
 public ElaLinker(LinkerOptions linkerOptions, CompilerOptions compOptions, ModuleFileInfo rootFile) :
     base(linkerOptions, compOptions, rootFile)
 {
 }
Esempio n. 3
0
 public ElaIncrementalLinker(LinkerOptions linkerOptions, CompilerOptions compOptions) :
     base(linkerOptions, compOptions, null)
 {
 }
Esempio n. 4
0
        private static LinkerOptions CreateLinkerOptions()
        {
            var linkOpt = new LinkerOptions
                {
                    ForceRecompile = opt.ForceRecompile,
                    SkipTimeStampCheck = opt.SkipTimeStampCheck,
                    WarningsAsErrors = opt.LinkerWarningsAsErrors,
                    NoWarnings = opt.LinkerNoWarnings
                };
            linkOpt.CodeBase.LookupStartupDirectory = !opt.IgnoreStartupDirectory;

            foreach (var s in opt.ReferencePaths)
                linkOpt.CodeBase.Directories.Add(new DirectoryInfo(s));

            linkOpt.CodeBase.Directories.Add(new DirectoryInfo(Environment.CurrentDirectory));
            return linkOpt;
        }
Esempio n. 5
0
 public ElaIncrementalLinker(LinkerOptions linkerOptions, CompilerOptions compOptions, ModuleFileInfo file) :
     base(linkerOptions, compOptions, file)
 {
 }