Skip to content

Commit 9ccd302

Browse files
committed
fix build
1 parent b46e50d commit 9ccd302

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

KubeConnect/Startup.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, Args arg
4141

4242
endpoints.MapGet("/status", () =>
4343
{
44-
return new
45-
{
46-
running = true,
47-
};
44+
return new StatusResult(true);
4845
})
4946
.RequireHost("localhost");
5047
});
5148
}
5249
}
50+
51+
public record StatusResult(bool running);
5352
}

build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
dotnet publish ./KubeConnect/KubeConnect.csproj --runtime win10-x64 -o publish/win -c Release --framework net6.0 --self-contained
1+
dotnet publish ./KubeConnect/KubeConnect.csproj --runtime win-x64 -o publish/win -c Release --framework net8.0 --self-contained
22
dotnet pack ./KubeConnect/KubeConnect.csproj -o publish/tool -c Release

0 commit comments

Comments
 (0)