mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
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:
committed by
Jason Shirk
parent
0862d1c5c9
commit
73dd94197b
@@ -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;
|
||||
|
||||
+2
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user