Skip to content

Commit dd14198

Browse files
greathongtuisra-felHongtu Zhang (FA Talent)
authored
Hongtu/attribute0518 (#391)
* Update Newtonsoft.Json from 10.0.3 to 13.0.2 (#385) * create new attributes with version instead of modifying existing attributes * add resource of BreakingChangesAttributesInEffectByAzVersion * change internal to public * remove az version to string * change internal to public * add az version output when cmdlets are obsolate --------- Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com> Co-authored-by: Hongtu Zhang (FA Talent) <v-hongtzhang@microsoft.com>
1 parent 12c1854 commit dd14198

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/Common/CustomAttributes/GenericBreakingChangeWithVersionAttribute.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ public void PrintCustomAttributeInfo(Type type, bool withCmdletName, Action<stri
148148
writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByDateMessage, this.ChangeInEffectByDate));
149149
}
150150

151+
if (!string.IsNullOrWhiteSpace(DeprecateByAzVersion))
152+
{
153+
writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion));
154+
}
155+
151156
if (!string.IsNullOrWhiteSpace(DeprecateByVersion))
152157
{
153158
writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion));
@@ -168,13 +173,5 @@ protected virtual string GetAttributeSpecificMessage()
168173
{
169174
return _message;
170175
}
171-
protected virtual string GetAttributeSpecificVersion()
172-
{
173-
return DeprecateByVersion;
174-
}
175-
protected virtual string GetAttributeSpecificAzVersion()
176-
{
177-
return DeprecateByAzVersion;
178-
}
179176
}
180177
}

0 commit comments

Comments
 (0)