274 references to LogErrorWithCodeFromResources
Microsoft.Build.Tasks.CodeAnalysis (8)
CopyRefAssembly.cs (2)
38
Log.
LogErrorWithCodeFromResources
("General_ExpectedFileMissing", SourcePath);
91
Log.
LogErrorWithCodeFromResources
("Compiler_UnexpectedException");
ManagedCompiler.cs (2)
577
Log.
LogErrorWithCodeFromResources
("Compiler_UnexpectedException");
1153
Log.
LogErrorWithCodeFromResources
("General_ReferenceDoesNotExist", reference.ItemSpec);
Vbc.cs (4)
334
Log.
LogErrorWithCodeFromResources
("VBC_RenamePDB", PdbFile, e.Message);
607
Log.
LogErrorWithCodeFromResources
("Vbc_EnumParameterHasInvalidValue", "Verbosity", this.Verbosity, "Quiet, Normal, Verbose");
963
Log.
LogErrorWithCodeFromResources
("General_CouldNotSetHostObjectParameter", param, e.Message);
1086
Log.
LogErrorWithCodeFromResources
("General_IncorrectHostObject", "Vbc", "IVbcHostObject");
Microsoft.Build.Tasks.Core (227)
AssemblyDependency\GenerateBindingRedirects.cs (1)
347
Log.
LogErrorWithCodeFromResources
("GenerateBindingRedirects.MissingConfigurationNode");
AssemblyDependency\ReferenceTable.cs (3)
2933
_log.
LogErrorWithCodeFromResources
("ResolveAssemblyReference.UnknownProcessorArchitecture", dllPath, winmdFile, machineType.ToString("X", CultureInfo.InvariantCulture));
2954
_log.
LogErrorWithCodeFromResources
("ResolveAssemblyReference.MismatchBetweenTargetedAndReferencedArchOfImplementation", ResolveAssemblyReference.ProcessorArchitectureToString(_targetProcessorArchitecture), ResolveAssemblyReference.ProcessorArchitectureToString(dllArchitecture), dllPath, winmdFile);
2967
_log.
LogErrorWithCodeFromResources
("ResolveAssemblyReference.ProblemReadingImplementationDll", dllPath, e.Message);
AssemblyDependency\ResolveAssemblyReference.cs (8)
2172
Log.
LogErrorWithCodeFromResources
("ResolveAssemblyReference.InvalidParameter", "TargetFrameworkMoniker", _targetedFrameworkMoniker, String.Empty);
2449
Log.
LogErrorWithCodeFromResources
("ResolveAssemblyReference.ProblemDeterminingFrameworkMembership", e.Message);
2485
Log.
LogErrorWithCodeFromResources
("ResolveAssemblyReference.ProblemDeterminingFrameworkMembership", e.Message);
2638
Log.
LogErrorWithCodeFromResources
("ResolveAssemblyReference.MismatchBetweenTargetedAndReferencedArch", ProcessorArchitectureToString(processorArchitecture), item.GetMetadata("OriginalItemSpec"), ProcessorArchitectureToString(assemblyArch));
2653
Log.
LogErrorWithCodeFromResources
("General.InvalidArgument", e.Message);
2765
Log.
LogErrorWithCodeFromResources
("ResolveAssemblyReference.FrameworkDirectoryOnProfiles", item.ItemSpec);
2866
Log.
LogErrorWithCodeFromResources
("ResolveAssemblyReference.CannotSetProfileAndSubSet");
2873
Log.
LogErrorWithCodeFromResources
("ResolveAssemblyReference.MustSetProfileNameAndFolderLocations");
AssignCulture.cs (1)
205
Log.
LogErrorWithCodeFromResources
("AssignCulture.CannotExtractCulture", Files[i].ItemSpec, e.Message);
AssignProjectConfiguration.cs (1)
244
Log.
LogErrorWithCodeFromResources
("General.ErrorExecutingTask", GetType().Name, e.Message);
CodeTaskFactory.cs (1)
1039
log.
LogErrorWithCodeFromResources
("TaskFactoryNotSupportedFailure", nameof(CodeTaskFactory));
CombinePath.cs (1)
75
Log.
LogErrorWithCodeFromResources
("General.InvalidArgument", e.Message);
CombineTargetFrameworkInfoProperties.cs (1)
44
Log.
LogErrorWithCodeFromResources
(resource, nameof(RootElementName), nameof(UseAttributeForTargetFrameworkInfoPropertyNames));
ConvertToAbsolutePath.cs (1)
71
Log.
LogErrorWithCodeFromResources
("General.InvalidArgument", e.Message);
Copy.cs (16)
235
Log.
LogErrorWithCodeFromResources
("Copy.DestinationIsDirectory", sourceFileState.Name, destinationFileState.Name);
245
Log.
LogErrorWithCodeFromResources
("Copy.SourceIsDirectory", sourceFileState.Name);
251
Log.
LogErrorWithCodeFromResources
("Copy.SourceFileNotFound", sourceFileState.Name);
336
Log.
LogErrorWithCodeFromResources
("Copy.LinkFailed", sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath);
660
Log.
LogErrorWithCodeFromResources
("Copy.InvalidRetryCount", Retries);
666
Log.
LogErrorWithCodeFromResources
("Copy.InvalidRetryDelay", RetryDelayMilliseconds);
673
Log.
LogErrorWithCodeFromResources
("Copy.NeedsDestination", "DestinationFiles", "DestinationFolder");
680
Log.
LogErrorWithCodeFromResources
("Copy.ExactlyOneTypeOfDestination", "DestinationFiles", "DestinationFolder");
687
Log.
LogErrorWithCodeFromResources
("Copy.IncompatibleParameters", "SourceFolders", "DestinationFiles");
694
Log.
LogErrorWithCodeFromResources
("General.TwoVectorsMustHaveSameLength", DestinationFiles.Length, SourceFiles.Length, "DestinationFiles", "SourceFiles");
700
Log.
LogErrorWithCodeFromResources
("Copy.ErrorIfLinkFailsSetWithoutLinkOption");
830
Log.
LogErrorWithCodeFromResources
("Copy.Error", src, dest, e.Message);
886
Log.
LogErrorWithCodeFromResources
("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message);
891
Log.
LogErrorWithCodeFromResources
("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message);
987
Log.
LogErrorWithCodeFromResources
("Copy.ExceededRetries", sourceFileState.Name,
1011
Log.
LogErrorWithCodeFromResources
("Copy.ExceededRetries", sourceFileState.Name,
CreateItem.cs (2)
123
Log.
LogErrorWithCodeFromResources
("CreateItem.AdditionalMetadataError", nameAndValue.Key);
172
Log.
LogErrorWithCodeFromResources
(
CreateManifestResourceName.cs (1)
245
Log.
LogErrorWithCodeFromResources
("CreateManifestResourceName.Error", resourceFile.ItemSpec, e.Message);
Delete.cs (3)
74
Log.
LogErrorWithCodeFromResources
("Delete.InvalidRetryCount", Retries);
80
Log.
LogErrorWithCodeFromResources
("Delete.InvalidRetryDelay", RetryDelayMilliseconds);
186
Log.
LogErrorWithCodeFromResources
("Delete.Error", file.ItemSpec, e.Message, lockedFileMessage);
DownloadFile.cs (3)
90
Log.
LogErrorWithCodeFromResources
("DownloadFile.ErrorInvalidUrl", SourceUrl);
131
Log.
LogErrorWithCodeFromResources
("DownloadFile.ErrorDownloading", SourceUrl, flattenedMessage);
174
Log.
LogErrorWithCodeFromResources
("DownloadFile.ErrorUnknownFileName", SourceUrl, nameof(DestinationFileName));
ErrorFromResources.cs (1)
62
Log.
LogErrorWithCodeFromResources
("ErrorFromResources.LogErrorFailure", Resource, e.Message);
Exec.cs (7)
149
Log.
LogErrorWithCodeFromResources
("General.InvalidValue", "StdOutEncoding", "Exec");
170
Log.
LogErrorWithCodeFromResources
("General.InvalidValue", "StdErrEncoding", "Exec");
326
Log.
LogErrorWithCodeFromResources
("Exec.CommandFailedAccessDenied", commandForLog, ExitCode);
330
Log.
LogErrorWithCodeFromResources
("Exec.CommandFailed", commandForLog, ExitCode);
426
Log.
LogErrorWithCodeFromResources
("Exec.InvalidRegex", regularExpression, ex.Message);
451
Log.
LogErrorWithCodeFromResources
("Exec.MissingCommandError");
468
Log.
LogErrorWithCodeFromResources
("Exec.AllDriveLettersMappedError", _workingDirectory);
FileIO\GetFileHash.cs (3)
71
Log.
LogErrorWithCodeFromResources
("FileHash.UnrecognizedHashAlgorithm", Algorithm);
77
Log.
LogErrorWithCodeFromResources
("FileHash.UnrecognizedHashEncoding", HashEncoding);
90
Log.
LogErrorWithCodeFromResources
("FileHash.FileNotFound", file.ItemSpec);
FileIO\ReadLinesFromFile.cs (1)
69
Log.
LogErrorWithCodeFromResources
("ReadLinesFromFile.ErrorOrWarning", File.ItemSpec, e.Message);
FileIO\VerifyFileHash.cs (4)
44
Log.
LogErrorWithCodeFromResources
("FileHash.FileNotFound", File);
50
Log.
LogErrorWithCodeFromResources
("FileHash.UnrecognizedHashAlgorithm", Algorithm);
56
Log.
LogErrorWithCodeFromResources
("FileHash.UnrecognizedHashEncoding", HashEncoding);
67
Log.
LogErrorWithCodeFromResources
("VerifyFileHash.HashMismatch", File, Algorithm, Hash, actualHash);
FileIO\WriteLinesToFile.cs (3)
92
Log.
LogErrorWithCodeFromResources
("General.InvalidValue", "Encoding", "WriteLinesToFile");
124
Log.
LogErrorWithCodeFromResources
("WriteLinesToFile.ErrorReadingFile", File.ItemSpec);
153
Log.
LogErrorWithCodeFromResources
("WriteLinesToFile.ErrorOrWarning", File.ItemSpec, e.Message, lockedFileMessage);
FormatVersion.cs (1)
76
Log.
LogErrorWithCodeFromResources
("General.InvalidValue", "FormatType", "FormatVersion");
GenerateApplicationManifest.cs (10)
117
Log.
LogErrorWithCodeFromResources
("General.TaskRequiresWindows", nameof(GenerateApplicationManifest));
175
Log.
LogErrorWithCodeFromResources
("GenerateManifest.NoEntryPoint");
192
Log.
LogErrorWithCodeFromResources
("GenerateManifest.HostInBrowserInvalidFrameworkVersion");
344
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "ManifestType");
349
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "ManifestType");
359
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "ClrVersion");
364
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "OSVersion");
369
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "TargetFrameworkVersion");
377
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidRequestedExecutionLevel", requestedExecutionLevel);
479
Log.
LogErrorWithCodeFromResources
("GenerateManifest.ReadInputManifestFailed", InputManifest.ItemSpec, ex.Message);
GenerateDeploymentManifest.cs (7)
159
Log.
LogErrorWithCodeFromResources
("General.TaskRequiresWindows", nameof(GenerateDeploymentManifest));
184
Log.
LogErrorWithCodeFromResources
("GenerateManifest.NoEntryPoint");
269
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "MinimumRequiredVersion");
280
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "UpdateMode");
285
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "UpdateMode");
297
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "UpdateUnit");
302
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "UpdateUnit");
GenerateLauncher.cs (2)
46
Log.
LogErrorWithCodeFromResources
("General.TaskRequiresWindows", nameof(GenerateLauncher));
62
Log.
LogErrorWithCodeFromResources
("GenerateLauncher.InvalidInput");
GenerateManifestBase.cs (9)
193
Log.
LogErrorWithCodeFromResources
("GenerateManifest.NoIdentity");
277
Log.
LogErrorWithCodeFromResources
("General.TaskRequiresWindows", nameof(GenerateManifestBase));
459
Log.
LogErrorWithCodeFromResources
("GenerateManifest.ReadInputManifestFailed", InputManifest.ItemSpec, ex.Message);
466
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidInputManifest");
557
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "AssemblyName");
562
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "AssemblyVersion");
567
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "TargetCulture");
575
Log.
LogErrorWithCodeFromResources
("GenerateManifest.InvalidValue", "Platform");
623
Log.
LogErrorWithCodeFromResources
("GenerateManifest.WriteOutputManifestFailed", OutputManifest.ItemSpec, ex.Message, lockedFileMessage);
GenerateResource.cs (12)
2743
_logger.
LogErrorWithCodeFromResources
("GenerateResource.CannotWriteSTRFile",
2766
_logger.
LogErrorWithCodeFromResources
("GenerateResource.CannotWriteOutput",
2800
_logger.
LogErrorWithCodeFromResources
("GenerateResource.CannotWriteOutput",
2811
_logger.
LogErrorWithCodeFromResources
("GenerateResource.CannotWriteOutput",
2876
_logger.
LogErrorWithCodeFromResources
("GenerateResource.PathTooLong", currentOutputFile);
2920
_logger.
LogErrorWithCodeFromResources
("GenerateResource.InvalidFilename", filename, ex.Message);
2946
_logger.
LogErrorWithCodeFromResources
("GenerateResource.UnknownFileExtension", Path.GetExtension(filename), filename);
3363
_logger.
LogErrorWithCodeFromResources
("GenerateResource.PreserializedResourcesRequiresProperty");
3368
_logger.
LogErrorWithCodeFromResources
("GenerateResource.PreserializedResourcesRequiresExtensions");
3474
_logger.
LogErrorWithCodeFromResources
("GenerateResource.ErrorFromCodeDom", inputFileName);
3477
_logger.
LogErrorWithCodeFromResources
("GenerateResource.CodeDomError", error);
3535
logger.
LogErrorWithCodeFromResources
("GenerateResource.STRCodeDomProviderFailed", stronglyTypedLanguage, e.Message);
GetAssemblyIdentity.cs (2)
68
Log.
LogErrorWithCodeFromResources
("GetAssemblyIdentity.CouldNotGetAssemblyName", item.ItemSpec, e.Message);
73
Log.
LogErrorWithCodeFromResources
("GetAssemblyIdentity.CouldNotGetAssemblyName", item.ItemSpec, e.Message);
GetInstalledSDKLocations.cs (3)
129
Log.
LogErrorWithCodeFromResources
("General.TaskRequiresWindows", nameof(GetInstalledSDKLocations));
136
Log.
LogErrorWithCodeFromResources
("GetInstalledSDKs.TargetPlatformInformationMissing");
152
Log.
LogErrorWithCodeFromResources
("GetInstalledSDKs.CouldNotGetSDKList", e.Message);
GetReferenceAssemblyPaths.cs (4)
191
Log.
LogErrorWithCodeFromResources
("GetReferenceAssemblyPaths.InvalidTargetFrameworkMoniker", TargetFrameworkMoniker, e.Message);
221
Log.
LogErrorWithCodeFromResources
("GetReferenceAssemblyPaths.ProblemGeneratingReferencePaths", TargetFrameworkMoniker, e.Message);
257
Log.
LogErrorWithCodeFromResources
("GetReferenceAssemblyPaths.OutOfDateSDK", frameworkmoniker.ToString());
261
Log.
LogErrorWithCodeFromResources
("GetReferenceAssemblyPaths.NoReferenceAssemblyDirectoryFound", frameworkmoniker.ToString());
GetSDKReferenceFiles.cs (4)
232
Log.
LogErrorWithCodeFromResources
("General.TaskRequiresWindows", nameof(GetSDKReferenceFiles));
266
Log.
LogErrorWithCodeFromResources
("GetSDKReferenceFiles.CannotHaveEmptyTargetConfiguration", resolvedSDKReference.ItemSpec);
272
Log.
LogErrorWithCodeFromResources
("GetSDKReferenceFiles.CannotHaveEmptyTargetArchitecture", resolvedSDKReference.ItemSpec);
292
Log.
LogErrorWithCodeFromResources
("GetSDKReferenceFiles.CouldNotGetSDKReferenceFiles", e.Message);
LC.cs (1)
104
Log.
LogErrorWithCodeFromResources
("TaskRequiresFrameworkFailure", nameof(LC));
MakeDir.cs (1)
82
Log.
LogErrorWithCodeFromResources
("MakeDir.Error", directory.ItemSpec, e.Message);
ManifestUtil\OutputMessage.cs (1)
149
task.Log.
LogErrorWithCodeFromResources
(message.Name, message.GetArguments());
Message.cs (1)
65
Log.
LogErrorWithCodeFromResources
("Message.InvalidImportance", Importance);
Move.cs (8)
104
Log.
LogErrorWithCodeFromResources
("Move.NeedsDestination", "DestinationFiles", "DestinationDirectory");
111
Log.
LogErrorWithCodeFromResources
("Move.ExactlyOneTypeOfDestination", "DestinationFiles", "DestinationDirectory");
118
Log.
LogErrorWithCodeFromResources
("General.TwoVectorsMustHaveSameLength", DestinationFiles.Length, SourceFiles.Length, "DestinationFiles", "SourceFiles");
137
Log.
LogErrorWithCodeFromResources
("Move.Error", SourceFiles[i].ItemSpec, DestinationFolder.ItemSpec, e.Message, string.Empty);
173
Log.
LogErrorWithCodeFromResources
("Move.Error", sourceFile, destinationFile, e.Message, lockedFileMessage);
208
Log.
LogErrorWithCodeFromResources
("Move.DestinationIsDirectory", sourceFile, destinationFile);
217
Log.
LogErrorWithCodeFromResources
("Move.SourceIsDirectory", sourceFile);
224
Log.
LogErrorWithCodeFromResources
("Move.SourceDoesNotExist", sourceFile);
MSBuild.cs (2)
312
Log.
LogErrorWithCodeFromResources
("MSBuild.ProjectUpgradeNeededToVcxProj", project.ItemSpec);
353
Log.
LogErrorWithCodeFromResources
("MSBuild.ProjectFileNotFound", project.ItemSpec);
MSBuildInternalMessage.cs (1)
62
Log.
LogErrorWithCodeFromResources
(ResourceName, FormatArguments);
PropertyParser.cs (3)
60
log?.
LogErrorWithCodeFromResources
("General.InvalidPropertyError", parameterName, propertyNameValuePair);
113
log?.
LogErrorWithCodeFromResources
("General.InvalidPropertyError", syntaxName, propertyNameValueString);
156
log?.
LogErrorWithCodeFromResources
("General.InvalidPropertyError", syntaxName, propertyNameValueString);
RemoveDir.cs (3)
131
Log.
LogErrorWithCodeFromResources
("RemoveDir.Error", directory, e.Message);
137
Log.
LogErrorWithCodeFromResources
("RemoveDir.Error", directory.ItemSpec, e.Message);
175
Log.
LogErrorWithCodeFromResources
("RemoveDir.Error", directory, e.Message);
ResolveKeySource.cs (4)
103
Log.
LogErrorWithCodeFromResources
("ResolveKeySource.InvalidKeyName", KeyFile, ex.Message);
161
Log.
LogErrorWithCodeFromResources
("ResolveKeySource.PfxUnsupported");
269
Log.
LogErrorWithCodeFromResources
("ResolveKeySource.PfxUnsupported");
275
Log.
LogErrorWithCodeFromResources
("ResolveKeySource.CertificateNotInStore");
ResolveManifestFiles.cs (5)
183
Log.
LogErrorWithCodeFromResources
("GenerateManifest.ManifestsSignedHashExcluded");
191
Log.
LogErrorWithCodeFromResources
("GenerateManifest.ManifestsSignedHashExcluded");
199
Log.
LogErrorWithCodeFromResources
("GenerateManifest.ManifestsSignedHashExcluded");
207
Log.
LogErrorWithCodeFromResources
("GenerateManifest.ManifestsSignedHashExcluded");
246
Log.
LogErrorWithCodeFromResources
("General.InvalidValue", "TargetCulture", "ResolveManifestFiles");
ResolveNonMSBuildProjectOutput.cs (1)
148
Log.
LogErrorWithCodeFromResources
("General.ErrorExecutingTask", this.GetType().Name, e.Message);
ResolveProjectBase.cs (1)
92
Log.
LogErrorWithCodeFromResources
("General.MissingOrUnknownProjectReferenceAttribute", reference.ItemSpec, missingAttribute);
ResolveSDKReference.cs (4)
270
Log.
LogErrorWithCodeFromResources
("General.TaskRequiresWindows", nameof(ResolveSDKReference));
423
Log.
LogErrorWithCodeFromResources
("ResolveSDKReference.CannotReferenceTwoSDKsSameFamily", notCompatibleReference.SDKName, incompatibleReferencesDelimited, notCompatibleReference.ProductFamilyName);
452
Log.
LogErrorWithCodeFromResources
("ResolveSDKReference.CannotReferenceTwoSDKsSameName", notCompatibleReference.SDKName, incompatibleReferencesDelimited);
649
Log.
LogErrorWithCodeFromResources
(errorOrWarning.Item1, errorOrWarning.Item2);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (18)
180
_log.
LogErrorWithCodeFromResources
("CodeTaskFactory.CouldNotFindTaskInAssembly", taskName);
312
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.InvalidTaskXml", e.Message);
318
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.InvalidTaskXml", String.Empty);
340
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.MultipleCodeNodes");
353
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.AttributeEmptyWithTaskElement", "Include", "Reference", taskName);
367
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.AttributeEmptyWithElement", "Namespace", "Using");
376
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.InvalidElementLocation",
385
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.InvalidElementLocation",
395
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.CodeElementIsMissing", taskName);
426
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.InvalidCodeElementAttribute",
437
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.AttributeEmptyWithElement", "Source", "Code");
451
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.AttributeEmptyWithElement", "Type", "Code");
458
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.InvalidCodeType", typeAttribute.Value, String.Join(", ", Enum.GetNames(typeof(RoslynCodeTaskFactoryCodeType))));
470
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.AttributeEmptyWithElement", "Language", "Code");
497
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.InvalidCodeLanguage", languageAttribute.Value, String.Join(", ", ValidCodeLanguages.Keys));
506
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.NoSourceCode");
580
log.
LogErrorWithCodeFromResources
("CodeTaskFactory.CouldNotFindReferenceAssembly", reference);
750
_log.
LogErrorWithCodeFromResources
("CodeTaskFactory.FindSourceFileAt", sourceCodePath);
SdkToolsPathUtility.cs (2)
86
log.
LogErrorWithCodeFromResources
("General.SdkToolsPathError", toolName, e.Message);
121
log.
LogErrorWithCodeFromResources
("General.SdkToolsPathToolDoesNotExist", toolName, sdkToolsPath, ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Latest, VisualStudioVersion.VersionLatest));
SGen.cs (1)
130
Log.
LogErrorWithCodeFromResources
("SGen.TaskNotSupported", nameof(SGen));
SignFile.cs (7)
48
Log.
LogErrorWithCodeFromResources
("General.TaskRequiresWindows", nameof(SignFile));
64
Log.
LogErrorWithCodeFromResources
("SignFile.CertNotInStore");
69
Log.
LogErrorWithCodeFromResources
("SignFile.TargetFileNotFound", ex.FileName);
74
Log.
LogErrorWithCodeFromResources
("SignFile.SignToolError", ex.Message.Trim());
84
Log.
LogErrorWithCodeFromResources
("SignFile.SignToolError", ex.Message.Trim());
89
Log.
LogErrorWithCodeFromResources
("SignFile.SignToolError", ex.Message.Trim());
94
Log.
LogErrorWithCodeFromResources
("SignFile.SignToolError", ex.Message.Trim());
TaskRequiresFramework.cs (1)
25
Log.
LogErrorWithCodeFromResources
("TaskRequiresFrameworkFailure", TaskName);
Touch.cs (7)
83
Log.
LogErrorWithCodeFromResources
("Touch.TimeSyntaxIncorrect", e.Message);
146
Log.
LogErrorWithCodeFromResources
("Message.InvalidImportance", Importance);
178
Log.
LogErrorWithCodeFromResources
("Touch.CannotCreateFile", file, e.Message);
220
Log.
LogErrorWithCodeFromResources
("Touch.FileDoesNotExist", file);
251
Log.
LogErrorWithCodeFromResources
("Touch.CannotMakeFileWritable", file, e.Message, lockedFileMessage);
267
Log.
LogErrorWithCodeFromResources
("Touch.CannotTouch", file, e.Message, lockedFileMessage);
282
Log.
LogErrorWithCodeFromResources
("Touch.CannotRestoreAttributes", file, e.Message);
Unzip.cs (8)
94
Log.
LogErrorWithCodeFromResources
("Unzip.ErrorCouldNotCreateDestinationDirectory", DestinationFolder.ItemSpec, e.Message);
111
Log.
LogErrorWithCodeFromResources
("Unzip.ErrorFileDoesNotExist", sourceFile.ItemSpec);
143
Log.
LogErrorWithCodeFromResources
("Unzip.ErrorCouldNotOpenFile", sourceFile.ItemSpec, e.Message);
212
Log.
LogErrorWithCodeFromResources
("Unzip.ErrorCouldNotCreateDestinationDirectory", destinationPath.DirectoryName, e.Message);
225
Log.
LogErrorWithCodeFromResources
("Unzip.ErrorCouldNotMakeFileWriteable", zipArchiveEntry.FullName, destinationPath.FullName, e.Message, lockedFileMessage);
273
Log.
LogErrorWithCodeFromResources
("Unzip.ErrorCouldNotExtractFile", zipArchiveEntry.FullName, destinationPath.FullName, e.Message);
328
Log.
LogErrorWithCodeFromResources
("Unzip.ErrorParsingPatternPropertyReferences", pattern);
332
Log.
LogErrorWithCodeFromResources
("Unzip.ErrorParsingPatternInvalidPath", pattern);
WriteCodeFragment.cs (9)
83
Log.
LogErrorWithCodeFromResources
("General.InvalidValue", nameof(Language), "WriteCodeFragment");
89
Log.
LogErrorWithCodeFromResources
("WriteCodeFragment.MustSpecifyLocation");
124
Log.
LogErrorWithCodeFromResources
("WriteCodeFragment.CouldNotWriteOutput", itemSpec, ex.Message, lockedFileMessage);
159
Log.
LogErrorWithCodeFromResources
("WriteCodeFragment.CouldNotCreateProvider", Language, e.Message);
215
Log.
LogErrorWithCodeFromResources
("General.InvalidValue", name, "WriteCodeFragment");
221
Log.
LogErrorWithCodeFromResources
("WriteCodeFragment.SkippedNumberedParameter", index);
247
Log.
LogErrorWithCodeFromResources
("WriteCodeFragment.SkippedNumberedParameter", i + 1 /* back to 1 based */);
538
Log.
LogErrorWithCodeFromResources
("WriteCodeFragment.ParameterTypeNotFound", typeName);
550
Log.
LogErrorWithCodeFromResources
("WriteCodeFragment.CouldNotConvertValue", rawValue, typeName, ex.Message);
XamlTaskFactory\XamlTaskFactory.cs (1)
256
log.
LogErrorWithCodeFromResources
("TaskFactoryNotSupportedFailure", nameof(XamlTaskFactory));
XmlPeek.cs (5)
74
Log.
LogErrorWithCodeFromResources
("XmlPeek.ArgumentError", e.Message);
89
Log.
LogErrorWithCodeFromResources
("XmlPeekPoke.InputFileError", XmlInputPath.ItemSpec, e.Message);
106
Log.
LogErrorWithCodeFromResources
("XmlPeekPoke.XPathError", Query, e.Message);
119
Log.
LogErrorWithCodeFromResources
("XmlPeek.NamespacesError", e.Message);
129
Log.
LogErrorWithCodeFromResources
("XmlPeek.XPathContextError", e.Message);
XmlPoke.cs (5)
77
Log.
LogErrorWithCodeFromResources
("XmlPeekPoke.InputFileError", XmlInputPath.ItemSpec, e.Message);
91
Log.
LogErrorWithCodeFromResources
("XmlPeekPoke.XPathError", Query, e.Message);
105
Log.
LogErrorWithCodeFromResources
("XmlPoke.NamespacesError", e.Message);
115
Log.
LogErrorWithCodeFromResources
("XmlPoke.XPathContextError", e.Message);
132
Log.
LogErrorWithCodeFromResources
("XmlPoke.PokeError", Value.ItemSpec, e.Message);
XslTransformation.cs (7)
110
Log.
LogErrorWithCodeFromResources
("XslTransform.ArgumentError", e.Message);
117
Log.
LogErrorWithCodeFromResources
("General.TwoVectorsMustHaveSameLength", _outputPaths.Length, XmlInputPaths.Length, "OutputPaths", "XmlInputPaths");
124
Log.
LogErrorWithCodeFromResources
("General.TwoVectorsMustHaveSameLength", _outputPaths.Length, 1, "OutputPaths", "XmlContent");
137
Log.
LogErrorWithCodeFromResources
("XslTransform.XsltArgumentsError", e.Message);
150
Log.
LogErrorWithCodeFromResources
("XslTransform.PrecompiledXsltError");
155
Log.
LogErrorWithCodeFromResources
("XslTransform.XsltLoadError", e.Message);
183
Log.
LogErrorWithCodeFromResources
("XslTransform.TransformError", flattenedMessage);
ZipDirectory.cs (4)
45
Log.
LogErrorWithCodeFromResources
("ZipDirectory.ErrorDirectoryDoesNotExist", sourceDirectory.FullName);
59
Log.
LogErrorWithCodeFromResources
("ZipDirectory.ErrorFileExists", destinationFile.FullName);
71
Log.
LogErrorWithCodeFromResources
("ZipDirectory.ErrorFailed", sourceDirectory.FullName, destinationFile.FullName, e.Message, lockedFileMessage);
91
Log.
LogErrorWithCodeFromResources
("ZipDirectory.ErrorFailed", sourceDirectory.FullName, destinationFile.FullName, e.Message, string.Empty);
Microsoft.Build.Tasks.UnitTests (2)
ToolTaskExtension_Tests.cs (2)
34
t.Log.
LogErrorWithCodeFromResources
("Csc.AssemblyAliasContainsIllegalCharacters", "PlanetSide", "Knights of the Old Republic");
47
log.
LogErrorWithCodeFromResources
("ToolTask.CommandTooLong", "Painkiller");
Microsoft.Build.Utilities.Core (11)
AppDomainIsolatedTask.cs (2)
48
/// <see cref="TaskLoggingHelper.
LogErrorWithCodeFromResources
(string, object[])"/> method.
95
/// see the <see cref="TaskLoggingHelper.
LogErrorWithCodeFromResources
(string, object[])"/> method.
ToolTask.cs (9)
448
LogPrivate.
LogErrorWithCodeFromResources
("ToolTask.ToolCommandFailed", ToolExe, ExitCode);
542
LogPrivate.
LogErrorWithCodeFromResources
("ToolTask.ToolExecutableNotFound", pathToTool);
1283
Log.
LogErrorWithCodeFromResources
("Message.InvalidImportance", StandardErrorImportance);
1303
Log.
LogErrorWithCodeFromResources
("Message.InvalidImportance", StandardOutputImportance);
1354
LogPrivate.
LogErrorWithCodeFromResources
("ToolTask.ValidateParametersFailed", this.GetType().FullName);
1369
LogPrivate.
LogErrorWithCodeFromResources
("ToolTask.InvalidEnvironmentParameter", nameValuePair[0]);
1394
LogPrivate.
LogErrorWithCodeFromResources
("ToolTask.NotUpToDate");
1601
LogPrivate.
LogErrorWithCodeFromResources
("General.InvalidToolSwitch", ToolExe, e.ToString());
1609
LogPrivate.
LogErrorWithCodeFromResources
("ToolTask.CouldNotStartToolExecutable", ToolExe, e.ToString());
PresentationBuildTasks (26)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (3)
125
Log.
LogErrorWithCodeFromResources
(nameof(SR.NonClsError));
271
Log.
LogErrorWithCodeFromResources
(nameof(SR.TargetIsNotSupported), targetType);
282
Log.
LogErrorWithCodeFromResources
(nameof(SR.InvalidCulture), Culture);
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (9)
130
Log.
LogErrorWithCodeFromResources
(nameof(SR.WrongPropertySetting));
197
Log.
LogErrorWithCodeFromResources
(nameof(SR.NonClsError));
899
Log.
LogErrorWithCodeFromResources
(nameof(SR.MultipleSplashScreenImages));
920
Log.
LogErrorWithCodeFromResources
(nameof(SR.AppDefIsNotRequired));
935
Log.
LogErrorWithCodeFromResources
(nameof(SR.MutlipleApplicationFiles));
944
Log.
LogErrorWithCodeFromResources
(nameof(SR.FileNotFound), ApplicationFile);
979
Log.
LogErrorWithCodeFromResources
(nameof(SR.TargetIsNotSupported), outputType);
997
Log.
LogErrorWithCodeFromResources
(nameof(SR.WrongLocalizationPropertySetting_Pass1));
1039
Log.
LogErrorWithCodeFromResources
(nameof(SR.FileNotFound), filePath);
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (3)
92
Log.
LogErrorWithCodeFromResources
(nameof(SR.WrongPropertySetting));
152
Log.
LogErrorWithCodeFromResources
(nameof(SR.NonClsError));
823
Log.
LogErrorWithCodeFromResources
(nameof(SR.TargetIsNotSupported), outputType);
Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (1)
101
Log.
LogErrorWithCodeFromResources
(nameof(SR.NonClsError));
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (3)
160
Log.
LogErrorWithCodeFromResources
(nameof(SR.MoreResourcesFiles));
221
Log.
LogErrorWithCodeFromResources
(nameof(SR.NonClsError));
300
Log.
LogErrorWithCodeFromResources
(nameof(SR.FileNotFound), strFileName);
Microsoft\Build\Tasks\Windows\UidManager.cs (6)
74
Log.
LogErrorWithCodeFromResources
(nameof(SR.SourceFileNameNeeded));
84
Log.
LogErrorWithCodeFromResources
(nameof(SR.BadUidTask), _taskAsString);
120
Log.
LogErrorWithCodeFromResources
(nameof(SR.NonClsError));
348
Log.
LogErrorWithCodeFromResources
(nameof(SR.FilesFailedUidCheck), _markupFiles.Length - countGoodFiles);
400
Log.
LogErrorWithCodeFromResources
(nameof(SR.IntermediateDirectoryError), _backupPath);
406
Log.
LogErrorWithCodeFromResources
(nameof(SR.IntermediateDirectoryError), _backupPath);
Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
140
Log.
LogErrorWithCodeFromResources
(nameof(SR.NonClsError));