71 references to WithCryptoKeyFile
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
795return WithCryptoKeyFile(cryptoKeyFile);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenTupleTest.cs (1)
23219WithCryptoKeyFile(SigningTestHelpers.KeyPairFile);
Emit\CompilationEmitTests.cs (4)
1999options: TestOptions.ReleaseDll.WithCryptoKeyFile(snk.Path).WithPublicSign(true)); 2015WithCryptoKeyFile(SigningTestHelpers.KeyPairFile); 2033WithCryptoKeyFile(SigningTestHelpers.KeyPairFile). 2053.WithCryptoKeyFile(SigningTestHelpers.KeyPairFile)
Emit\DesktopStrongNameProviderTests.cs (2)
98.WithCryptoKeyFile(SigningTestHelpers.KeyPairFile); 115.WithCryptoKeyFile(SigningTestHelpers.KeyPairFile);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (55)
Attributes\InternalsVisibleToAndStrongNameTests.cs (55)
281var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 298var comp = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(keyFileName), parseOptions: parseOptions); 311TestOptions.ReleaseDll.WithCryptoKeyFile(keyFileName).WithStrongNameProvider(GetProviderWithPath(keyFileDir))); 323options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true), 341options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(publicKeyFileName).WithDelaySign(true), 358TestOptions.ReleaseDll.WithCryptoKeyFile(publicKeyFileName).WithDelaySign(true).WithStrongNameProvider(GetProviderWithPath(publicKeyFileDir))); 368var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile("goo"), parseOptions: parseOptions); 383CSharpCompilation other = CreateCompilation(s, options: TestOptions.ReleaseDll.WithCryptoKeyFile(tempFile.Path), parseOptions: parseOptions); 415var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 524c = CreateCompilation(source, options: TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_publicKeyFile).WithPublicSign(true), parseOptions: parseOptions); 541c = CreateCompilation(source1, options: TestOptions.SigningReleaseModule.WithCryptoKeyFile(snk.Path).WithPublicSign(true)); 610.WithCryptoKeyFile(snk.Path) 632.WithCryptoKeyFile(pubKeyFile.Path) 656.WithCryptoKeyFile(pubKeyFile.Path) 721.WithCryptoKeyFile(snk.Path), 742.WithCryptoKeyFile(snk.Path), 775WithCryptoKeyFile("file.snk"), 899options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 947options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1072options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1092options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1181options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1216options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1257options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1287options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1323options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1366options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(SigningTestHelpers.KeyPairFile2), 1383options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 1423", options: TestOptions.SigningReleaseExe.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 1453options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(SigningTestHelpers.MaxSizeKeyFile), 1474options: TestOptions.SigningReleaseExe.WithCryptoKeyFile(SigningTestHelpers.MaxSizeKeyFile), 1484options: TestOptions.SigningReleaseExe.WithCryptoKeyFile(SigningTestHelpers.MaxSizeKeyFile), 1502options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 1718var options = TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_keyPairFile); 1737.WithCryptoKeyFile(s_keyPairFile); 1755var options = TestOptions.SigningDebugDll.WithCryptoKeyFile(s_keyPairFile); 1778var options = TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_keyPairFile); 1796var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 1816options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile), parseOptions: parseOptions); 1822other = other.WithOptions(TestOptions.SigningReleaseModule.WithCryptoKeyFile(s_publicKeyFile)); 1866}", options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile), parseOptions: parseOptions); 1907options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 1942}", options: TestOptions.SigningReleaseDll.WithDelaySign(true).WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 1969.WithCryptoKeyFile(s_keyPairFile); 2413", options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 2441", options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), parseOptions: parseOptions); 2511options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), 2540options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions); 2569var options = TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_keyPairFile); 2599options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true), 2631options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions); 2656options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions); 2686options: TestOptions.SigningReleaseDll.WithCryptoKeyFile(s_publicKeyFile).WithDelaySign(true), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions); 2825var options = TestOptions.DebugDll.WithCryptoKeyFile(string.Empty); 2848var options = TestOptions.DebugDll.WithCryptoKeyFile(string.Empty).WithPublicSign(true);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\CompilationAPITests.cs (4)
240.WithPublicSign(true).WithCryptoKeyFile("test.snk"); 254CreateCompilation("", options: TestOptions.ReleaseDll.WithPublicSign(true).WithCryptoKeyFile("")).VerifyDiagnostics( 263CreateCompilation("", options: TestOptions.ReleaseDll.WithPublicSign(true).WithCryptoKeyFile("\"\"")).VerifyDiagnostics( 2422Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.WithCryptoKeyFile("goo.snk")));
Compilation\CSharpCompilationOptionsTests.cs (1)
118TestProperty((old, value) => old.WithCryptoKeyFile(value), opt => opt.CryptoKeyFile, "goo");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Utilities\SymbolEquivalenceComparerTests.cs (1)
27WithCryptoKeyFile(SigningTestHelpers.KeyPairFile).
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
CSharpDeterministicKeyBuilderTests.cs (1)
415.WithCryptoKeyFile(keyFilePath)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
141.WithCryptoKeyFile(GetFilePathRelativeOption(CompilerOptions.OPTID_KEYFILE))