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