Skip to content

Fix two build errors in CoreGenerativeAITechniques.sln #322

Fix two build errors in CoreGenerativeAITechniques.sln

Fix two build errors in CoreGenerativeAITechniques.sln #322

Re-run triggered February 27, 2026 20:48
Status Failure
Total duration 52s
Artifacts

build-validation.yml

on: pull_request
Matrix: Build .NET Projects
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 20 warnings
Build .NET Projects (samples/AgentFx/AgentFx-Demos.slnx, AgentFx Demos)
Process completed with exit code 1.
Build .NET Projects (samples/AppsWithGenAI/SpaceAINet/SpaceAINet.sln, SpaceAINet App): samples/AppsWithGenAI/SpaceAINet/SpaceAINet.Screenshot/ScreenshotService.cs#L70
This call site is reachable on all platforms. 'Font' is only supported on: 'windows' 6.1 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Build .NET Projects (samples/AppsWithGenAI/SpaceAINet/SpaceAINet.sln, SpaceAINet App): samples/AppsWithGenAI/SpaceAINet/SpaceAINet.Screenshot/ScreenshotService.cs#L79
This call site is reachable on all platforms. 'Graphics.DrawString(string?, Font, Brush, float, float)' is only supported on: 'windows' 6.1 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Build .NET Projects (samples/AppsWithGenAI/SpaceAINet/SpaceAINet.sln, SpaceAINet App): samples/AppsWithGenAI/SpaceAINet/SpaceAINet.Screenshot/ScreenshotService.cs#L39
This call site is reachable on all platforms. 'Graphics.DrawString(string?, Font, Brush, float, float)' is only supported on: 'windows' 6.1 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Build .NET Projects (samples/AppsWithGenAI/SpaceAINet/SpaceAINet.sln, SpaceAINet App): samples/AppsWithGenAI/SpaceAINet/SpaceAINet.Screenshot/ScreenshotService.cs#L83
This call site is reachable on all platforms. 'Image.Save(Stream, ImageFormat)' is only supported on: 'windows' 6.1 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Build .NET Projects (samples/AppsWithGenAI/SpaceAINet/SpaceAINet.sln, SpaceAINet App): samples/AppsWithGenAI/SpaceAINet/SpaceAINet.Screenshot/ScreenshotService.cs#L44
This call site is reachable on all platforms. 'ImageFormat.Png' is only supported on: 'windows' 6.1 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Build .NET Projects (samples/AppsWithGenAI/SpaceAINet/SpaceAINet.sln, SpaceAINet App): samples/AppsWithGenAI/SpaceAINet/SpaceAINet.Screenshot/ScreenshotService.cs#L70
This call site is reachable on all platforms. 'FontStyle.Regular' is only supported on: 'windows' 6.1 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Build .NET Projects (samples/AppsWithGenAI/SpaceAINet/SpaceAINet.sln, SpaceAINet App): samples/AppsWithGenAI/SpaceAINet/SpaceAINet.Screenshot/ScreenshotService.cs#L68
This call site is reachable on all platforms. 'Graphics.FromImage(Image)' is only supported on: 'windows' 6.1 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Build .NET Projects (samples/AppsWithGenAI/SpaceAINet/SpaceAINet.sln, SpaceAINet App): samples/AppsWithGenAI/SpaceAINet/SpaceAINet.Screenshot/ScreenshotService.cs#L30
This call site is reachable on all platforms. 'GraphicsUnit.Pixel' is only supported on: 'windows' 6.1 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Build .NET Projects (samples/AppsWithGenAI/SpaceAINet/SpaceAINet.sln, SpaceAINet App): samples/AppsWithGenAI/SpaceAINet/SpaceAINet.GameActionProcessor/GameActionProviderBase.cs#L5
Non-nullable field 'chat' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Build .NET Projects (samples/PracticalSamples/Aspire.MCP.Sample.sln, Practical Samples - Aspire MCP): samples/PracticalSamples/src/McpSample.Chat/Components/Pages/Home.razor#L11
'IMcpClient' is obsolete: 'Use McpClient instead. This member will be removed in a subsequent release.'
Build .NET Projects (samples/PracticalSamples/Aspire.MCP.Sample.sln, Practical Samples - Aspire MCP): samples/PracticalSamples/src/McpSample.Chat/Components/Pages/Home.razor#L153
'McpClientExtensions.ListToolsAsync(IMcpClient, JsonSerializerOptions?, CancellationToken)' is obsolete: 'Use McpClient.ListToolsAsync instead. This member will be removed in a subsequent release.'
Build .NET Projects (samples/PracticalSamples/Aspire.MCP.Sample.sln, Practical Samples - Aspire MCP): samples/PracticalSamples/src/McpSample.Chat/Components/Pages/Home.razor#L11
'IMcpClient' is obsolete: 'Use McpClient instead. This member will be removed in a subsequent release.'