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