8 writes to KeyContainer
Microsoft.Build.Tasks.Core (2)
AxReference.cs (1)
83axImp.KeyContainer = KeyContainer;
TlbReference.cs (1)
161KeyContainer = KeyContainer,
Microsoft.Build.Tasks.UnitTests (6)
AxTlbBaseTask_Tests.cs (6)
62t.KeyContainer = badParameterValue; 77t.KeyContainer = goodParameterValue; 115t.KeyContainer = testParameterValue; 285t.KeyContainer = tempKeyContainer; 291t.KeyContainer = tempKeyContainer; 296t.KeyContainer = null;
15 references to KeyContainer
Microsoft.Build.Tasks.Core (7)
AxTlbBaseTask.cs (7)
43get => (string)Bag[nameof(KeyContainer)]; 44set => Bag[nameof(KeyContainer)] = value; 167commandLine.AppendSwitchIfNotNull("/keycontainer:", KeyContainer); 194bool keyContainerSpecified = !String.IsNullOrEmpty(KeyContainer); 219StrongNameUtils.GetStrongNameKey(Log, KeyFile, KeyContainer, out keyPair, out publicKey); 246if (!String.IsNullOrEmpty(KeyContainer)) 248Log.LogErrorWithCodeFromResources("AxTlbBaseTask.StrongNameUtils.NoKeyPairInContainer", KeyContainer);
Microsoft.Build.Tasks.UnitTests (8)
AxTlbBaseTask_Tests.cs (8)
56Assert.Null(t.KeyContainer); // "KeyContainer should be null by default"); 63Assert.Equal(badParameterValue, t.KeyContainer); // "New KeyContainer value should be set" 65Utilities.ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "AxTlbBaseTask.StrongNameUtils.NoKeyPairInContainer", t.KeyContainer); 78Assert.Equal(goodParameterValue, t.KeyContainer); // "New KeyContainer value should be set" 80Utilities.ExecuteTaskAndVerifyLogDoesNotContainErrorFromResource(t, "AxTlbBaseTask.StrongNameUtils.NoKeyPairInContainer", t.KeyContainer); 109Assert.Null(t.KeyContainer); // "KeyContainer should be null by default" 116Assert.Equal(testParameterValue, t.KeyContainer); // "New KeyContainer value should be set" 293Utilities.ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "AxTlbBaseTask.StrongNameUtils.NoKeyPairInContainer", t.KeyContainer);