Skip to content

Commit 66e34e5

Browse files
committed
cleanup
1 parent 059c669 commit 66e34e5

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

build/build/Tasks/BuildPrepare.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public override void Run(BuildContext context)
2626
Verbosity = DotNetVerbosity.Minimal,
2727
Configuration = Constants.DefaultConfiguration,
2828
OutputDirectory = Paths.Dogfood,
29-
Framework = Constants.NetVersion70,
29+
Framework = Constants.NetVersionLatest,
3030
NoRestore = true,
3131
});
3232
}

build/build/Tasks/Package/PackagePrepare.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private static DirectoryPath PackPrepareNative(BuildContext context, string runt
5454

5555
var settings = new DotNetPublishSettings
5656
{
57-
Framework = Constants.NetVersion60,
57+
Framework = Constants.NetVersionLatest,
5858
Runtime = runtime,
5959
NoRestore = false,
6060
Configuration = context.MsBuildConfiguration,

build/common/Utilities/Constants.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class Constants
1111

1212
public const string NetVersion60 = $"net{Version60}";
1313
public const string NetVersion70 = $"net{Version70}";
14+
public const string NetVersionLatest = $"net{VersionLatest}";
1415

1516
public const string DefaultBranch = "main";
1617
public const string DefaultConfiguration = "Release";

build/common/Utilities/ContextExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public static string GetBranchName(this ICakeContext context)
165165
private static void EndGroup(this IAzurePipelinesCommands _, ICakeContext context) => context.Information("##[endgroup]");
166166

167167
public static FilePath? GetGitVersionToolLocation(this ICakeContext context) =>
168-
context.GetFiles($"src/GitVersion.App/bin/{Constants.DefaultConfiguration}/{Constants.NetVersion60}/gitversion.dll").SingleOrDefault();
168+
context.GetFiles($"src/GitVersion.App/bin/{Constants.DefaultConfiguration}/{Constants.NetVersionLatest}/gitversion.dll").SingleOrDefault();
169169
public static FilePath? GetDogFoodGitVersionToolLocation(this ICakeContext context) =>
170170
context.MakeAbsolute(Paths.Dogfood.CombineWithFilePath("gitversion.dll"));
171171
}

0 commit comments

Comments
 (0)