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