Skip to content

Commit 41796ec

Browse files
authored
Merge pull request #89 from devlead/feature/gh-88
GH88: Update Cake.* to 6.1.0
2 parents 3800ed2 + fcffbc3 commit 41796ec

10 files changed

+573
-9
lines changed

src/Cake.Generator.Core.Tests/Cake.Generator.Core.Tests.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
<PackageReference Include="Cake.Core" GeneratePathProperty="true" />
1717
<PackageReference Include="Cake.Common" GeneratePathProperty="true" />
1818
<PackageReference Include="Cake.BuildSystems.Module" GeneratePathProperty="true" />
19+
<PackageReference Include="Cake.NuGet" GeneratePathProperty="true" />
20+
<PackageReference Include="Cake.DotNetTool.Module" GeneratePathProperty="true" />
1921
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" />
2022
<PackageReference Include="TUnit" />
2123
<PackageReference Include="Verify.DiffPlex" />
@@ -36,13 +38,12 @@
3638
</ItemGroup>
3739

3840
<ItemGroup>
39-
<None Include="$(PkgCake_BuildSystems_Module)\lib\net6.0\Cake.*.Module.xml" Visible="false">
41+
<None Include="$(PkgCake_BuildSystems_Module)\lib\net8.0\Cake.*.Module.xml" Visible="false">
4042
<Link>%(Filename)%(Extension)</Link>
4143
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
4244
</None>
4345
</ItemGroup>
4446

45-
4647
<ItemGroup>
4748
<ProjectReference Include="../Cake.Generator.Core/Cake.Generator.Core.csproj" />
4849
</ItemGroup>

src/Cake.Generator.Core.Tests/Unit/CakeGeneratorTests.RunGenerators#CakeMethodAliases.g.verified.cs

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,168 @@ public static void Debug(string value)
986986
public static global::System.IDisposable DiagnosticVerbosity()
987987
=> global::Cake.Common.Diagnostics.LoggingAliases.DiagnosticVerbosity(Context);
988988

