28 references to WithCompilationOptions
Microsoft.Analyzers.Extra.Tests (3)
Resources\RoslynTestUtils.cs (3)
59.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary) 252proj = proj.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.ConsoleApplication)); 319proj = proj.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.ConsoleApplication));
Microsoft.Analyzers.Local.Tests (3)
Resources\RoslynTestUtils.cs (3)
59.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary) 252proj = proj.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.ConsoleApplication)); 320proj = proj.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.ConsoleApplication));
Microsoft.AspNetCore.Analyzer.Testing (1)
CodeFixRunner.cs (1)
49.WithCompilationOptions(compilationOptions)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
322.WithCompilationOptions(compilationOptions)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
322.WithCompilationOptions(compilationOptions)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
342project = project.WithCompilationOptions(project.CompilationOptions.WithSpecificDiagnosticOptions(newSpecificOptions));
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
80.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel: OptimizationLevel.Release));
MetadataAsSource\MetadataAsSourceTests.cs (2)
1729.WithCompilationOptions(new CS.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)); 1743.WithCompilationOptions(new VB.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\AddImportsTests.vb (1)
43project = project.WithCompilationOptions(DirectCast(project.CompilationOptions, VisualBasicCompilationOptions).WithGlobalImports(gi))
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Workspace.cs (1)
2056var newProjectForAssert = oldProject.WithCompilationOptions(options);
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
FindReferencesTests.cs (3)
177var prj = sln.GetProject(prj1Id).WithCompilationOptions(new VisualBasic.VisualBasicCompilationOptions(OutputKind.ConsoleApplication, embedVbCoreRuntime: true)); 216var prj = sln.GetProject(prj1Id).WithCompilationOptions(new VisualBasic.VisualBasicCompilationOptions(OutputKind.ConsoleApplication, embedVbCoreRuntime: true)); 280var prj = sln.GetProject(prj1Id).WithCompilationOptions(new CSharp.CSharpCompilationOptions(OutputKind.ConsoleApplication));
SolutionTests\TryApplyChangesTests.cs (3)
79Assert.True(workspace.TryApplyChanges(project.WithCompilationOptions(project.CompilationOptions!.WithMainTypeName("Test")).Solution)); 92Assert.True(workspace.TryApplyChanges(project.WithCompilationOptions(project.CompilationOptions!.WithMainTypeName("Test")).Solution)); 106() => workspace.TryApplyChanges(project.WithCompilationOptions(project.CompilationOptions!.WithMainTypeName("WrongThing")).Solution));
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
83.WithCompilationOptions(
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
83.WithCompilationOptions(
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
83.WithCompilationOptions(
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
83.WithCompilationOptions(
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
83.WithCompilationOptions(
Microsoft.ML.CodeAnalyzer.Tests (1)
Code\BestFriendTest.cs (1)
70projectA = projectA.WithCompilationOptions(projectA.CompilationOptions.WithOutputKind(OutputKind.DynamicallyLinkedLibrary));
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
311project = project.WithCompilationOptions(project.CompilationOptions.WithModuleName("modified"));