1 write to AssemblyName
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
87this.AssemblyName = name;
85 references to AssemblyName
Microsoft.Analyzers.Local (1)
ApiLifecycle\ModelLoader.cs (1)
24var assemblyName = compilation.AssemblyName!;
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
119var assemblyName = compilation.AssemblyName!;
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
119var assemblyName = compilation.AssemblyName!;
Microsoft.CodeAnalysis (15)
Compilation\Compilation.cs (10)
400/// If the compilation represents an assembly the value of <see cref="AssemblyName"/> is its simple name. 403/// written to metadata is <see cref="AssemblyName"/> with an extension based upon <see cref="CompilationOptions.OutputKind"/>. 412if (this.AssemblyName != null) 414MetadataHelpers.CheckAssemblyOrModuleName(this.AssemblyName, MessageProvider, MessageProvider.ERR_BadAssemblyName, diagnostics); 420return AssemblyName ?? UnspecifiedModuleAssemblyName; 426(AssemblyName != null ? AssemblyName + Options.OutputKind.GetDefaultExtension() : UnspecifiedModuleAssemblyName); 3650return string.Format("{0} ({1})", this.AssemblyName, stage.ToString()); 3655if (source == null || destination == null) return this.AssemblyName ?? ""; 3656return string.Format("{0}: {1} {2} -> {3} {4}", this.AssemblyName, source.TypeKind.ToString(), source.Name, destination.TypeKind.ToString(), destination.Name);
Compilation\CompilationOptions.cs (1)
33/// is derived from the name of the compilation (<see cref="Compilation.AssemblyName"/>)
DiagnosticAnalyzer\AnalysisContextInfo.cs (2)
78if (_compilation?.AssemblyName != null) 80sb.AppendLine($"{nameof(Compilation)}: {_compilation.AssemblyName}");
Emit\EmitOptions.cs (1)
78/// By default the name of the output assembly is <see cref="Compilation.AssemblyName"/>. Only in rare cases it is necessary
MetadataReference\CompilationReference.cs (1)
113return Compilation.AssemblyName;
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Lookup.cs (1)
1510var assemblyName = this.Compilation.AssemblyName;
Compilation\CSharpCompilation.cs (8)
559this.AssemblyName, 578this.AssemblyName, 609reuseReferenceManager: assemblyName == this.AssemblyName, 631this.AssemblyName, 663this.AssemblyName, 703this.AssemblyName, 727this.AssemblyName, 746this.AssemblyName,
Compilation\CSharpCompilationReference.cs (1)
56return CSharpResources.CompilationC + this.Compilation.AssemblyName;
Emitter\EditAndContinue\EmitHelpers.cs (2)
105diagnostics.Add(ErrorCode.ERR_ModuleEmitFailure, NoLocation.Singleton, compilation.AssemblyName, e.Message); 174compilation.AssemblyName,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EmitErrorTests.cs (1)
248Diagnostic(ErrorCode.ERR_ModuleEmitFailure).WithArguments(compilation2.AssemblyName, "Unable to determine specific cause of the failure.")
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
Emit\EditAndContinue\EditAndContinueTestBase.cs (1)
246string baseName = baseline.Compilation.AssemblyName;
PDB\PDBUsingTests.cs (4)
1749<externinfo alias = ""A"" assembly=""" + compilation1.AssemblyName + @", Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"" /> 1750<externinfo alias = ""B"" assembly=""" + compilation1.AssemblyName + @", Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"" /> 1812<externinfo alias=""B"" assembly=""" + compilation1.AssemblyName + @", Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"" /> 1813<externinfo alias=""A"" assembly=""" + compilation1.AssemblyName + @", Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"" />
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Diagnostics\DiagnosticAnalyzerTests.cs (9)
855IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")} 914IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")} 1027contextDetail = $@"Compilation: {compilation.AssemblyName} 1032contextDetail = $@"Compilation: {compilation.AssemblyName} 1039contextDetail = $@"Compilation: {compilation.AssemblyName} 1046contextDetail = $@"Compilation: {compilation.AssemblyName} 1052contextDetail = $@"Compilation: {compilation.AssemblyName}"; 1056contextDetail = $@"Compilation: {compilation.AssemblyName} 1109IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}
Diagnostics\DiagnosticSuppressorTests.cs (4)
449IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")} 501IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")} 554IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")} 607IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")}
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
100pdbPath: compilation.AssemblyName + ".pdb",
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\CompilationAPITests.cs (3)
1693Assert.Null(compilation.AssemblyName); 1701Assert.Null(compilation.AssemblyName); 1709Assert.Equal("ModuleAssemblyName", compilation.AssemblyName);
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\EditSession.cs (1)
1070newCompilation.AssemblyName ?? newProject.Name, // used for display in debugger diagnostics
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
RoundTripUtil.cs (1)
80var assemblyFileName = original.AssemblyName!;
Microsoft.CodeAnalysis.Test.Utilities (2)
CompilationVerifier.cs (1)
659var targetReference = LoadTestEmittedExecutableForSymbolValidation(EmittedAssemblyData, _compilation.Options.OutputKind, display: _compilation.AssemblyName);
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
279analysisContext.RegisterCompilationStartAction(context => AssemblyName = context.Compilation.AssemblyName);
Microsoft.CodeAnalysis.VisualBasic (13)
Compilation\VisualBasicCompilation.vb (10)
507Me.AssemblyName, 533Me.AssemblyName, 572reuseReferenceManager:=String.Equals(assemblyName, Me.AssemblyName, StringComparison.Ordinal), 601Me.AssemblyName, 655Me.AssemblyName, 690Me.AssemblyName, 716Me.AssemblyName, 738Me.AssemblyName, 1587errorTarget = Me.AssemblyName 1635Me.AssemblyName,
Compilation\VisualBasicCompilationReference.vb (1)
129Return VBResources.CompilationVisualBasic + _compilation.AssemblyName
Emit\EditAndContinue\EmitHelpers.vb (2)
95diagnostics.Add(ERRID.ERR_ModuleEmitFailure, NoLocation.Singleton, compilation.AssemblyName, e.Message) 159compilation.AssemblyName,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\CompilationAPITests.vb (3)
2068Assert.Null(c.AssemblyName) 2075Assert.Null(c.AssemblyName) 2082Assert.Equal("ModuleAssemblyName", c.AssemblyName)
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (5)
230compilation.AssemblyName, 241logger?.Log($"Beginning to create a skeleton assembly for {compilation.AssemblyName}..."); 251logger?.Log($"Successfully emitted a skeleton assembly for {compilation.AssemblyName}"); 270logger.Log($"Failed to create a skeleton assembly for {compilation.AssemblyName}:"); 292logger?.Log($"Done trying to create a skeleton assembly for {compilation.AssemblyName}");
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
808Assert.Equal("ReproApp", comp.AssemblyName); 826Assert.Equal("ReproApp", comp.AssemblyName);
Microsoft.Gen.ComplianceReports (1)
ComplianceReportsGenerator.cs (1)
80string report = emitter.Emit(classifiedTypes, context.Compilation.AssemblyName!);
Microsoft.Interop.JavaScript.JSImportGenerator (3)
JSExportGenerator.cs (1)
37var assemblyName = context.CompilationProvider.Select(static (c, _) => c.AssemblyName);
JSSignatureContext.cs (2)
74AssemblyName = env.Compilation.AssemblyName, 86return $"[{env.Compilation.AssemblyName}]{typeName}:{method.Name}";
Roslyn.Test.PdbUtilities (1)
Reader\PdbValidation.cs (1)
537ValidateDebugDirectory(peStream, portable ? pdbStream : null, compilation.AssemblyName + ".pdb", emitOptions.PdbChecksumAlgorithm, hasEmbeddedPdb: false, isDeterministic: compilation.IsEmitDeterministic);