989+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.WithVerbosity(Cake.Core.ICakeContext,Cake.Core.Diagnostics.Verbosity)">
990+
/// <summary>
991+
/// Sets the log verbosity as specified and returns a disposable that restores the log verbosity on dispose.
992+
/// </summary>
993+
/// <param name="verbosity">The verbosity.</param>
994+
/// <returns>A disposable that restores the log verbosity.</returns>
995+
/// <example>
996+
/// <code>
997+
/// using (DiagnosticVerbosity())
998+
/// {
999+
/// Error("Show me.");
1000+
/// Warning("Show me.");
1001+
/// Information("Show me.");
1002+
/// Verbose("Show me.");
1003+
/// Debug("Show me.");
1004+
/// }
1005+
/// </code>
1006+
/// </example>
1007+
/// </member>
1008+
public static global::System.IDisposable WithVerbosity(global::Cake.Core.Diagnostics.Verbosity verbosity)
1009+
=> global::Cake.Common.Diagnostics.LoggingAliases.WithVerbosity(Context, verbosity);
1010+
1011+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Error(Cake.Core.ICakeContext,System.FormattableString)">
1012+
/// <summary>
1013+
/// Writes an error message to the log using the specified format information.
1014+
/// </summary>
1015+
/// <param name="formattable">The string to be formatted.</param>
1016+
/// <example>
1017+
/// <code>
1018+
/// Error($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1019+
/// </code>
1020+
/// </example>
1021+
/// </member>
1022+
public static void Error(global::System.FormattableString formattable)
1023+
=> global::Cake.Common.Diagnostics.LoggingAliases.Error(Context, formattable);
1024+
1025+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Warning(Cake.Core.ICakeContext,System.FormattableString)">
1026+
/// <summary>
1027+
/// Writes an warning message to the log using the specified format information.
1028+
/// </summary>
1029+
/// <param name="formattable">The string to be formatted.</param>
1030+
/// <example>
1031+
/// <code>
1032+
/// Warning($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1033+
/// </code>
1034+
/// </example>
1035+
/// </member>
1036+
public static void Warning(global::System.FormattableString formattable)
1037+
=> global::Cake.Common.Diagnostics.LoggingAliases.Warning(Context, formattable);
1038+
1039+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Information(Cake.Core.ICakeContext,System.FormattableString)">
1040+
/// <summary>
1041+
/// Writes an informational message to the log using the specified formattable string.
1042+
/// </summary>
1043+
/// <param name="formattable">The string to be formatted.</param>
1044+
/// <example>
1045+
/// <code>
1046+
/// Information($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1047+
/// </code>
1048+
/// </example>
1049+
/// </member>
1050+
public static void Information(global::System.FormattableString formattable)
1051+
=> global::Cake.Common.Diagnostics.LoggingAliases.Information(Context, formattable);
1052+
1053+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Verbose(Cake.Core.ICakeContext,System.FormattableString)">
1054+
/// <summary>
1055+
/// Writes an verbose message to the log using the specified formattable string.
1056+
/// </summary>
1057+
/// <param name="formattable">The string to be formatted.</param>
1058+
/// <example>
1059+
/// <code>
1060+
/// Verbose($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1061+
/// </code>
1062+
/// </example>
1063+
/// </member>
1064+
public static void Verbose(global::System.FormattableString formattable)
1065+
=> global::Cake.Common.Diagnostics.LoggingAliases.Verbose(Context, formattable);
1066+
1067+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Debug(Cake.Core.ICakeContext,System.FormattableString)">
1068+
/// <summary>
1069+
/// Writes an debug message to the log using the specified formattable string.
1070+
/// </summary>
1071+
/// <param name="formattable">The string to be formatted.</param>
1072+
/// <example>
1073+
/// <code>
1074+
/// Debug($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1075+
/// </code>
1076+
/// </example>
1077+
/// </member>
1078+
public static void Debug(global::System.FormattableString formattable)
1079+
=> global::Cake.Common.Diagnostics.LoggingAliases.Debug(Context, formattable);
1080+
1081+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Error(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1082+
/// <summary>
1083+
/// Writes an error message to the log using the specified format information.
1084+
/// </summary>
1085+
/// <param name="formattableLogAction">The log action.</param>
1086+
/// <example>
1087+
/// <code>
1088+
/// Error(logAction =&gt; logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1089+
/// </code>
1090+
/// </example>
1091+
/// </member>
1092+
public static void Error(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1093+
=> global::Cake.Common.Diagnostics.LoggingAliases.Error(Context, formattableLogAction);
1094+
1095+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Warning(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1096+
/// <summary>
1097+
/// Writes an warning message to the log using the specified format information.
1098+
/// </summary>
1099+
/// <param name="formattableLogAction">The log action.</param>
1100+
/// <example>
1101+
/// <code>
1102+
/// Warning(logAction =&gt; logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1103+
/// </code>
1104+
/// </example>
1105+
/// </member>
1106+
public static void Warning(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1107+
=> global::Cake.Common.Diagnostics.LoggingAliases.Warning(Context, formattableLogAction);
1108+
1109+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Information(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1110+
/// <summary>
1111+
/// Writes an informational message to the log using the specified formattable string.
1112+
/// </summary>
1113+
/// <param name="formattableLogAction">The log action.</param>
1114+
/// <example>
1115+
/// <code>
1116+
/// Information(logAction =&gt; logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1117+
/// </code>
1118+
/// </example>
1119+
/// </member>
1120+
public static void Information(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1121+
=> global::Cake.Common.Diagnostics.LoggingAliases.Information(Context, formattableLogAction);
1122+
1123+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Verbose(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1124+
/// <summary>
1125+
/// Writes an verbose message to the log using the specified formattable string.
1126+
/// </summary>
1127+
/// <param name="formattableLogAction">The log action.</param>
1128+
/// <example>
1129+
/// <code>
1130+
/// Verbose(logAction =&gt; logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1131+
/// </code>
1132+
/// </example>
1133+
/// </member>
1134+
public static void Verbose(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1135+
=> global::Cake.Common.Diagnostics.LoggingAliases.Verbose(Context, formattableLogAction);
1136+
1137+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Debug(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1138+
/// <summary>
1139+
/// Writes an debug message to the log using the specified formattable string.
1140+
/// </summary>
1141+
/// <param name="formattableLogAction">The log action.</param>
1142+
/// <example>
1143+
/// <code>
1144+
/// Debug(logAction =&gt; logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1145+
/// </code>
1146+
/// </example>
1147+
/// </member>
1148+
public static void Debug(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1149+
=> global::Cake.Common.Diagnostics.LoggingAliases.Debug(Context, formattableLogAction);
1150+
9891151
/// <member name="M:Cake.Common.Diagnostics.ScriptCallerAliases.GetCallerInfo(Cake.Core.ICakeContext,System.String,System.String,System.Int32)">
9901152
/// <summary>
9911153
/// Performs script caller information.

src/Cake.Generator.Core.Tests/Unit/CakeGeneratorTests.RunGenerators_WithMainMethods_GeneratesMainMethodCalls#CakeMethodAliases.g.verified.cs

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,168 @@ public static void Debug(string value)
986986
public static global::System.IDisposable DiagnosticVerbosity()
987987
=> global::Cake.Common.Diagnostics.LoggingAliases.DiagnosticVerbosity(Context);
988988

989+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.WithVerbosity(Cake.Core.ICakeContext,Cake.Core.Diagnostics.Verbosity)">
990+
/// <summary>
991+
/// Sets the log verbosity as specified and returns a disposable that restores the log verbosity on dispose.
992+
/// </summary>
993+
/// <param name="verbosity">The verbosity.</param>
994+
/// <returns>A disposable that restores the log verbosity.</returns>
995+
/// <example>
996+
/// <code>
997+
/// using (DiagnosticVerbosity())
998+
/// {
999+
/// Error("Show me.");
1000+
/// Warning("Show me.");
1001+
/// Information("Show me.");
1002+
/// Verbose("Show me.");
1003+
/// Debug("Show me.");
1004+
/// }
1005+
/// </code>
1006+
/// </example>
1007+
/// </member>
1008+
public static global::System.IDisposable WithVerbosity(global::Cake.Core.Diagnostics.Verbosity verbosity)
1009+
=> global::Cake.Common.Diagnostics.LoggingAliases.WithVerbosity(Context, verbosity);
1010+
1011+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Error(Cake.Core.ICakeContext,System.FormattableString)">
1012+
/// <summary>
1013+
/// Writes an error message to the log using the specified format information.
1014+
/// </summary>
1015+
/// <param name="formattable">The string to be formatted.</param>
1016+
/// <example>
1017+
/// <code>
1018+
/// Error($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1019+
/// </code>
1020+
/// </example>
1021+
/// </member>
1022+
public static void Error(global::System.FormattableString formattable)
1023+
=> global::Cake.Common.Diagnostics.LoggingAliases.Error(Context, formattable);
1024+
1025+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Warning(Cake.Core.ICakeContext,System.FormattableString)">
1026+
/// <summary>
1027+
/// Writes an warning message to the log using the specified format information.
1028+
/// </summary>
1029+
/// <param name="formattable">The string to be formatted.</param>
1030+
/// <example>
1031+
/// <code>
1032+
/// Warning($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1033+
/// </code>
1034+
/// </example>
1035+
/// </member>
1036+
public static void Warning(global::System.FormattableString formattable)
1037+
=> global::Cake.Common.Diagnostics.LoggingAliases.Warning(Context, formattable);
1038+
1039+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Information(Cake.Core.ICakeContext,System.FormattableString)">
1040+
/// <summary>
1041+
/// Writes an informational message to the log using the specified formattable string.
1042+
/// </summary>
1043+
/// <param name="formattable">The string to be formatted.</param>
1044+
/// <example>
1045+
/// <code>
1046+
/// Information($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1047+
/// </code>
1048+
/// </example>
1049+
/// </member>
1050+
public static void Information(global::System.FormattableString formattable)
1051+
=> global::Cake.Common.Diagnostics.LoggingAliases.Information(Context, formattable);
1052+
1053+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Verbose(Cake.Core.ICakeContext,System.FormattableString)">
1054+
/// <summary>
1055+
/// Writes an verbose message to the log using the specified formattable string.
1056+
/// </summary>
1057+
/// <param name="formattable">The string to be formatted.</param>
1058+
/// <example>
1059+
/// <code>
1060+
/// Verbose($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1061+
/// </code>
1062+
/// </example>
1063+
/// </member>
1064+
public static void Verbose(global::System.FormattableString formattable)
1065+
=> global::Cake.Common.Diagnostics.LoggingAliases.Verbose(Context, formattable);
1066+
1067+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Debug(Cake.Core.ICakeContext,System.FormattableString)">
1068+
/// <summary>
1069+
/// Writes an debug message to the log using the specified formattable string.
1070+
/// </summary>
1071+
/// <param name="formattable">The string to be formatted.</param>
1072+
/// <example>
1073+
/// <code>
1074+
/// Debug($"Hello {"World"}! Today is an {DateTime.Now:dddd}");
1075+
/// </code>
1076+
/// </example>
1077+
/// </member>
1078+
public static void Debug(global::System.FormattableString formattable)
1079+
=> global::Cake.Common.Diagnostics.LoggingAliases.Debug(Context, formattable);
1080+
1081+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Error(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1082+
/// <summary>
1083+
/// Writes an error message to the log using the specified format information.
1084+
/// </summary>
1085+
/// <param name="formattableLogAction">The log action.</param>
1086+
/// <example>
1087+
/// <code>
1088+
/// Error(logAction =&gt; logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1089+
/// </code>
1090+
/// </example>
1091+
/// </member>
1092+
public static void Error(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1093+
=> global::Cake.Common.Diagnostics.LoggingAliases.Error(Context, formattableLogAction);
1094+
1095+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Warning(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1096+
/// <summary>
1097+
/// Writes an warning message to the log using the specified format information.
1098+
/// </summary>
1099+
/// <param name="formattableLogAction">The log action.</param>
1100+
/// <example>
1101+
/// <code>
1102+
/// Warning(logAction =&gt; logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1103+
/// </code>
1104+
/// </example>
1105+
/// </member>
1106+
public static void Warning(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1107+
=> global::Cake.Common.Diagnostics.LoggingAliases.Warning(Context, formattableLogAction);
1108+
1109+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Information(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1110+
/// <summary>
1111+
/// Writes an informational message to the log using the specified formattable string.
1112+
/// </summary>
1113+
/// <param name="formattableLogAction">The log action.</param>
1114+
/// <example>
1115+
/// <code>
1116+
/// Information(logAction =&gt; logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1117+
/// </code>
1118+
/// </example>
1119+
/// </member>
1120+
public static void Information(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1121+
=> global::Cake.Common.Diagnostics.LoggingAliases.Information(Context, formattableLogAction);
1122+
1123+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Verbose(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1124+
/// <summary>
1125+
/// Writes an verbose message to the log using the specified formattable string.
1126+
/// </summary>
1127+
/// <param name="formattableLogAction">The log action.</param>
1128+
/// <example>
1129+
/// <code>
1130+
/// Verbose(logAction =&gt; logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1131+
/// </code>
1132+
/// </example>
1133+
/// </member>
1134+
public static void Verbose(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1135+
=> global::Cake.Common.Diagnostics.LoggingAliases.Verbose(Context, formattableLogAction);
1136+
1137+
/// <member name="M:Cake.Common.Diagnostics.LoggingAliases.Debug(Cake.Core.ICakeContext,Cake.Core.Diagnostics.FormattableLogAction)">
1138+
/// <summary>
1139+
/// Writes an debug message to the log using the specified formattable string.
1140+
/// </summary>
1141+
/// <param name="formattableLogAction">The log action.</param>
1142+
/// <example>
1143+
/// <code>
1144+
/// Debug(logAction =&gt; logAction($"Hello {"World"}! Today is an {DateTime.Now:dddd}"));
1145+
/// </code>
1146+
/// </example>
1147+
/// </member>
1148+
public static void Debug(global::Cake.Core.Diagnostics.FormattableLogAction formattableLogAction)
1149+
=> global::Cake.Common.Diagnostics.LoggingAliases.Debug(Context, formattableLogAction);
1150+
9891151
/// <member name="M:Cake.Common.Diagnostics.ScriptCallerAliases.GetCallerInfo(Cake.Core.ICakeContext,System.String,System.String,System.Int32)">
9901152
/// <summary>
9911153
/// Performs script caller information.

0 commit comments

Comments
 (0)