예제 #1
0
        public override void AddLibPath(string path)
        {
            if (String.IsNullOrEmpty(path))
            {
                return;
            }

            if (!LibPaths.Contains(path))
            {
                base.AddLibPath(path);
            }
        }
예제 #2
0
        public Options WithSourceFile(string sourceFile)
        {
            Contract.Requires(!string.IsNullOrEmpty(sourceFile));

            return(new Options(
                       sourceFile: sourceFile,
                       foxtrotOptions: FoxtrotOptions,
                       useContractReferenceAssemblies: UseContractReferenceAssemblies,
                       compilerOptions: CompilerOptions,
                       references: References.ToArray(),
                       libPaths: LibPaths.ToArray(),
                       compilerCode: compilerCode,
                       useBinDir: UseBinDir,
                       useExe: UseExe,
                       mustSucceed: MustSucceed));
        }