2 writes to SdkToolsPath
Microsoft.Build.Tasks.UnitTests (2)
AxTlbBaseTask_Tests.cs (2)
209
t.
SdkToolsPath
= badParameterValue;
215
t.
SdkToolsPath
= goodParameterValue;
15 references to SdkToolsPath
Microsoft.Build.Tasks.Core (6)
AxTlbBaseTask.cs (6)
61
get => (string)Bag[nameof(
SdkToolsPath
)];
62
set => Bag[nameof(
SdkToolsPath
)] = value;
112
SdkToolsPath
,
129
(String.IsNullOrEmpty(
SdkToolsPath
) || !FileSystems.Default.DirectoryExists(
SdkToolsPath
)))
131
Log.LogErrorWithCodeFromResources("AxTlbBaseTask.SdkOrToolPathNotSpecifiedOrInvalid",
SdkToolsPath
?? "", ToolPath ?? "");
Microsoft.Build.Tasks.UnitTests (9)
AxTlbBaseTask_Tests.cs (9)
206
Assert.Null(t.
SdkToolsPath
); // "SdkToolsPath should be null by default"
207
Utilities.ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "AxTlbBaseTask.SdkOrToolPathNotSpecifiedOrInvalid", t.
SdkToolsPath
, t.ToolPath);
210
Assert.Equal(badParameterValue, t.
SdkToolsPath
); // "New SdkToolsPath value should be set"
211
Utilities.ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "AxTlbBaseTask.SdkOrToolPathNotSpecifiedOrInvalid", t.
SdkToolsPath
, t.ToolPath);
217
Assert.Equal(goodParameterValue, t.
SdkToolsPath
); // "New SdkToolsPath value should be set"
222
string sdkToolsPathMessage = t.Log.FormatResourceString("AxTlbBaseTask.SdkOrToolPathNotSpecifiedOrInvalid", t.
SdkToolsPath
, t.ToolPath);
241
Utilities.ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "AxTlbBaseTask.SdkOrToolPathNotSpecifiedOrInvalid", t.
SdkToolsPath
, t.ToolPath);
245
Utilities.ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "AxTlbBaseTask.SdkOrToolPathNotSpecifiedOrInvalid", t.
SdkToolsPath
, t.ToolPath);
256
string toolPathMessage = t.Log.FormatResourceString("AxTlbBaseTask.SdkOrToolPathNotSpecifiedOrInvalid", t.
SdkToolsPath
, t.ToolPath);