3 writes to CryptoKeyFile
Microsoft.CodeAnalysis (1)
Compilation\CompilationOptions.cs (1)
302this.CryptoKeyFile = string.IsNullOrEmpty(cryptoKeyFile) ? null : cryptoKeyFile;
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
340return new CSharpCompilationOptions(this) { CryptoKeyFile = path };
Microsoft.CodeAnalysis.VisualBasic (1)
VisualBasicCompilationOptions.vb (1)
749Return New VisualBasicCompilationOptions(Me) With {.CryptoKeyFile = path}
52 references to CryptoKeyFile
Microsoft.CodeAnalysis (18)
Compilation\Compilation.cs (1)
270options.CryptoKeyFile != null ||
Compilation\CompilationOptions.cs (15)
57/// If specified the values of <see cref="CryptoKeyFile"/> and <see cref="CryptoKeyContainer"/> 69/// To sign the output supply either one of <see cref="CryptoKeyFile"/> or <see cref="CryptoKeyContainer"/>. 73/// If <see cref="PublicSign" /> is also set, <see cref="CryptoKeyFile"/> must be the absolute 84/// To sign the output supply either one of <see cref="CryptoKeyFile"/> or <see cref="CryptoKeyContainer"/>. 101/// If false and <see cref="CryptoPublicKey"/>, <see cref="CryptoKeyFile"/>, or <see cref="CryptoKeyContainer"/> is specified 118/// The key must be provided through either an absolute path in <see cref="CryptoKeyFile"/> 568if (CryptoKeyFile != null) 571Location.None, nameof(CryptoPublicKey), nameof(CryptoKeyFile))); 583if (CryptoKeyFile != null && !PathUtilities.IsAbsolute(CryptoKeyFile)) 586Location.None, nameof(CryptoKeyFile))); 629string.Equals(this.CryptoKeyFile, other.CryptoKeyFile, StringComparison.Ordinal) && 677Hash.Combine(this.CryptoKeyFile != null ? StringComparer.Ordinal.GetHashCode(this.CryptoKeyFile) : 0,
Compilation\DeterministicKeyBuilder.cs (1)
447writer.Write("cryptoKeyFile", options.CryptoKeyFile);
StrongName\StrongNameKeys.cs (1)
53/// <see cref="CompilationOptions.CryptoKeyFile"/>
Microsoft.CodeAnalysis.CSharp (7)
CSharpCompilationOptions.cs (2)
241cryptoKeyFile: other.CryptoKeyFile, 335if (path == this.CryptoKeyFile)
Symbols\Source\SourceAssemblySymbol.cs (5)
482string keyFile = _compilation.Options.CryptoKeyFile; 831if (!String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile)) 847else if (String.Compare(_compilation.Options.CryptoKeyFile, assemblyKeyFileAttributeSetting, StringComparison.OrdinalIgnoreCase) != 0) 2029if (!String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile) && 2035var typedConstant = new TypedConstant(stringType, TypedConstantKind.Primitive, _compilation.Options.CryptoKeyFile);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Attributes\InternalsVisibleToAndStrongNameTests.cs (5)
619Assert.NotNull(comp.Options.CryptoKeyFile); 641Assert.NotNull(comp.Options.CryptoKeyFile); 667Assert.NotNull(comp.Options.CryptoKeyFile); 2814Assert.Null(options.CryptoKeyFile); 2837Assert.Null(options.CryptoKeyFile);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CSharpCompilationOptionsTests.cs (2)
80TestHiddenProperty((old, value) => old.WithCryptoKeyFile(value), opt => opt.CryptoKeyFile, "goo"); 118TestProperty((old, value) => old.WithCryptoKeyFile(value), opt => opt.CryptoKeyFile, "goo");
Microsoft.CodeAnalysis.VisualBasic (7)
Symbols\Source\SourceAssemblySymbol.vb (5)
1324If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile) Then 1336ElseIf String.Compare(_compilation.Options.CryptoKeyFile, assemblyKeyFileAttributeSetting, StringComparison.OrdinalIgnoreCase) <> 0 Then 1627If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile) AndAlso 1632Dim typedConstant = New TypedConstant(stringType, TypedConstantKind.Primitive, _compilation.Options.CryptoKeyFile) 1705Dim keyFile As String = _compilation.Options.CryptoKeyFile
VisualBasicCompilationOptions.vb (2)
315cryptoKeyFile:=other.CryptoKeyFile, 745If String.Equals(path, Me.CryptoKeyFile, StringComparison.Ordinal) Then
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (8)
CommandLineTests.vb (8)
4697Assert.Equal("\somepath\some File.goo.bar", parsedArgs.CompilationOptions.CryptoKeyFile) 4701Assert.Null(parsedArgs.CompilationOptions.CryptoKeyFile) 4705Assert.Null(parsedArgs.CompilationOptions.CryptoKeyFile) 4709Assert.Null(parsedArgs.CompilationOptions.CryptoKeyFile) 4715Assert.Equal(Nothing, parsedArgs.CompilationOptions.CryptoKeyFile) 4721Assert.Equal("b", parsedArgs.CompilationOptions.CryptoKeyFile) 4727Assert.Equal(Nothing, parsedArgs.CompilationOptions.CryptoKeyFile) 9230Assert.Equal(Path.Combine(_baseDirectory, "test.snk"), parsedArgs.CompilationOptions.CryptoKeyFile)
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\AbstractOptionsSerializationService.cs (1)
38writer.WriteString(options.CryptoKeyFile);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
VisualStudioMSBuildWorkspaceTests.cs (4)
1560await AssertCSCompilationOptionsAsync(null, options => options.CryptoKeyFile); 1567await AssertCSCompilationOptionsAsync(null, options => options.CryptoKeyFile); 1574await AssertCSCompilationOptionsAsync("snKey.snk", options => Path.GetFileName(options.CryptoKeyFile)); 1825await AssertVBCompilationOptionsAsync(null, options => options.CryptoKeyFile);