76 references to Release
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
CSharpCompiler.cs (2)
187OptimizationLevel.Release : 194OptimizationLevel.Release;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
CSharpCompilerTest.cs (3)
50[InlineData("Staging", OptimizationLevel.Release)] 51[InlineData("Production", OptimizationLevel.Release)] 239Assert.Equal(OptimizationLevel.Release, compilationOptions.OptimizationLevel);
Microsoft.CodeAnalysis (8)
CodeGen\ILBuilder.cs (2)
839if (_optimizations == OptimizationLevel.Release) 864if (_optimizations == OptimizationLevel.Release && OptimizeLabels())
Compilation\OptimizationLevel.cs (5)
56(OptimizationLevel.Release, true) => "release-debug-plus", 57(OptimizationLevel.Release, false) => "release", 68optimizationLevel = OptimizationLevel.Release; 72optimizationLevel = OptimizationLevel.Release; 95return value >= OptimizationLevel.Debug && value <= OptimizationLevel.Release;
SynthesizedLocalKind.cs (1)
270return kind.IsSlotReusable(optimizations != OptimizationLevel.Release);
Microsoft.CodeAnalysis.CSharp (10)
CommandLine\CSharpCommandLineParser.cs (1)
1492optimizationLevel: optimize ? OptimizationLevel.Release : OptimizationLevel.Debug,
Compilation\CSharpCompilation.cs (1)
3663var ilBuilder = new ILBuilder(moduleBeingBuilt, new LocalSlotManager(slotAllocator: null), OptimizationLevel.Release, areLocalsZeroed: false);
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
95if (compilationState.Compilation.Options.OptimizationLevel == OptimizationLevel.Release)
Lowering\LocalRewriter\LocalRewriter.cs (1)
762bool optimize = _compilation.Options.OptimizationLevel == OptimizationLevel.Release;
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
761this._factory.Compilation.Options.OptimizationLevel == OptimizationLevel.Release &&
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
47GenerateInstrumentation && _localRewriter._compilation.Options.OptimizationLevel != OptimizationLevel.Release;
Lowering\LocalRewriter\LocalRewriter_TryStatement.cs (1)
22var optimizing = _compilation.Options.OptimizationLevel == OptimizationLevel.Release;
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
114if (compilation.Options.OptimizationLevel != OptimizationLevel.Release)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
147F.Compilation.Options.OptimizationLevel == OptimizationLevel.Release)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
279if (optimizationLevel == OptimizationLevel.Release && synthesizedKind == SynthesizedLocalKind.UserDefined)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
2568Assert.Equal(OptimizationLevel.Release, parsedArgs.CompilationOptions.OptimizationLevel); 2572Assert.Equal(OptimizationLevel.Release, parsedArgs.CompilationOptions.OptimizationLevel); 2591Assert.Equal(OptimizationLevel.Release, parsedArgs.CompilationOptions.OptimizationLevel); 2594Assert.Equal(OptimizationLevel.Release, parsedArgs.CompilationOptions.OptimizationLevel);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenAsyncMainTests.cs (2)
1566var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithOptimizationLevel(OptimizationLevel.Release)); 1808var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithOptimizationLevel(OptimizationLevel.Release));
Emit\CovariantReturnTests.cs (1)
428var compilationOptions = new VisualBasic.VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptimizationLevel(OptimizationLevel.Release);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
343yield return defaultOptions.WithOptimizationLevel(OptimizationLevel.Release);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Synthesized.cs (1)
1608var compilation = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.CreateTestOptions(outputKind, OptimizationLevel.Release, allowUnsafe: true));
Semantics\PatternSwitchTests.cs (1)
3206source, options: TestOptions.ReleaseDll.WithOptimizationLevel(OptimizationLevel.Release), references: new[] { SystemCoreRef, CSharpRef });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CSharpCompilationOptionsTests.cs (2)
77TestHiddenProperty((old, value) => old.WithOptimizationLevel(value), opt => opt.OptimizationLevel, OptimizationLevel.Release); 114TestProperty((old, value) => old.WithOptimizationLevel(value), opt => opt.OptimizationLevel, OptimizationLevel.Release);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
BasicCompilationUtils.cs (1)
37var options = new VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel: OptimizationLevel.Release);
TestOptions.cs (4)
72public static readonly CSharpCompilationOptions ReleaseDll = CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, OptimizationLevel.Release); 73public static readonly CSharpCompilationOptions ReleaseExe = CreateTestOptions(OutputKind.ConsoleApplication, OptimizationLevel.Release); 85public static readonly CSharpCompilationOptions ReleaseWinMD = CreateTestOptions(OutputKind.WindowsRuntimeMetadata, OptimizationLevel.Release); 88public static readonly CSharpCompilationOptions ReleaseModule = CreateTestOptions(OutputKind.NetModule, OptimizationLevel.Release);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
80.WithCompilationOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel: OptimizationLevel.Release));
Microsoft.CodeAnalysis.Scripting.UnitTests (3)
ScriptOptionsTests.cs (3)
252[InlineData(OptimizationLevel.Release)] 261[InlineData(OptimizationLevel.Release)] 270[InlineData(OptimizationLevel.Release)]
Microsoft.CodeAnalysis.Test.Utilities (2)
Mocks\Silverlight.cs (1)
84optimizationLevel: OptimizationLevel.Release);
Mocks\StdOle.cs (1)
71optimizationLevel: OptimizationLevel.Release);
Microsoft.CodeAnalysis.VisualBasic (4)
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (2)
77If info.Compilation.Options.OptimizationLevel <> OptimizationLevel.Release Then 145ElseIf compilation.Options.OptimizationLevel = OptimizationLevel.Release Then
CommandLine\VisualBasicCommandLineParser.vb (1)
1447optimizationLevel:=If(optimize, OptimizationLevel.Release, OptimizationLevel.Debug),
Compilation\MethodCompiler.vb (1)
1612optimizations = OptimizationLevel.Release
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
CommandLineTests.vb (3)
1691Assert.Equal(OptimizationLevel.Release, parsedArgs.CompilationOptions.OptimizationLevel) 1699Assert.Equal(OptimizationLevel.Release, parsedArgs.CompilationOptions.OptimizationLevel) 1707Assert.Equal(OptimizationLevel.Release, parsedArgs.CompilationOptions.OptimizationLevel)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (11)
Attributes\AttributeTests_Synthesized.vb (8)
279Dim expectedNames = If(optimizationLevel = OptimizationLevel.Release, 335Dim expectedNames = If(optimizationLevel = OptimizationLevel.Release, 762CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(outputKind, optimizationLevel:=OptimizationLevel.Release)), 801CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(outputKind, optimizationLevel:=OptimizationLevel.Release)), 843CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(outputKind, optimizationLevel:=OptimizationLevel.Release)), 886CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(outputKind, optimizationLevel:=OptimizationLevel.Release)), 955CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(outputKind, optimizationLevel:=OptimizationLevel.Release)), 1025CreateCompilationWithMscorlib40(source, options:=New VisualBasicCompilationOptions(outputKind, optimizationLevel:=OptimizationLevel.Release)),
CodeGen\CodeGenAsyncTests.vb (1)
9086compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=OptimizationLevel.Release, allowUnsafe:=True))
PDB\VisualBasicDeterministicBuildCompilationTests.vb (2)
223Yield defaultOptions.WithOptimizationLevel(OptimizationLevel.Release) 225Yield defaultOptions.WithOptimizationLevel(OptimizationLevel.Release).WithDebugPlusMode(True)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
CompilationExtensions.vb (1)
117optimizationLevel:=OptimizationLevel.Release,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\VisualBasicCompilationOptionsTests.vb (2)
31TestHiddenProperty(Function(old, value) old.WithOptimizationLevel(value), Function(opt) opt.OptimizationLevel, OptimizationLevel.Release) 106TestProperty(Function(old, value) old.WithOptimizationLevel(value), Function(opt) opt.OptimizationLevel, OptimizationLevel.Release)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (6)
TestOptions.vb (6)
21Public Shared ReadOnly ReleaseDll As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=OptimizationLevel.Release).WithParseOptions(Regular) 22Public Shared ReadOnly ReleaseExe As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel:=OptimizationLevel.Release).WithParseOptions(Regular) 24Public Shared ReadOnly ReleaseDebugDll As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=OptimizationLevel.Release). 27Public Shared ReadOnly ReleaseDebugExe As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel:=OptimizationLevel.Release). 33Public Shared ReadOnly ReleaseModule As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.NetModule, optimizationLevel:=OptimizationLevel.Release).WithParseOptions(Regular) 34Public Shared ReadOnly ReleaseWinMD As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.WindowsRuntimeMetadata, optimizationLevel:=OptimizationLevel.Release).WithParseOptions(Regular)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
1539await AssertCSCompilationOptionsAsync(OptimizationLevel.Release, options => options.OptimizationLevel);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
146.WithOptimizationLevel(GetBooleanOption(CompilerOptions.OPTID_OPTIMIZATIONS) ? OptimizationLevel.Release : OptimizationLevel.Debug)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (1)
90.WithOptimizationLevel(If(compilerOptions.bOptimize, OptimizationLevel.Release, OptimizationLevel.Debug)) _