Skip to content

Commit b4e4b01

Browse files
committed
cleanup
1 parent 3076a8e commit b4e4b01

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

build/CI.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ProjectSection(SolutionItems) = preProject
44
Directory.Build.props = Directory.Build.props
55
Directory.Packages.props = Directory.Packages.props
66
..\dotnet-tools.json = ..\dotnet-tools.json
7+
..\global.json = ..\global.json
78
EndProjectSection
89
EndProject
910
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "build", "build\build.csproj", "{1AC00FB2-E28A-46B7-9683-AA7A1AFC29EB}"

build/artifacts/BuildLifetime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public override void Setup(BuildContext context, ISetupContext info)
1212
context.IsDockerOnLinux = context.DockerCustomCommand("info --format '{{.OSType}}'").First().Replace("'", string.Empty) == "linux";
1313
context.TestArm64Artifacts = context.EnvironmentVariable("TEST_ARM64_ARTIFACTS", false);
1414

15-
context.Architecture = context.HasArgument(Arguments.Architecture) ? context.Argument<Architecture>(Arguments.Architecture) : (Architecture?)null;
15+
context.Architecture = context.HasArgument(Arguments.Architecture) ? context.Argument<Architecture>(Arguments.Architecture) : null;
1616
var dockerRegistry = context.Argument(Arguments.DockerRegistry, DockerRegistry.DockerHub);
1717
var dotnetVersion = context.Argument(Arguments.DockerDotnetVersion, string.Empty).ToLower();
1818
var dockerDistro = context.Argument(Arguments.DockerDistro, string.Empty).ToLower();

build/common/Addins/GitVersion/GitVersionRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public GitVersion Run(GitVersionSettings settings)
4343
output = string.Join("\n", process.GetStandardOutput());
4444
if (log.Verbosity < Verbosity.Diagnostic)
4545
{
46-
var errors = Regex.Matches(output, @"( *ERROR:? [^\n]*)\n([^\n]*)").Cast<Match>()
46+
var errors = Regex.Matches(output, @"( *ERROR:? [^\n]*)\n([^\n]*)")
4747
.SelectMany(match => new[] { match.Groups[1].Value, match.Groups[2].Value });
4848
foreach (var error in errors)
4949
{

build/common/Utilities/DockerContextExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static void DockerBuildImage(this BuildContextBase context, DockerImage d
5252
File = workDir.CombineWithFilePath("Dockerfile").FullPath,
5353
BuildArg = new[]
5454
{
55-
$"contentFolder=/content",
55+
"contentFolder=/content",
5656
$"REGISTRY={registry}",
5757
$"DOTNET_VERSION={targetFramework}",
5858
$"DISTRO={distro}",

build/docker/Tasks/DockerHubReadmePublish.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public override void Run(BuildContext context)
4343
var token = context.ParseJson(response).Value<string>("token");
4444
settings
4545
.SetContentType("application/json")
46-
.SetAuthorization($"JWT", token)
46+
.SetAuthorization("JWT", token)
4747
.SetJsonRequestBody(new { full_description = readme });
4848
});
4949
}

0 commit comments

Comments
 (0)