Removed automatically adding year to copyright message (#3804)

Removed automatically adding year to copyright message for file generated by New-ModuleManifest and New-PSRoleCapabilityFile.
This commit is contained in:
Aditya Patwardhan
2017-05-21 21:19:10 -07:00
committed by Jason Shirk
parent 0862d1c5c9
commit 73dd94197b
3 changed files with 4 additions and 4 deletions
@@ -930,7 +930,7 @@ namespace Microsoft.PowerShell.Commands
if (string.IsNullOrEmpty(_copyright))
{
_copyright = StringUtil.Format(Modules.DefaultCopyrightMessage, DateTime.Now.Year, _author);
_copyright = StringUtil.Format(Modules.DefaultCopyrightMessage, _author);
}
FileStream fileStream;
@@ -658,7 +658,7 @@ namespace Microsoft.PowerShell.Commands
{
if (String.IsNullOrEmpty(_copyright))
{
_copyright = StringUtil.Format(Modules.DefaultCopyrightMessage, DateTime.Now.Year, _author);
_copyright = StringUtil.Format(Modules.DefaultCopyrightMessage, _author);
}
result.Append(SessionConfigurationUtils.ConfigFragment(ConfigFileConstants.Copyright, RemotingErrorIdStrings.DISCCopyrightComment,
SessionConfigurationUtils.QuoteName(_copyright), streamWriter, false));
@@ -1505,7 +1505,7 @@ namespace Microsoft.PowerShell.Commands
// Copyright
if (String.IsNullOrEmpty(_copyright))
{
_copyright = StringUtil.Format(Modules.DefaultCopyrightMessage, DateTime.Now.Year, _author);
_copyright = StringUtil.Format(Modules.DefaultCopyrightMessage, _author);
}
result.Append(SessionConfigurationUtils.ConfigFragment(ConfigFileConstants.Copyright, RemotingErrorIdStrings.DISCCopyrightComment,
SessionConfigurationUtils.QuoteName(_copyright), streamWriter, false));
@@ -274,7 +274,7 @@
<value>Unknown</value>
</data>
<data name="DefaultCopyrightMessage" xml:space="preserve">
<value>(c) {0} {1}. All rights reserved.</value>
<value>(c) {0}. All rights reserved.</value>
</data>
<data name="RemovingImportedFunction" xml:space="preserve">
<value>Removing the imported "{0}" function.</value>