72 references to WithCryptoKeyFile
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
795
return
WithCryptoKeyFile
(cryptoKeyFile);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
14208
options: TestOptions.DebugDll.
WithCryptoKeyFile
(Path.GetFileName(snk.Path)).WithStrongNameProvider(virtualSnProvider),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenTupleTest.cs (1)
23219
WithCryptoKeyFile
(SigningTestHelpers.KeyPairFile);
Emit\CompilationEmitTests.cs (4)
1999
options: TestOptions.ReleaseDll.
WithCryptoKeyFile
(snk.Path).WithPublicSign(true));
2015
WithCryptoKeyFile
(SigningTestHelpers.KeyPairFile);
2033
WithCryptoKeyFile
(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)
281
var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile), parseOptions: parseOptions);
298
var comp = CreateCompilation(s, options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(keyFileName), parseOptions: parseOptions);
311
TestOptions.ReleaseDll.
WithCryptoKeyFile
(keyFileName).WithStrongNameProvider(GetProviderWithPath(keyFileDir)));
323
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_publicKeyFile).WithDelaySign(true),
341
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(publicKeyFileName).WithDelaySign(true),
358
TestOptions.ReleaseDll.
WithCryptoKeyFile
(publicKeyFileName).WithDelaySign(true).WithStrongNameProvider(GetProviderWithPath(publicKeyFileDir)));
368
var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
("goo"), parseOptions: parseOptions);
383
CSharpCompilation other = CreateCompilation(s, options: TestOptions.ReleaseDll.
WithCryptoKeyFile
(tempFile.Path), parseOptions: parseOptions);
415
var other = CreateCompilation(s, options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile), parseOptions: parseOptions);
524
c = CreateCompilation(source, options: TestOptions.SigningReleaseModule.
WithCryptoKeyFile
(s_publicKeyFile).WithPublicSign(true), parseOptions: parseOptions);
541
c = 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),
775
WithCryptoKeyFile
("file.snk"),
899
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile),
947
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile),
1072
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile),
1092
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile),
1181
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile),
1216
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile),
1257
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile),
1287
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile),
1323
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile),
1366
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(SigningTestHelpers.KeyPairFile2),
1383
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile),
1423
", options: TestOptions.SigningReleaseExe.
WithCryptoKeyFile
(s_keyPairFile), parseOptions: parseOptions);
1453
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(SigningTestHelpers.MaxSizeKeyFile),
1474
options: TestOptions.SigningReleaseExe.
WithCryptoKeyFile
(SigningTestHelpers.MaxSizeKeyFile),
1484
options: TestOptions.SigningReleaseExe.
WithCryptoKeyFile
(SigningTestHelpers.MaxSizeKeyFile),
1502
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile), parseOptions: parseOptions);
1718
var options = TestOptions.SigningReleaseModule.
WithCryptoKeyFile
(s_keyPairFile);
1737
.
WithCryptoKeyFile
(s_keyPairFile);
1755
var options = TestOptions.SigningDebugDll.
WithCryptoKeyFile
(s_keyPairFile);
1778
var options = TestOptions.SigningReleaseModule.
WithCryptoKeyFile
(s_keyPairFile);
1796
var other = CreateCompilation(s, options: TestOptions.SigningReleaseModule.
WithCryptoKeyFile
(s_keyPairFile), parseOptions: parseOptions);
1816
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_publicKeyFile), parseOptions: parseOptions);
1822
other = other.WithOptions(TestOptions.SigningReleaseModule.
WithCryptoKeyFile
(s_publicKeyFile));
1866
}", options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_publicKeyFile), parseOptions: parseOptions);
1907
options: 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);
2511
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile),
2540
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions);
2569
var options = TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_keyPairFile);
2599
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_publicKeyFile).WithDelaySign(true),
2631
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_publicKeyFile).WithDelaySign(true), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions);
2656
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_publicKeyFile).WithDelaySign(true), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions);
2686
options: TestOptions.SigningReleaseDll.
WithCryptoKeyFile
(s_publicKeyFile).WithDelaySign(true), references: new[] { MscorlibRef_v4_0_30316_17626 }, parseOptions: parseOptions);
2825
var options = TestOptions.DebugDll.
WithCryptoKeyFile
(string.Empty);
2848
var options = TestOptions.DebugDll.
WithCryptoKeyFile
(string.Empty).WithPublicSign(true);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\CompilationAPITests.cs (4)
240
.WithPublicSign(true).
WithCryptoKeyFile
("test.snk");
254
CreateCompilation("", options: TestOptions.ReleaseDll.WithPublicSign(true).
WithCryptoKeyFile
("")).VerifyDiagnostics(
263
CreateCompilation("", options: TestOptions.ReleaseDll.WithPublicSign(true).
WithCryptoKeyFile
("\"\"")).VerifyDiagnostics(
2422
Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a", options: TestOptions.ReleaseDll.
WithCryptoKeyFile
("goo.snk")));
Compilation\CSharpCompilationOptionsTests.cs (1)
118
TestProperty((old, value) => old.
WithCryptoKeyFile
(value), opt => opt.CryptoKeyFile, "goo");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Utilities\SymbolEquivalenceComparerTests.cs (1)
27
WithCryptoKeyFile
(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))