3 writes to SdkToolsPath
Microsoft.Build.Tasks.Core (1)
GenerateResource.cs (1)
1308resGen.SdkToolsPath = _resgenPath;
Microsoft.Build.Tasks.UnitTests (2)
ResourceHandling\ResGen_Tests.cs (2)
351t.SdkToolsPath = badParameterValue; 357t.SdkToolsPath = goodParameterValue;
15 references to SdkToolsPath
Microsoft.Build.Tasks.Core (6)
ResGen.cs (6)
141get => (string)Bag[nameof(SdkToolsPath)]; 142set => Bag[nameof(SdkToolsPath)] = value; 443(String.IsNullOrEmpty(SdkToolsPath) || !FileSystems.Default.DirectoryExists(SdkToolsPath))) 445Log.LogErrorWithCodeFromResources("ResGen.SdkOrToolPathNotSpecifiedOrInvalid", SdkToolsPath ?? "", ToolPath ?? ""); 522SdkToolsPath,
Microsoft.Build.Tasks.UnitTests (9)
ResourceHandling\ResGen_Tests.cs (9)
348Assert.Null(t.SdkToolsPath); // "SdkToolsPath should be null by default" 349ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "ResGen.SdkOrToolPathNotSpecifiedOrInvalid", t.SdkToolsPath, t.ToolPath); 352Assert.Equal(badParameterValue, t.SdkToolsPath); // "New SdkToolsPath value should be set" 353ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "ResGen.SdkOrToolPathNotSpecifiedOrInvalid", t.SdkToolsPath, t.ToolPath); 359Assert.Equal(goodParameterValue, t.SdkToolsPath); // "New SdkToolsPath value should be set" 365string sdkToolsPathMessage = t.Log.FormatResourceString("ResGen.SdkOrToolPathNotSpecifiedOrInvalid", t.SdkToolsPath, t.ToolPath); 441ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "ResGen.SdkOrToolPathNotSpecifiedOrInvalid", t.SdkToolsPath, t.ToolPath); 445ExecuteTaskAndVerifyLogContainsErrorFromResource(t, "ResGen.SdkOrToolPathNotSpecifiedOrInvalid", t.SdkToolsPath, t.ToolPath); 457string toolPathMessage = t.Log.FormatResourceString("ResGen.SdkOrToolPathNotSpecifiedOrInvalid", t.SdkToolsPath, t.ToolPath);