71 references to Log
Microsoft.Build.Tasks.Core (55)
Al.cs (1)
321
pathToTool = SdkToolsPathUtility.GeneratePathToTool(f => SdkToolsPathUtility.FileInfoExists(f), archToLookFor, SdkToolsPath, ToolExe,
Log
, true);
AspNetCompiler.cs (7)
228
Log
.LogExternalProjectStarted(string.Empty, null, ProjectName, TargetName);
237
Log
.LogExternalProjectFinished(string.Empty, null, ProjectName, succeeded);
305
Log
.LogErrorWithCodeFromResources("General.FrameworksFileNotFound", ToolExe,
320
Log
.LogErrorWithCodeFromResources("AspNetCompiler.CannotCombineMetabaseAndVirtualPathOrPhysicalPath");
326
Log
.LogErrorWithCodeFromResources("AspNetCompiler.MissingMetabasePathAndVirtualPath");
332
Log
.LogErrorWithCodeFromResources("AspNetCompiler.MissingTargetPathForUpdatableApplication");
338
Log
.LogErrorWithCodeFromResources("AspNetCompiler.MissingTargetPathForOverwrittenApplication");
AxImp.cs (1)
150
Log
.LogErrorWithCodeFromResources("AxImp.NoInputFileSpecified");
AxTlbBaseTask.cs (11)
86
Log
.LogErrorWithCodeFromResources("AxTlbBaseTask.ToolNameMustBeSet");
114
Log
,
131
Log
.LogErrorWithCodeFromResources("AxTlbBaseTask.SdkOrToolPathNotSpecifiedOrInvalid", SdkToolsPath ?? "", ToolPath ?? "");
188
Log
.LogErrorWithCodeFromResources("AxTlbBaseTask.InvalidKeyFileSpecified", KeyFile);
199
Log
.LogErrorWithCodeFromResources("AxTlbBaseTask.CannotSpecifyBothKeyFileAndKeyContainer");
206
Log
.LogErrorWithCodeFromResources("AxTlbBaseTask.CannotSpecifyDelaySignWithoutEitherKeyFileOrKeyContainer");
219
StrongNameUtils.GetStrongNameKey(
Log
, KeyFile, KeyContainer, out keyPair, out publicKey);
223
Log
.LogErrorFromException(e);
233
Log
.LogErrorWithCodeFromResources("AxTlbBaseTask.StrongNameUtils.NoPublicKeySpecified");
248
Log
.LogErrorWithCodeFromResources("AxTlbBaseTask.StrongNameUtils.NoKeyPairInContainer", KeyContainer);
253
Log
.LogErrorWithCodeFromResources("AxTlbBaseTask.StrongNameUtils.NoKeyPairInFile", KeyFile);
Exec.cs (13)
149
Log
.LogErrorWithCodeFromResources("General.InvalidValue", "StdOutEncoding", "Exec");
170
Log
.LogErrorWithCodeFromResources("General.InvalidValue", "StdErrEncoding", "Exec");
317
Log
.LogMessageFromResources(MessageImportance.Normal, "Exec.CommandFailedNoErrorCode", Command, ExitCode);
326
Log
.LogErrorWithCodeFromResources("Exec.CommandFailedAccessDenied", commandForLog, ExitCode);
330
Log
.LogErrorWithCodeFromResources("Exec.CommandExitedZeroWithErrors", commandForLog);
334
Log
.LogErrorWithCodeFromResources("Exec.CommandFailed", commandForLog, ExitCode);
378
Log
.LogError(singleLine);
382
Log
.LogWarning(singleLine);
388
Log
.LogMessage(messageImportance, singleLine, null);
393
Log
.LogMessageFromText(singleLine, messageImportance);
431
Log
.LogErrorWithCodeFromResources("Exec.InvalidRegex", regularExpression, ex.Message);
456
Log
.LogErrorWithCodeFromResources("Exec.MissingCommandError");
473
Log
.LogErrorWithCodeFromResources("Exec.AllDriveLettersMappedError", _workingDirectory);
LC.cs (1)
136
string pathToTool = SdkToolsPathUtility.GeneratePathToTool(SdkToolsPathUtility.FileInfoExists, ProcessorArchitecture.CurrentProcessArchitecture, SdkToolsPath, ToolExe,
Log
, true);
ResGen.cs (9)
223
Log
.LogMessageFromResources(MessageImportance.Low, "ResGen.NoInputFiles");
224
return !
Log
.HasLoggedErrors;
240
Log
.LogErrorWithCodeFromResources("ResGen.CommandTooLong", commandLineCommands.Length);
317
return success && !
Log
.HasLoggedErrors;
410
Log
.LogErrorWithCodeFromResources("General.TwoVectorsMustHaveSameLength", InputFiles.Length, OutputFiles.Length, "InputFiles", "OutputFiles");
422
Log
.LogErrorWithCodeFromResources("ResGen.STRLanguageButNotExactlyOneSourceFile");
435
Log
.LogErrorWithCodeFromResources("ResGen.STRClassNamespaceOrFilenameWithoutLanguage");
445
Log
.LogErrorWithCodeFromResources("ResGen.SdkOrToolPathNotSpecifiedOrInvalid", SdkToolsPath ?? "", ToolPath ?? "");
524
Log
,
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
138
Log
.LogMessageFromText(message, StandardOutputImportanceToUse);
SGen.cs (6)
178
Log
.LogErrorWithCodeFromResources("SGen.InvalidPath", "BuildAssemblyPath", e.Message);
250
Log
.LogErrorWithCodeFromResources("SGen.InvalidPath", "BuildAssemblyName", e.Message);
317
pathToTool = SdkToolsPathUtility.GeneratePathToTool(SdkToolsPathUtility.FileInfoExists, ProcessorArchitecture.CurrentProcessArchitecture, SdkToolsPath, ToolExe,
Log
, true);
335
Log
.LogErrorWithCodeFromResources("SGen.ResourceNotFound", reference);
444
Log
.LogErrorWithCodeFromResources("SGen.CouldNotDeleteSerializer", SerializationAssemblyPath, e.Message);
448
Log
.LogErrorWithCodeFromResources("SGen.CouldNotDeleteSerializer", SerializationAssemblyPath, e.Message);
TlbImp.cs (2)
272
Log
.LogErrorWithCodeFromResources("TlbImp.NoInputFileSpecified");
280
Log
.LogErrorWithCodeFromResources("TlbImp.InvalidTransformParameter", Transform.ToString());
ToolTaskExtension.cs (1)
54
protected override bool HasLoggedErrors =>
Log
.HasLoggedErrors || base.HasLoggedErrors;
WinMDExp.cs (2)
245
return SdkToolsPathUtility.GeneratePathToTool(SdkToolsPathUtility.FileInfoExists, Microsoft.Build.Utilities.ProcessorArchitecture.CurrentProcessArchitecture, SdkToolsPath, ToolExe,
Log
, true);
255
Log
.LogErrorWithCodeFromResources("WinMDExp.MustPassReferences");
Microsoft.Build.Tasks.UnitTests (16)
AxTlbBaseTask_Tests.cs (6)
222
string sdkToolsPathMessage = t.
Log
.FormatResourceString("AxTlbBaseTask.SdkOrToolPathNotSpecifiedOrInvalid", t.SdkToolsPath, t.ToolPath);
224
string sdkToolsPathCode = t.
Log
.ExtractMessageCode(sdkToolsPathMessage, out messageWithNoCode);
256
string toolPathMessage = t.
Log
.FormatResourceString("AxTlbBaseTask.SdkOrToolPathNotSpecifiedOrInvalid", t.SdkToolsPath, t.ToolPath);
258
string toolPathCode = t.
Log
.ExtractMessageCode(toolPathMessage, out messageWithNoCode);
332
VerifyLogContainsErrorFromResource(e, t.
Log
, errorResource, args);
364
VerifyLogDoesNotContainErrorFromResource(e, t.
Log
, errorResource, args);
ResourceHandling\ResGen_Tests.cs (6)
365
string sdkToolsPathMessage = t.
Log
.FormatResourceString("ResGen.SdkOrToolPathNotSpecifiedOrInvalid", t.SdkToolsPath, t.ToolPath);
367
string sdkToolsPathCode = t.
Log
.ExtractMessageCode(sdkToolsPathMessage, out messageWithNoCode);
457
string toolPathMessage = t.
Log
.FormatResourceString("ResGen.SdkOrToolPathNotSpecifiedOrInvalid", t.SdkToolsPath, t.ToolPath);
459
string toolPathCode = t.
Log
.ExtractMessageCode(toolPathMessage, out messageWithNoCode);
515
VerifyLogContainsResource(e, t.
Log
, resourceString, args);
549
VerifyLogDoesNotContainResource(e, t.
Log
, resourceString, args);
ToolTaskExtension_Tests.cs (4)
34
t.
Log
.LogErrorWithCodeFromResources("Csc.AssemblyAliasContainsIllegalCharacters", "PlanetSide", "Knights of the Old Republic");
35
t.
Log
.LogWarningWithCodeFromResources("Csc.InvalidParameter");
36
t.
Log
.LogMessageFromResources("Vbc.ParameterHasInvalidValue", "Rome Total War", "Need for Speed Underground");
64
t.
Log
.LogErrorFromResources("Beyond Good and Evil");