8 writes to KeyFile
Microsoft.Build.Tasks.Core (2)
AxReference.cs (1)
84axImp.KeyFile = KeyFile;
TlbReference.cs (1)
162KeyFile = KeyFile,
Microsoft.Build.Tasks.UnitTests (6)
AxTlbBaseTask_Tests.cs (6)
145t.KeyFile = badParameterValue; 153t.KeyFile = goodParameterValue; 186t.KeyFile = testParameterValue; 286t.KeyFile = tempKeyFile; 292t.KeyFile = null; 297t.KeyFile = tempKeyFile;
18 references to KeyFile
Microsoft.Build.Tasks.Core (10)
AxTlbBaseTask.cs (10)
52get => (string)Bag[nameof(KeyFile)]; 53set => Bag[nameof(KeyFile)] = value; 160commandLine.AppendSwitchIfNotNull("/publickey:", KeyFile); 164commandLine.AppendSwitchIfNotNull("/keyfile:", KeyFile); 180if (!String.IsNullOrEmpty(KeyFile)) 182if (FileSystems.Default.FileExists(KeyFile)) 188Log.LogErrorWithCodeFromResources("AxTlbBaseTask.InvalidKeyFileSpecified", KeyFile); 219StrongNameUtils.GetStrongNameKey(Log, KeyFile, KeyContainer, out keyPair, out publicKey); 251if (!String.IsNullOrEmpty(KeyFile)) 253Log.LogErrorWithCodeFromResources("AxTlbBaseTask.StrongNameUtils.NoKeyPairInFile", KeyFile);
Microsoft.Build.Tasks.UnitTests (8)
AxTlbBaseTask_Tests.cs (8)
139Assert.Null(t.KeyFile); // "KeyFile should be null by default" 146Assert.Equal(badParameterValue, t.KeyFile); // "New KeyFile value should be set" 151Utilities.ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "AxTlbBaseTask.InvalidKeyFileSpecified", t.KeyFile); 154Assert.Equal(goodParameterValue, t.KeyFile); // "New KeyFile value should be set" 159Utilities.ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "AxTlbBaseTask.StrongNameUtils.NoKeyPairInFile", t.KeyFile); 180Assert.Null(t.KeyFile); // "KeyFile should be null by default" 187Assert.Equal(testParameterValue, t.KeyFile); // "New KeyFile value should be set" 298Utilities.ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "AxTlbBaseTask.StrongNameUtils.NoKeyPairInFile", t.KeyFile);