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