Skip to content

Commit 4ce2804

Browse files
.NET: Fix release build analyzer failures (#7721)
Guard the hosted storage error log before evaluating the agent name and update the SDK to the servicing release containing the net9 ILLink analyzer fix. Co-authored-by: Copilot App <[email protected]> Copilot-Session: e3a6cce8-e1e8-4cf2-9cf4-3c0c8f3ed6d8
1 parent 1b45c15 commit 4ce2804

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎dotnet/global.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "10.0.302",
3+
"version": "10.0.303",
44
"rollForward": "minor",
55
"allowPrerelease": false
66
},

‎dotnet/src/Microsoft.Agents.AI.Foundry.Hosting/AgentFrameworkResponseHandler.cs‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,12 @@ bool CheckNotAllowedStoreUsage() =>
514514

515515
if (notAllowedStoreUsageDetected)
516516
{
517-
this._logger.LogError(
518-
"Agent '{AgentName}' should not have server side storage enabled. This produced a new untracked conversation/response in the server while the hosted agent also generated a conversation for the request of the agent.",
519-
agent.Name);
517+
if (this._logger.IsEnabled(LogLevel.Error))
518+
{
519+
this._logger.LogError(
520+
"Agent '{AgentName}' should not have server side storage enabled. This produced a new untracked conversation/response in the server while the hosted agent also generated a conversation for the request of the agent.",
521+
agent.Name);
522+
}
520523

521524
throw HostedStoredOutputCompatibility.CreateMisconfiguredAgentError();
522525
}

0 commit comments

Comments
 (0)