136 references to Resources
Microsoft.NET.Sdk.Publish.Tasks (107)
Kudu\KuduVfsDeploy.cs (2)
78_logger.LogMessage(Build.Framework.MessageImportance.High, string.Format(Resources.KUDUDEPLOY_AddingFileFailed, ConnectionInfo.SiteName + "/" + relUrl, response.ReasonPhrase)); 85_logger.LogMessage(Build.Framework.MessageImportance.High, string.Format(Resources.KUDUDEPLOY_AddingFile, ConnectionInfo.SiteName + "/" + relUrl));
Kudu\KuduZipDeploy.cs (4)
35_logger.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, Resources.KUDUDEPLOY_DeployOutputPathEmpty)); 62_logger.LogMessage(Build.Framework.MessageImportance.High, Resources.KUDUDEPLOY_PublishAzure); 67_logger.LogError(string.Format(Resources.KUDUDEPLOY_PublishZipFailedReason, ConnectionInfo.SiteName, response.ReasonPhrase));
MsDeploy\CommonUtility.cs (35)
406_strErrorMessage = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYLOADFAIL, 407Resources.VSMSDEPLOY_MSDEPLOY32bit, 408Resources.VSMSDEPLOY_MSDEPLOY64bit, 535_strErrorMessage = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYLOADFAIL, 536Resources.VSMSDEPLOY_MSDEPLOY32bit, 537Resources.VSMSDEPLOY_MSDEPLOY64bit, 554_strErrorMessage = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYLOADFAIL, 555Resources.VSMSDEPLOY_MSDEPLOY32bit, 556Resources.VSMSDEPLOY_MSDEPLOY64bit, 703strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedArchiveDir, string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 705strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedPackage, Path.GetFileName(destRoot), string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 710strSucceedFailMsg = Resources.VSMSDEPLOY_SucceedDeploy; 721strSucceedFailMsg = Resources.VSMSDEPLOY_FailedPackage; 725strSucceedFailMsg = Resources.VSMSDEPLOY_FailedDeploy; 731Log.LogMessage(Framework.MessageImportance.High, Resources.VSMSDEPLOY_WebPackageHelpLinkMessage); 732Log.LogMessage(Framework.MessageImportance.High, Resources.VSMSDEPLOY_WebPackageHelpLink); 779strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedArchiveDir, string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 781strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedPackage, Path.GetFileName(destRoot), string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 786strSucceedFailMsg = Resources.VSMSDEPLOY_SucceedDeploy; 794strSucceedFailMsg = Resources.VSMSDEPLOY_FailedPackage; 798strSucceedFailMsg = Resources.VSMSDEPLOY_FailedDeploy; 804Log.LogMessage(Framework.MessageImportance.High, Resources.VSMSDEPLOY_WebPackageHelpLinkMessage); 805Log.LogMessage(Framework.MessageImportance.High, Resources.VSMSDEPLOY_WebPackageHelpLink); 872log.LogMessage(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SkipDirectiveSetEnable, skipDirective.Name, enabled.ToString())); 876log.LogWarning(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_UnknownSkipDirective, name)); 1139string msg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_AddParameterIntoObject, name, value, deploymentObject.Name); 1158string errMessage = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_UnknownParameter, name, sb.ToString()); 1389log.LogMessage(Framework.MessageImportance.Normal, string.Format(CultureInfo.CurrentCulture, Resources.BUILDTASK_RemoveEmptyDirectories_Deleting, dirinfo.FullName)); 1556strBuilder.Append(Resources.VSMSDEPLOY_EncryptionExceptionMessage); 1672Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_FailedWithException, strBuilder.ToString())); 1684Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_FailedWithExceptionWithDetail, e.Message, strBuilder.ToString())); 1837task.Log.LogMessage(Framework.MessageImportance.Low, string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYVERSIONLOAD, task.ToString(), MSWebDeploymentAssembly.DynamicAssembly?.AssemblyFullName)); 1838task.Log.LogMessage(Framework.MessageImportance.Low, string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYVERSIONLOAD, task.ToString(), MSWebDelegationAssembly.DynamicAssembly?.AssemblyFullName)); 1843task.Log.LogMessage(Framework.MessageImportance.Low, string.Format(CultureInfo.CurrentCulture, Resources.BUILDTASK_FailedToLoadThisVersionMsDeployTryingTheNext, versionArray[i], e.Message)); 1847throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYASSEMBLYLOAD_FAIL, task.ToString()));
MsDeploy\VsMSDeployObject.cs (1)
351return string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_ObjectIdentity, m_provider.ToString(), root);
Properties\Resources.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.NET.Sdk.Publish.Tasks.Properties.Resources", typeof(Resources).Assembly);
Tasks\GenerateEFSQLScripts.cs (3)
30Log.LogMessage(MessageImportance.High, Resources.EFSCRIPT_Generating); 34Log.LogMessage(MessageImportance.High, Resources.EFSCRIPT_GenerationCompleted); 140Log.LogError(Resources.EFSCRIPT_GenerationFailed);
Tasks\Kudu\KuduDeploy.cs (13)
78Log.LogError(Resources.KUDUDEPLOY_DeployOutputPathEmpty); 85Log.LogError(Resources.KUDUDEPLOY_ConnectionInfoMissing); 93Log.LogMessage(Framework.MessageImportance.High, Resources.KUDUDEPLOY_PublishSucceeded); 97Log.LogError(Resources.KUDUDEPLOY_PublishFailed); 121Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, Resources.KUDUDEPLOY_OperationTimeout)); 126Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, ae.Flatten().Message)); 145Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, Resources.KUDUDEPLOY_OperationTimeout)); 150Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, ae.Flatten().Message)); 169Log.LogMessage(Framework.MessageImportance.High, string.Format(Resources.KUDUDEPLOY_CopyingToTempLocation, zipFileFullPath)); 177Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, e.Message)); 182Log.LogMessage(Framework.MessageImportance.High, Resources.KUDUDEPLOY_CopyingToTempLocationCompleted);
Tasks\MsDeploy\CreateMSDeployScript.cs (2)
28File.WriteAllLines(ScriptFullPath, GetReplacedFileContents(Resources.MsDeployBatchFile)); 37File.WriteAllLines(ReadMeFullPath, GetReplacedFileContents(Resources.MsDeployReadMe));
Tasks\MsDeploy\ImportParameterFile.cs (1)
170Log.LogError(Resources.BUILDTASK_TransformXml_SourceLoadFailed, new object[] { filePath });
Tasks\MsDeploy\MSDeploy.cs (7)
550Log.LogMessage(Framework.MessageImportance.Low, Resources.MSDEPLOY_EXE_PreviewOnly); 556Log.LogMessage(Framework.MessageImportance.Normal, Resources.MSDEPLOY_EXE_Start); 559Log.LogMessage(Framework.MessageImportance.Normal, Resources.MSDEPLOY_EXE_Succeeded); 564Log.LogMessage(Framework.MessageImportance.High, Resources.MSDEPLOY_EXE_Failed); 1059Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.MSDEPLOY_InvalidSourceCount, Source.GetLength(0)), null); 1065Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.MSDEPLOY_InvalidDestinationCount, Destination.GetLength(0)), null); 1105Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.MSDEPLOY_InvalidVerbForTheInput, Verb, Source?[0].ItemSpec, (fNullDestination) ? null : Destination?[0].ItemSpec), null);
Tasks\MsDeploy\VsMsdeploy.cs (4)
442string strMsg = string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_Start, _src.ToString(), _dest.ToString()); 547string strMsg = Resources.VSMSDEPLOY_Succeeded; 873Log.LogMessageFromText(Resources.VSMSDEPLOY_Canceled, MessageImportance.High); 883Log.LogError(string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_FailedWithException, e.Message));
Tasks\OneDeploy\DeploymentResponse.cs (2)
50? string.Format(Resources.DeploymentStatus, Status) 51: string.Format(Resources.DeploymentStatusWithText, Status, StatusText);
Tasks\OneDeploy\OneDeploy.cs (10)
90_taskLogger.LogError(Resources.ONEDEPLOY_FailedToRetrieveCredentials); 97_taskLogger.LogError(Resources.ONEDEPLOY_FileToPublish_NotFound); 104_taskLogger.LogError(string.Format(Resources.ONEDEPLOY_InvalidPublishUrl, url)); 110string.Format(Resources.ONEDEPLOY_PublishingOneDeploy, fileToPublishPath, oneDeployPublishUri.ToString())); 124? string.Format(Resources.ONEDEPLOY_FailedDeployRequest_With_ResponseText, oneDeployPublishUri, response?.StatusCode, responseText) 125: string.Format(Resources.ONEDEPLOY_FailedDeployRequest, oneDeployPublishUri, response?.StatusCode); 131_taskLogger.LogMessage(string.Format(Resources.ONEDEPLOY_Uploaded, fileToPublishPath)); 141_taskLogger.LogMessage(MessageImportance.High, Resources.ONEDEPLOY_Success); 147_taskLogger.LogError(string.Format(Resources.ONEDEPLOY_FailedWithLogs, 158_taskLogger.LogMessage(MessageImportance.High, Resources.ONEDEPLOY_Success);
Tasks\OneDeploy\OneDeployStatusService.cs (2)
27_taskLogger?.LogMessage(Resources.DeploymentStatus_Polling); 36_taskLogger?.LogError(string.Format(Resources.DeploymentStatus_InvalidPollingUrl, url));
Tasks\ValidateParameter.cs (1)
21Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.ValidateParameter_ArgumentNullError, ParameterName));
Tasks\Xdt\TransformXml.cs (8)
116logger?.StartSection(string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.BUILDTASK_TransformXml_TransformationStart, Source)); 119logger?.LogMessage(string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.BUILDTASK_TransformXml_TransformationApply, Transform)); 126logger?.LogMessage(string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.BUILDTASK_TransformXml_TransformOutput, Destination)); 166Resources.BUILDTASK_TransformXml_TransformationSucceeded : 167Resources.BUILDTASK_TransformXml_TransformationFailed)); 194string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.BUILDTASK_TransformXml_DestinationWriteFailed, ex.Message), 218string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.BUILDTASK_TransformXml_SourceLoadFailed, ex.Message), 236string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.BUILDTASK_TransformXml_TransformLoadFailed, ex.Message),
Tasks\ZipDeploy\ZipDeploy.cs (7)
41Log.LogError(Resources.ZIPDEPLOY_FailedToRetrieveCred); 79Log.LogError(Resources.ZIPDEPLOY_InvalidSiteNamePublishUrl); 87Log.LogMessage(MessageImportance.High, string.Format(Resources.ZIPDEPLOY_PublishingZip, zipToPublishPath, zipDeployPublishUrl)); 99Log.LogError(string.Format(Resources.ZIPDEPLOY_FailedDeploy, zipDeployPublishUrl, response?.StatusCode)); 108Log.LogMessage(Resources.ZIPDEPLOY_Uploaded); 119Log.LogMessage(MessageImportance.High, Resources.ZIPDEPLOY_Succeeded); 124Log.LogError(string.Format(Resources.ZIPDEPLOY_FailedDeployWithLogs,
Tasks\ZipDeploy\ZipDeploymentStatus.cs (2)
38_log.LogMessage(Resources.ZIPDEPLOY_DeploymentStatusPolling); 60_log.LogMessage(string.Format(Resources.ZIPDEPLOY_DeploymentStatus, Enum.GetName(typeof(DeployStatus), deployStatus)));
WebConfigTransform.cs (2)
181throw new Exception(Resources.WebConfigTransform_InvalidHostingOption); 189throw new Exception(Resources.WebConfigTransform_HostingModel_Error);
Microsoft.NET.Sdk.Publish.Tasks.Tests (29)
Tasks\OneDeploy\OneDeployStatusServiceTests.cs (8)
47taskLoggerMock.Setup(l => l.LogMessage(Resources.DeploymentStatus_Polling)); 48taskLoggerMock.Setup(l => l.LogMessage(string.Format(Resources.DeploymentStatus, expectedDeploymentStatus))); 82taskLoggerMock.Setup(l => l.LogMessage(Resources.DeploymentStatus_Polling)); 83taskLoggerMock.Setup(l => l.LogMessage(string.Format(Resources.DeploymentStatus, DeploymentStatus.Unknown))); 133taskLoggerMock.Setup(l => l.LogMessage(Resources.DeploymentStatus_Polling)); 161taskLoggerMock.Setup(l => l.LogMessage(Resources.DeploymentStatus_Polling)); 162taskLoggerMock.Setup(l => l.LogError(string.Format(Resources.DeploymentStatus_InvalidPollingUrl, invalidUrl))); 186taskLoggerMock.Setup(l => l.LogMessage(Resources.DeploymentStatus_Polling));
Tasks\OneDeploy\OneDeployTests.cs (14)
74taskLoggerMock.Setup(l => l.LogMessage(Build.Framework.MessageImportance.High, string.Format(Resources.ONEDEPLOY_PublishingOneDeploy, FileToPublish, OneDeployUri.AbsoluteUri.ToString()))); 75taskLoggerMock.Setup(l => l.LogMessage(string.Format(Resources.ONEDEPLOY_Uploaded, FileToPublish))); 79taskLoggerMock.Setup(l => l.LogMessage(Build.Framework.MessageImportance.High, Resources.ONEDEPLOY_Success)); 83var failedDeployMsg = string.Format(Resources.ONEDEPLOY_FailedWithLogs, FileToPublish, OneDeployUri.AbsoluteUri, deployStatus, DeploymentLogUrl); 127taskLoggerMock.Setup(l => l.LogMessage(Build.Framework.MessageImportance.High, string.Format(Resources.ONEDEPLOY_PublishingOneDeploy, FileToPublish, OneDeployUri.AbsoluteUri.ToString()))); 128taskLoggerMock.Setup(l => l.LogMessage(string.Format(Resources.ONEDEPLOY_Uploaded, FileToPublish))); 158taskLoggerMock.Setup(l => l.LogMessage(Build.Framework.MessageImportance.High, string.Format(Resources.ONEDEPLOY_PublishingOneDeploy, FileToPublish, OneDeployUri.AbsoluteUri.ToString()))); 159taskLoggerMock.Setup(l => l.LogError(string.Format(Resources.ONEDEPLOY_FailedDeployRequest, OneDeployUri.AbsoluteUri.ToString(), statusCode))); 188taskLoggerMock.Setup(l => l.LogError(string.Format(Resources.ONEDEPLOY_InvalidPublishUrl, invalidUrl))); 217taskLoggerMock.Setup(l => l.LogError(Resources.ONEDEPLOY_FileToPublish_NotFound)); 247taskLoggerMock.Setup(l => l.LogError(Resources.ONEDEPLOY_FailedToRetrieveCredentials)); 274taskLoggerMock.Setup(l => l.LogMessage(Build.Framework.MessageImportance.High, string.Format(Resources.ONEDEPLOY_PublishingOneDeploy, FileToPublish, OneDeployUri.AbsoluteUri.ToString()))); 275taskLoggerMock.Setup(l => l.LogMessage(string.Format(Resources.ONEDEPLOY_Uploaded, FileToPublish))); 276taskLoggerMock.Setup(l => l.LogMessage(Build.Framework.MessageImportance.High, Resources.ONEDEPLOY_Success));
Tasks\OneDeploy\OneDeployTests.WebJob.cs (7)
49taskLoggerMock.Setup(l => l.LogMessage(Build.Framework.MessageImportance.High, string.Format(Resources.ONEDEPLOY_PublishingOneDeploy, FileToPublish, publishUri.AbsoluteUri.ToString()))); 53taskLoggerMock.Setup(l => l.LogMessage(string.Format(Resources.ONEDEPLOY_Uploaded, FileToPublish))); 54taskLoggerMock.Setup(l => l.LogMessage(Build.Framework.MessageImportance.High, Resources.ONEDEPLOY_Success)); 58var failedDeployMsg = string.Format(Resources.ONEDEPLOY_FailedDeployRequest_With_ResponseText, publishUri.AbsoluteUri, statusCode, PutErrorResponseMessage); 92taskLoggerMock.Setup(l => l.LogError(string.Format(Resources.ONEDEPLOY_InvalidPublishUrl, invalidUrl))); 140taskLoggerMock.Setup(l => l.LogMessage(Build.Framework.MessageImportance.High, string.Format(Resources.ONEDEPLOY_PublishingOneDeploy, FileToPublish, OneDeployUri.AbsoluteUri.ToString()))); 141taskLoggerMock.Setup(l => l.LogError(string.Format(Resources.ONEDEPLOY_FailedDeployRequest_With_ResponseText, OneDeployUri.AbsoluteUri, HttpStatusCode.BadGateway, PutErrorResponseMessage)));