41 references to Arguments
csc (1)
src\Compilers\Shared\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()); 341Arguments.ResolveAnalyzersFromArguments(LanguageNames.CSharp, diagnostics, messageProvider, AssemblyLoader, compilationOptions, skipAnalyzers, out analyzers, out generators);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (20)
CommandLineIVTTests.cs (4)
342Assert.True(compiler.Arguments.ReportInternalsVisibleToAttributes); 356Assert.False(compiler.Arguments.ReportInternalsVisibleToAttributes); 367Assert.False(compiler.Arguments.ReportInternalsVisibleToAttributes); 368compiler.Arguments.Errors.Verify(
CommandLineTests.cs (14)
203Assert.Equal(analyzerConfig.Path, Assert.Single(cmd.Arguments.AnalyzerConfigPaths)); 298Assert.Equal(analyzerConfig.Path, Assert.Single(cmd.Arguments.AnalyzerConfigPaths)); 348Assert.Equal(analyzerConfig.Path, Assert.Single(cmd.Arguments.AnalyzerConfigPaths)); 403Assert.Null(cmd.Arguments.Encoding); 423Assert.Equal(932, cmd.Arguments.Encoding?.WindowsCodePage); 457cmd.Arguments.Errors.Verify( 461AssertEx.Equal(new[] { "System.dll" }, cmd.Arguments.MetadataReferences.Select(r => r.Reference)); 462AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "a.cs"), Path.Combine(WorkingDirectory, "b.cs") }, cmd.Arguments.SourceFiles.Select(file => file.Path)); 8455AssertEx.Equal(csc.Arguments.MetadataReferences.Select(r => r.Reference), new string[] 8503Assert.Equal(csc.Arguments.MetadataReferences.Select(r => r.Reference), new string[] 13419Assert.Equal(analyzerConfig.Path, Assert.Single(cmd.Arguments.AnalyzerConfigPaths)); 13664Assert.Equal(analyzerConfig.Path, Assert.Single(cmd.Arguments.AnalyzerConfigPaths)); 15570Assert.Equal(analyzerConfig.Path, Assert.Single(cmd.Arguments.AnalyzerConfigPaths)); 15704Assert.Equal(analyzerConfig.Path, Assert.Single(cmd.Arguments.AnalyzerConfigPaths));
TouchedFileLoggingTests.cs (2)
212expectedReads = cmd.Arguments.MetadataReferences 215foreach (var file in cmd.Arguments.SourceFiles)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\CommandLine\Csi.cs (1)
32CommandLineRunner.GetMetadataReferenceResolver(Arguments, loggerOpt, _createFromFileFunc);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
CommandLineRunnerTests.cs (1)
677var arguments = ((CSharpInteractiveCompiler)csi.Compiler).Arguments;