35 references to Arguments
csc (1)
Csc.cs (1)
28return ConsoleUtil.RunWithUtf8Output(compiler.Arguments.Utf8Output, textWriter, tw => compiler.Run(tw));
Microsoft.CodeAnalysis.CSharp (18)
CommandLine\CSharpCompiler.cs (18)
31_diagnosticFormatter = new CommandLineDiagnosticFormatter(buildPaths.WorkingDirectory, Arguments.PrintFullPaths, Arguments.ShouldIncludeErrorEndLocation); 45var parseOptions = Arguments.ParseOptions; 53var sourceFiles = Arguments.SourceFiles; 58if (Arguments.CompilationOptions.ConcurrentBuild) 110Arguments.PrintFullPaths ? normalizedFilePath : _diagnosticFormatter.RelativizeNormalizedPath(normalizedFilePath))); 116if (Arguments.TouchedFilesPath != null) 126var appConfigPath = this.Arguments.AppConfigPath; 147var xmlFileResolver = new LoggingXmlFileResolver(Arguments.BaseDirectory, touchedFilesLogger); 148var sourceFileResolver = new LoggingSourceFileResolver(ImmutableArray<string>.Empty, Arguments.BaseDirectory, Arguments.PathMap, touchedFilesLogger); 161Arguments.CompilationName, 164Arguments.CompilationOptions 168.WithStrongNameProvider(Arguments.GetStrongNameProvider(loggingFileSystem)) 238if (Arguments.OutputFileName is object) 240return Arguments.OutputFileName; 243Debug.Assert(Arguments.CompilationOptions.OutputKind.IsApplication()); 340Arguments.ResolveAnalyzersFromArguments(LanguageNames.CSharp, diagnostics, messageProvider, AssemblyLoader, skipAnalyzers, out analyzers, out generators);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (14)
CommandLineTests.cs (12)
203Assert.Equal(analyzerConfig.Path, Assert.Single(cmd.Arguments.AnalyzerConfigPaths)); 241Assert.Equal(analyzerConfig.Path, Assert.Single(cmd.Arguments.AnalyzerConfigPaths)); 291Assert.Equal(analyzerConfig.Path, Assert.Single(cmd.Arguments.AnalyzerConfigPaths)); 346Assert.Null(cmd.Arguments.Encoding); 366Assert.Equal(932, cmd.Arguments.Encoding?.WindowsCodePage); 400cmd.Arguments.Errors.Verify( 404AssertEx.Equal(new[] { "System.dll" }, cmd.Arguments.MetadataReferences.Select(r => r.Reference)); 405AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "a.cs"), Path.Combine(WorkingDirectory, "b.cs") }, cmd.Arguments.SourceFiles.Select(file => file.Path)); 8245AssertEx.Equal(csc.Arguments.MetadataReferences.Select(r => r.Reference), new string[] 8293Assert.Equal(csc.Arguments.MetadataReferences.Select(r => r.Reference), new string[] 12784Assert.Equal(analyzerConfig.Path, Assert.Single(cmd.Arguments.AnalyzerConfigPaths)); 13025Assert.Equal(analyzerConfig.Path, Assert.Single(cmd.Arguments.AnalyzerConfigPaths));
TouchedFileLoggingTests.cs (2)
213expectedReads = cmd.Arguments.MetadataReferences 216foreach (var file in cmd.Arguments.SourceFiles)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\CommandLine\Csi.cs (1)
29return CommandLineRunner.GetMetadataReferenceResolver(Arguments, loggerOpt);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
CommandLineRunnerTests.cs (1)
752var arguments = ((CSharpInteractiveCompiler)csi.Compiler).Arguments;