From 944c36768d6b27134e0ac40a9afd553b8df78d1a Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Sat, 23 May 2026 09:26:11 +1000 Subject: [PATCH 1/6] Match Betalgo version to SDK version. Runtime error due to new dependencies in 9.2.0 Fix csproj files. They break the AnyCPU resolution when loaded in VS on an x64 machine due to defaulting to ARM64. --- samples/cs/Directory.Packages.props | 2 +- .../AudioTranscriptionExample.csproj | 10 +++++++++- samples/cs/embeddings/Embeddings.csproj | 10 +++++++++- .../FoundryLocalWebServer.csproj | 10 +++++++++- .../LiveAudioTranscriptionExample.csproj | 10 +++++++++- .../ModelManagementExample.csproj | 10 +++++++++- .../NativeChatCompletions.csproj | 10 +++++++++- .../ToolCallingFoundryLocalSdk.csproj | 10 +++++++++- .../ToolCallingFoundryLocalWebServer.csproj | 10 +++++++++- .../TutorialChatAssistant.csproj | 10 +++++++++- .../TutorialDocumentSummarizer.csproj | 10 +++++++++- .../tutorial-tool-calling/TutorialToolCalling.csproj | 10 +++++++++- .../tutorial-voice-to-text/TutorialVoiceToText.csproj | 10 +++++++++- 13 files changed, 109 insertions(+), 13 deletions(-) diff --git a/samples/cs/Directory.Packages.props b/samples/cs/Directory.Packages.props index 77b68c4cc..431b27a82 100644 --- a/samples/cs/Directory.Packages.props +++ b/samples/cs/Directory.Packages.props @@ -6,7 +6,7 @@ - + diff --git a/samples/cs/audio-transcription-example/AudioTranscriptionExample.csproj b/samples/cs/audio-transcription-example/AudioTranscriptionExample.csproj index bd42e38b5..aa4e67807 100644 --- a/samples/cs/audio-transcription-example/AudioTranscriptionExample.csproj +++ b/samples/cs/audio-transcription-example/AudioTranscriptionExample.csproj @@ -20,7 +20,15 @@ net9.0 - + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + $(NETCoreSdkRuntimeIdentifier) diff --git a/samples/cs/embeddings/Embeddings.csproj b/samples/cs/embeddings/Embeddings.csproj index 4d948c56b..5a5c7b05e 100644 --- a/samples/cs/embeddings/Embeddings.csproj +++ b/samples/cs/embeddings/Embeddings.csproj @@ -20,7 +20,15 @@ net9.0 - + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + $(NETCoreSdkRuntimeIdentifier) diff --git a/samples/cs/foundry-local-web-server/FoundryLocalWebServer.csproj b/samples/cs/foundry-local-web-server/FoundryLocalWebServer.csproj index fe890be2d..272014418 100644 --- a/samples/cs/foundry-local-web-server/FoundryLocalWebServer.csproj +++ b/samples/cs/foundry-local-web-server/FoundryLocalWebServer.csproj @@ -20,7 +20,15 @@ net9.0 - + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + $(NETCoreSdkRuntimeIdentifier) diff --git a/samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.csproj b/samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.csproj index 3d91b6773..b6889e63a 100644 --- a/samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.csproj +++ b/samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.csproj @@ -20,7 +20,15 @@ net9.0 - + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + $(NETCoreSdkRuntimeIdentifier) diff --git a/samples/cs/model-management-example/ModelManagementExample.csproj b/samples/cs/model-management-example/ModelManagementExample.csproj index 4d948c56b..5a5c7b05e 100644 --- a/samples/cs/model-management-example/ModelManagementExample.csproj +++ b/samples/cs/model-management-example/ModelManagementExample.csproj @@ -20,7 +20,15 @@ net9.0 - + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + $(NETCoreSdkRuntimeIdentifier) diff --git a/samples/cs/native-chat-completions/NativeChatCompletions.csproj b/samples/cs/native-chat-completions/NativeChatCompletions.csproj index 4d948c56b..5a5c7b05e 100644 --- a/samples/cs/native-chat-completions/NativeChatCompletions.csproj +++ b/samples/cs/native-chat-completions/NativeChatCompletions.csproj @@ -20,7 +20,15 @@ net9.0 - + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + $(NETCoreSdkRuntimeIdentifier) diff --git a/samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.csproj b/samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.csproj index 4d948c56b..5a5c7b05e 100644 --- a/samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.csproj +++ b/samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.csproj @@ -20,7 +20,15 @@ net9.0 - + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + $(NETCoreSdkRuntimeIdentifier) diff --git a/samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.csproj b/samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.csproj index fe890be2d..272014418 100644 --- a/samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.csproj +++ b/samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.csproj @@ -20,7 +20,15 @@ net9.0 - + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + $(NETCoreSdkRuntimeIdentifier) diff --git a/samples/cs/tutorial-chat-assistant/TutorialChatAssistant.csproj b/samples/cs/tutorial-chat-assistant/TutorialChatAssistant.csproj index a3533047e..bf9af59e9 100644 --- a/samples/cs/tutorial-chat-assistant/TutorialChatAssistant.csproj +++ b/samples/cs/tutorial-chat-assistant/TutorialChatAssistant.csproj @@ -20,7 +20,15 @@ net9.0 - + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + $(NETCoreSdkRuntimeIdentifier) diff --git a/samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.csproj b/samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.csproj index a3533047e..bf9af59e9 100644 --- a/samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.csproj +++ b/samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.csproj @@ -20,7 +20,15 @@ net9.0 - + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + $(NETCoreSdkRuntimeIdentifier) diff --git a/samples/cs/tutorial-tool-calling/TutorialToolCalling.csproj b/samples/cs/tutorial-tool-calling/TutorialToolCalling.csproj index a3533047e..bf9af59e9 100644 --- a/samples/cs/tutorial-tool-calling/TutorialToolCalling.csproj +++ b/samples/cs/tutorial-tool-calling/TutorialToolCalling.csproj @@ -20,7 +20,15 @@ net9.0 - + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + $(NETCoreSdkRuntimeIdentifier) diff --git a/samples/cs/tutorial-voice-to-text/TutorialVoiceToText.csproj b/samples/cs/tutorial-voice-to-text/TutorialVoiceToText.csproj index a3533047e..bf9af59e9 100644 --- a/samples/cs/tutorial-voice-to-text/TutorialVoiceToText.csproj +++ b/samples/cs/tutorial-voice-to-text/TutorialVoiceToText.csproj @@ -20,7 +20,15 @@ net9.0 - + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + $(NETCoreSdkRuntimeIdentifier) From efcbc68221f6f0c6bfc4f91763a4e1d981d7a78c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 May 2026 01:53:33 +0000 Subject: [PATCH 2/6] Centralize C# sample RuntimeIdentifier mapping in Directory.Build.props --- samples/cs/Directory.Build.props | 11 +++++++++++ .../AudioTranscriptionExample.csproj | 12 ------------ samples/cs/embeddings/Embeddings.csproj | 12 ------------ .../FoundryLocalWebServer.csproj | 12 ------------ .../LiveAudioTranscriptionExample.csproj | 12 ------------ .../ModelManagementExample.csproj | 12 ------------ .../NativeChatCompletions.csproj | 12 ------------ .../ToolCallingFoundryLocalSdk.csproj | 12 ------------ .../ToolCallingFoundryLocalWebServer.csproj | 12 ------------ .../TutorialChatAssistant.csproj | 12 ------------ .../TutorialDocumentSummarizer.csproj | 12 ------------ .../tutorial-tool-calling/TutorialToolCalling.csproj | 12 ------------ .../TutorialVoiceToText.csproj | 12 ------------ 13 files changed, 11 insertions(+), 144 deletions(-) create mode 100644 samples/cs/Directory.Build.props diff --git a/samples/cs/Directory.Build.props b/samples/cs/Directory.Build.props new file mode 100644 index 000000000..469c0d7cd --- /dev/null +++ b/samples/cs/Directory.Build.props @@ -0,0 +1,11 @@ + + + + + win-arm64 + win-x64 + $(NETCoreSdkRuntimeIdentifier) + + + diff --git a/samples/cs/audio-transcription-example/AudioTranscriptionExample.csproj b/samples/cs/audio-transcription-example/AudioTranscriptionExample.csproj index aa4e67807..67b5ac132 100644 --- a/samples/cs/audio-transcription-example/AudioTranscriptionExample.csproj +++ b/samples/cs/audio-transcription-example/AudioTranscriptionExample.csproj @@ -20,18 +20,6 @@ net9.0 - - - win-arm64 - win-x64 - $(NETCoreSdkRuntimeIdentifier) - - - - $(NETCoreSdkRuntimeIdentifier) - - diff --git a/samples/cs/embeddings/Embeddings.csproj b/samples/cs/embeddings/Embeddings.csproj index 5a5c7b05e..87803d965 100644 --- a/samples/cs/embeddings/Embeddings.csproj +++ b/samples/cs/embeddings/Embeddings.csproj @@ -20,18 +20,6 @@ net9.0 - - - win-arm64 - win-x64 - $(NETCoreSdkRuntimeIdentifier) - - - - $(NETCoreSdkRuntimeIdentifier) - - diff --git a/samples/cs/foundry-local-web-server/FoundryLocalWebServer.csproj b/samples/cs/foundry-local-web-server/FoundryLocalWebServer.csproj index 272014418..bc004df2f 100644 --- a/samples/cs/foundry-local-web-server/FoundryLocalWebServer.csproj +++ b/samples/cs/foundry-local-web-server/FoundryLocalWebServer.csproj @@ -20,18 +20,6 @@ net9.0 - - - win-arm64 - win-x64 - $(NETCoreSdkRuntimeIdentifier) - - - - $(NETCoreSdkRuntimeIdentifier) - - diff --git a/samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.csproj b/samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.csproj index b6889e63a..75666c818 100644 --- a/samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.csproj +++ b/samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.csproj @@ -20,18 +20,6 @@ net9.0 - - - win-arm64 - win-x64 - $(NETCoreSdkRuntimeIdentifier) - - - - $(NETCoreSdkRuntimeIdentifier) - - diff --git a/samples/cs/model-management-example/ModelManagementExample.csproj b/samples/cs/model-management-example/ModelManagementExample.csproj index 5a5c7b05e..87803d965 100644 --- a/samples/cs/model-management-example/ModelManagementExample.csproj +++ b/samples/cs/model-management-example/ModelManagementExample.csproj @@ -20,18 +20,6 @@ net9.0 - - - win-arm64 - win-x64 - $(NETCoreSdkRuntimeIdentifier) - - - - $(NETCoreSdkRuntimeIdentifier) - - diff --git a/samples/cs/native-chat-completions/NativeChatCompletions.csproj b/samples/cs/native-chat-completions/NativeChatCompletions.csproj index 5a5c7b05e..87803d965 100644 --- a/samples/cs/native-chat-completions/NativeChatCompletions.csproj +++ b/samples/cs/native-chat-completions/NativeChatCompletions.csproj @@ -20,18 +20,6 @@ net9.0 - - - win-arm64 - win-x64 - $(NETCoreSdkRuntimeIdentifier) - - - - $(NETCoreSdkRuntimeIdentifier) - - diff --git a/samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.csproj b/samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.csproj index 5a5c7b05e..87803d965 100644 --- a/samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.csproj +++ b/samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.csproj @@ -20,18 +20,6 @@ net9.0 - - - win-arm64 - win-x64 - $(NETCoreSdkRuntimeIdentifier) - - - - $(NETCoreSdkRuntimeIdentifier) - - diff --git a/samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.csproj b/samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.csproj index 272014418..bc004df2f 100644 --- a/samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.csproj +++ b/samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.csproj @@ -20,18 +20,6 @@ net9.0 - - - win-arm64 - win-x64 - $(NETCoreSdkRuntimeIdentifier) - - - - $(NETCoreSdkRuntimeIdentifier) - - diff --git a/samples/cs/tutorial-chat-assistant/TutorialChatAssistant.csproj b/samples/cs/tutorial-chat-assistant/TutorialChatAssistant.csproj index bf9af59e9..cf3d1344d 100644 --- a/samples/cs/tutorial-chat-assistant/TutorialChatAssistant.csproj +++ b/samples/cs/tutorial-chat-assistant/TutorialChatAssistant.csproj @@ -20,18 +20,6 @@ net9.0 - - - win-arm64 - win-x64 - $(NETCoreSdkRuntimeIdentifier) - - - - $(NETCoreSdkRuntimeIdentifier) - - diff --git a/samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.csproj b/samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.csproj index bf9af59e9..cf3d1344d 100644 --- a/samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.csproj +++ b/samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.csproj @@ -20,18 +20,6 @@ net9.0 - - - win-arm64 - win-x64 - $(NETCoreSdkRuntimeIdentifier) - - - - $(NETCoreSdkRuntimeIdentifier) - - diff --git a/samples/cs/tutorial-tool-calling/TutorialToolCalling.csproj b/samples/cs/tutorial-tool-calling/TutorialToolCalling.csproj index bf9af59e9..cf3d1344d 100644 --- a/samples/cs/tutorial-tool-calling/TutorialToolCalling.csproj +++ b/samples/cs/tutorial-tool-calling/TutorialToolCalling.csproj @@ -20,18 +20,6 @@ net9.0 - - - win-arm64 - win-x64 - $(NETCoreSdkRuntimeIdentifier) - - - - $(NETCoreSdkRuntimeIdentifier) - - diff --git a/samples/cs/tutorial-voice-to-text/TutorialVoiceToText.csproj b/samples/cs/tutorial-voice-to-text/TutorialVoiceToText.csproj index bf9af59e9..cf3d1344d 100644 --- a/samples/cs/tutorial-voice-to-text/TutorialVoiceToText.csproj +++ b/samples/cs/tutorial-voice-to-text/TutorialVoiceToText.csproj @@ -20,18 +20,6 @@ net9.0 - - - win-arm64 - win-x64 - $(NETCoreSdkRuntimeIdentifier) - - - - $(NETCoreSdkRuntimeIdentifier) - - From 46cb4792609eba0cb733ed9df7fed732b284ab40 Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Sat, 30 May 2026 18:10:04 +1000 Subject: [PATCH 3/6] Tighten C# test so output is more deterministic --- sdk_v2/cs/test/FoundryLocal.Tests/ChatSessionTests.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sdk_v2/cs/test/FoundryLocal.Tests/ChatSessionTests.cs b/sdk_v2/cs/test/FoundryLocal.Tests/ChatSessionTests.cs index 8cdf8ec4f..19777b085 100644 --- a/sdk_v2/cs/test/FoundryLocal.Tests/ChatSessionTests.cs +++ b/sdk_v2/cs/test/FoundryLocal.Tests/ChatSessionTests.cs @@ -19,6 +19,11 @@ internal sealed class ChatSessionTests { private static IModel? model; + // Greedy decoding for content-asserting tests so the small (0.5B) model produces a + // stable response across runs. Mirrors the C++ ChatSessionTest fixture. + private static RequestOptions DeterministicOptions(int maxTokens) => + new() { Search = new SearchOptions { Temperature = 0f, MaxOutputTokens = maxTokens } }; + [Before(Class)] public static async Task Setup() { @@ -41,6 +46,7 @@ public async Task Chat_NoStreaming_Succeeds() using var request = new Request(); request.AddItem(MessageItem.User("You are a calculator. Be precise. What is the answer to 7 multiplied by 6?")); + request.SetOptions(DeterministicOptions(maxTokens: 32)); using var response = await session.ProcessRequestAsync(request).ConfigureAwait(false); @@ -80,6 +86,7 @@ public async Task Chat_Streaming_Succeeds() // reorder; requiring a subset stays robust. using var request = new Request(); request.AddItem(MessageItem.User("Name the countries in the United Kingdom.")); + request.SetOptions(DeterministicOptions(maxTokens: 128)); var sb = new StringBuilder(); int itemCount = 0; @@ -113,6 +120,7 @@ public async Task Chat_Streaming_Succeeds() // content check. using var request2 = new Request(); request2.AddItem(MessageItem.User("What is the capital of each?")); + request2.SetOptions(DeterministicOptions(maxTokens: 128)); var sb2 = new StringBuilder(); int itemCount2 = 0; @@ -149,6 +157,7 @@ public async Task Chat_MultiTurn_Succeeds() // First turn using var request1 = new Request(); request1.AddItem(MessageItem.User("You are a calculator. Be precise. What is the answer to 7 multiplied by 6?")); + request1.SetOptions(DeterministicOptions(maxTokens: 32)); using var response1 = await session.ProcessRequestAsync(request1).ConfigureAwait(false); @@ -178,6 +187,7 @@ public async Task Chat_MultiTurn_Succeeds() request2.AddItem(MessageItem.User("You are a calculator. Be precise. What is the answer to 7 multiplied by 6?")); request2.AddItem(MessageItem.Assistant(firstContent!)); request2.AddItem(MessageItem.User("Is the answer a real number?")); + request2.SetOptions(DeterministicOptions(maxTokens: 64)); using var response2 = await session.ProcessRequestAsync(request2).ConfigureAwait(false); From 704f391383c16c69dc8f289dbfa5a80c485fc15e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 2 Jun 2026 00:36:22 +0000 Subject: [PATCH 4/6] Fix NETSDK1047: use static OS arch detection in Directory.Build.props Replace $(NETCoreSdkRuntimeIdentifier) fallback with System.Runtime.InteropServices.RuntimeInformation::OSArchitecture detection, which is always available when Directory.Build.props is evaluated (before Sdk.props initializes NETCoreSdkRuntimeIdentifier). Root cause: Directory.Build.props is imported during Microsoft.Common.props evaluation, before Sdk.props sets NETCoreSdkRuntimeIdentifier. The fallback set RuntimeIdentifier to empty string during restore but to win-x64 during build, causing NETSDK1047 (assets file missing net9.0-windows10.0.18362.0/win-x64). --- samples/cs/Directory.Build.props | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/samples/cs/Directory.Build.props b/samples/cs/Directory.Build.props index 469c0d7cd..82f8d28ce 100644 --- a/samples/cs/Directory.Build.props +++ b/samples/cs/Directory.Build.props @@ -1,11 +1,16 @@ + (derived from $(Platform)) and RID don't conflict (NETSDK1032). + Note: $(NETCoreSdkRuntimeIdentifier) is intentionally NOT used here because + Directory.Build.props is evaluated before Sdk.props initializes that property. + Instead, use static OS architecture detection which is always available. --> win-arm64 win-x64 - $(NETCoreSdkRuntimeIdentifier) + + win-x64 + win-arm64 From 202e55f1cc0a8ad6dd1b20013bc2580edb813eac Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Fri, 19 Jun 2026 14:32:41 +1000 Subject: [PATCH 5/6] Remove unrelated diff. --- sdk_v2/cs/test/FoundryLocal.Tests/ChatSessionTests.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sdk_v2/cs/test/FoundryLocal.Tests/ChatSessionTests.cs b/sdk_v2/cs/test/FoundryLocal.Tests/ChatSessionTests.cs index 0429c9eb3..091a47f59 100644 --- a/sdk_v2/cs/test/FoundryLocal.Tests/ChatSessionTests.cs +++ b/sdk_v2/cs/test/FoundryLocal.Tests/ChatSessionTests.cs @@ -19,11 +19,6 @@ internal sealed class ChatSessionTests { private static IModel? model; - // Greedy decoding for content-asserting tests so the small (0.5B) model produces a - // stable response across runs. Mirrors the C++ ChatSessionTest fixture. - private static RequestOptions DeterministicOptions(int maxTokens) => - new() { Search = new SearchOptions { Temperature = 0f, MaxOutputTokens = maxTokens } }; - [Before(Class)] public static async Task Setup() { @@ -46,7 +41,6 @@ public async Task Chat_NoStreaming_Succeeds() using var request = new Request(); request.AddItem(MessageItem.User("You are a calculator. Be precise. What is the answer to 7 multiplied by 6?")); - request.SetOptions(DeterministicOptions(maxTokens: 32)); using var response = await session.ProcessRequestAsync(request).ConfigureAwait(false); @@ -124,7 +118,6 @@ public async Task Chat_Streaming_Succeeds() // content check. using var request2 = new Request(); request2.AddItem(MessageItem.User("What is the capital of each?")); - request2.SetOptions(DeterministicOptions(maxTokens: 128)); var sb2 = new StringBuilder(); int itemCount2 = 0; @@ -161,7 +154,6 @@ public async Task Chat_MultiTurn_Succeeds() // First turn using var request1 = new Request(); request1.AddItem(MessageItem.User("You are a calculator. Be precise. What is the answer to 7 multiplied by 6?")); - request1.SetOptions(DeterministicOptions(maxTokens: 32)); using var response1 = await session.ProcessRequestAsync(request1).ConfigureAwait(false); @@ -191,7 +183,6 @@ public async Task Chat_MultiTurn_Succeeds() request2.AddItem(MessageItem.User("You are a calculator. Be precise. What is the answer to 7 multiplied by 6?")); request2.AddItem(MessageItem.Assistant(firstContent!)); request2.AddItem(MessageItem.User("Is the answer a real number?")); - request2.SetOptions(DeterministicOptions(maxTokens: 64)); using var response2 = await session.ProcessRequestAsync(request2).ConfigureAwait(false); From de361b05d706ed196143f616b55a488b02300d68 Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Fri, 19 Jun 2026 18:04:53 +1000 Subject: [PATCH 6/6] Target net8.0 for WinML instead of a windows specific TFM. Cleanup sln files to only target Any CPU. As these are samples they should build simply by default on the current platform. Update Directory.Build.props to set target for all OS platforms --- samples/cs/Directory.Build.props | 31 +++++++++++++------ .../AudioTranscriptionExample.sln | 20 +++--------- .../FoundryLocalWebServer.sln | 20 +++--------- .../LiveAudioTranscriptionExample.sln | 12 ------- .../ModelManagementExample.sln | 20 +++--------- .../NativeChatCompletions.sln | 20 +++--------- .../ToolCallingFoundryLocalSdk.sln | 20 +++--------- .../ToolCallingFoundryLocalWebServer.sln | 20 +++--------- .../TutorialChatAssistant.sln | 20 +++--------- .../TutorialDocumentSummarizer.sln | 20 +++--------- .../TutorialToolCalling.sln | 20 +++--------- .../TutorialVoiceToText.sln | 20 +++--------- sdk/cs/src/Microsoft.AI.Foundry.Local.csproj | 2 +- 13 files changed, 63 insertions(+), 182 deletions(-) diff --git a/samples/cs/Directory.Build.props b/samples/cs/Directory.Build.props index 82f8d28ce..272fd1a38 100644 --- a/samples/cs/Directory.Build.props +++ b/samples/cs/Directory.Build.props @@ -1,16 +1,29 @@ - + Instead, use static OS + architecture detection, which is always available. + The sample solutions build as AnyCPU, so the host architecture is the only + input we need. --> - win-arm64 - win-x64 - - win-x64 - win-arm64 + <_OSArch>$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture) + + win-x64 + win-arm64 + + osx-arm64 + osx-x64 + + linux-x64 + linux-arm64 diff --git a/samples/cs/audio-transcription-example/AudioTranscriptionExample.sln b/samples/cs/audio-transcription-example/AudioTranscriptionExample.sln index 46fb73d98..f36b8642f 100644 --- a/samples/cs/audio-transcription-example/AudioTranscriptionExample.sln +++ b/samples/cs/audio-transcription-example/AudioTranscriptionExample.sln @@ -8,25 +8,13 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Debug|Any CPU.ActiveCfg = Debug|ARM64 - {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Debug|Any CPU.Build.0 = Debug|ARM64 - {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Debug|x64.ActiveCfg = Debug|x64 - {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Debug|x64.Build.0 = Debug|x64 - {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Debug|x86.ActiveCfg = Debug|ARM64 - {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Debug|x86.Build.0 = Debug|ARM64 - {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Release|Any CPU.ActiveCfg = Release|ARM64 - {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Release|Any CPU.Build.0 = Release|ARM64 - {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Release|x64.ActiveCfg = Release|x64 - {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Release|x64.Build.0 = Release|x64 - {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Release|x86.ActiveCfg = Release|ARM64 - {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Release|x86.Build.0 = Release|ARM64 + {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Debug|Any CPU.Build.0 = Debug|Any CPU + {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Release|Any CPU.ActiveCfg = Release|Any CPU + {11616852-BB4F-4B60-9FAC-D94E2688BB30}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/samples/cs/foundry-local-web-server/FoundryLocalWebServer.sln b/samples/cs/foundry-local-web-server/FoundryLocalWebServer.sln index 91d7e9536..da6f960e7 100644 --- a/samples/cs/foundry-local-web-server/FoundryLocalWebServer.sln +++ b/samples/cs/foundry-local-web-server/FoundryLocalWebServer.sln @@ -8,25 +8,13 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Debug|Any CPU.ActiveCfg = Debug|ARM64 - {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Debug|Any CPU.Build.0 = Debug|ARM64 - {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Debug|x64.ActiveCfg = Debug|x64 - {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Debug|x64.Build.0 = Debug|x64 - {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Debug|x86.ActiveCfg = Debug|ARM64 - {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Debug|x86.Build.0 = Debug|ARM64 - {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Release|Any CPU.ActiveCfg = Release|ARM64 - {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Release|Any CPU.Build.0 = Release|ARM64 - {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Release|x64.ActiveCfg = Release|x64 - {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Release|x64.Build.0 = Release|x64 - {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Release|x86.ActiveCfg = Release|ARM64 - {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Release|x86.Build.0 = Release|ARM64 + {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2DEC84E5-8530-45AF-B26D-EC78A6A7D6E7}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.sln b/samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.sln index f8c882849..d4f3991bb 100644 --- a/samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.sln +++ b/samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.sln @@ -8,25 +8,13 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {A2B3C4D5-E6F7-4A8B-9C0D-1E2F3A4B5C6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A2B3C4D5-E6F7-4A8B-9C0D-1E2F3A4B5C6D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A2B3C4D5-E6F7-4A8B-9C0D-1E2F3A4B5C6D}.Debug|x64.ActiveCfg = Debug|x64 - {A2B3C4D5-E6F7-4A8B-9C0D-1E2F3A4B5C6D}.Debug|x64.Build.0 = Debug|x64 - {A2B3C4D5-E6F7-4A8B-9C0D-1E2F3A4B5C6D}.Debug|x86.ActiveCfg = Debug|x86 - {A2B3C4D5-E6F7-4A8B-9C0D-1E2F3A4B5C6D}.Debug|x86.Build.0 = Debug|x86 {A2B3C4D5-E6F7-4A8B-9C0D-1E2F3A4B5C6D}.Release|Any CPU.ActiveCfg = Release|Any CPU {A2B3C4D5-E6F7-4A8B-9C0D-1E2F3A4B5C6D}.Release|Any CPU.Build.0 = Release|Any CPU - {A2B3C4D5-E6F7-4A8B-9C0D-1E2F3A4B5C6D}.Release|x64.ActiveCfg = Release|x64 - {A2B3C4D5-E6F7-4A8B-9C0D-1E2F3A4B5C6D}.Release|x64.Build.0 = Release|x64 - {A2B3C4D5-E6F7-4A8B-9C0D-1E2F3A4B5C6D}.Release|x86.ActiveCfg = Release|x86 - {A2B3C4D5-E6F7-4A8B-9C0D-1E2F3A4B5C6D}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/samples/cs/model-management-example/ModelManagementExample.sln b/samples/cs/model-management-example/ModelManagementExample.sln index f255391b2..3605911ec 100644 --- a/samples/cs/model-management-example/ModelManagementExample.sln +++ b/samples/cs/model-management-example/ModelManagementExample.sln @@ -8,25 +8,13 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {9316B939-946C-4956-A4E7-9410017FD319}.Debug|Any CPU.ActiveCfg = Debug|ARM64 - {9316B939-946C-4956-A4E7-9410017FD319}.Debug|Any CPU.Build.0 = Debug|ARM64 - {9316B939-946C-4956-A4E7-9410017FD319}.Debug|x64.ActiveCfg = Debug|x64 - {9316B939-946C-4956-A4E7-9410017FD319}.Debug|x64.Build.0 = Debug|x64 - {9316B939-946C-4956-A4E7-9410017FD319}.Debug|x86.ActiveCfg = Debug|ARM64 - {9316B939-946C-4956-A4E7-9410017FD319}.Debug|x86.Build.0 = Debug|ARM64 - {9316B939-946C-4956-A4E7-9410017FD319}.Release|Any CPU.ActiveCfg = Release|ARM64 - {9316B939-946C-4956-A4E7-9410017FD319}.Release|Any CPU.Build.0 = Release|ARM64 - {9316B939-946C-4956-A4E7-9410017FD319}.Release|x64.ActiveCfg = Release|x64 - {9316B939-946C-4956-A4E7-9410017FD319}.Release|x64.Build.0 = Release|x64 - {9316B939-946C-4956-A4E7-9410017FD319}.Release|x86.ActiveCfg = Release|ARM64 - {9316B939-946C-4956-A4E7-9410017FD319}.Release|x86.Build.0 = Release|ARM64 + {9316B939-946C-4956-A4E7-9410017FD319}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9316B939-946C-4956-A4E7-9410017FD319}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9316B939-946C-4956-A4E7-9410017FD319}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9316B939-946C-4956-A4E7-9410017FD319}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/samples/cs/native-chat-completions/NativeChatCompletions.sln b/samples/cs/native-chat-completions/NativeChatCompletions.sln index a127bfba6..03c683daf 100644 --- a/samples/cs/native-chat-completions/NativeChatCompletions.sln +++ b/samples/cs/native-chat-completions/NativeChatCompletions.sln @@ -8,25 +8,13 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {A53372CE-F7E1-4F09-B186-77F76E388659}.Debug|Any CPU.ActiveCfg = Debug|ARM64 - {A53372CE-F7E1-4F09-B186-77F76E388659}.Debug|Any CPU.Build.0 = Debug|ARM64 - {A53372CE-F7E1-4F09-B186-77F76E388659}.Debug|x64.ActiveCfg = Debug|x64 - {A53372CE-F7E1-4F09-B186-77F76E388659}.Debug|x64.Build.0 = Debug|x64 - {A53372CE-F7E1-4F09-B186-77F76E388659}.Debug|x86.ActiveCfg = Debug|ARM64 - {A53372CE-F7E1-4F09-B186-77F76E388659}.Debug|x86.Build.0 = Debug|ARM64 - {A53372CE-F7E1-4F09-B186-77F76E388659}.Release|Any CPU.ActiveCfg = Release|ARM64 - {A53372CE-F7E1-4F09-B186-77F76E388659}.Release|Any CPU.Build.0 = Release|ARM64 - {A53372CE-F7E1-4F09-B186-77F76E388659}.Release|x64.ActiveCfg = Release|x64 - {A53372CE-F7E1-4F09-B186-77F76E388659}.Release|x64.Build.0 = Release|x64 - {A53372CE-F7E1-4F09-B186-77F76E388659}.Release|x86.ActiveCfg = Release|ARM64 - {A53372CE-F7E1-4F09-B186-77F76E388659}.Release|x86.Build.0 = Release|ARM64 + {A53372CE-F7E1-4F09-B186-77F76E388659}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A53372CE-F7E1-4F09-B186-77F76E388659}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A53372CE-F7E1-4F09-B186-77F76E388659}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A53372CE-F7E1-4F09-B186-77F76E388659}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.sln b/samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.sln index adbf5ea23..c4d5e1034 100644 --- a/samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.sln +++ b/samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.sln @@ -8,25 +8,13 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Debug|Any CPU.ActiveCfg = Debug|ARM64 - {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Debug|Any CPU.Build.0 = Debug|ARM64 - {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Debug|x64.ActiveCfg = Debug|x64 - {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Debug|x64.Build.0 = Debug|x64 - {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Debug|x86.ActiveCfg = Debug|ARM64 - {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Debug|x86.Build.0 = Debug|ARM64 - {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Release|Any CPU.ActiveCfg = Release|ARM64 - {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Release|Any CPU.Build.0 = Release|ARM64 - {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Release|x64.ActiveCfg = Release|x64 - {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Release|x64.Build.0 = Release|x64 - {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Release|x86.ActiveCfg = Release|ARM64 - {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Release|x86.Build.0 = Release|ARM64 + {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7B40637D-D7E3-4A95-9B57-8D0EF84C8532}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.sln b/samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.sln index 7d1568e18..3117c996e 100644 --- a/samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.sln +++ b/samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.sln @@ -8,25 +8,13 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {F9BD2479-A235-4BBF-A722-DF180A076143}.Debug|Any CPU.ActiveCfg = Debug|ARM64 - {F9BD2479-A235-4BBF-A722-DF180A076143}.Debug|Any CPU.Build.0 = Debug|ARM64 - {F9BD2479-A235-4BBF-A722-DF180A076143}.Debug|x64.ActiveCfg = Debug|x64 - {F9BD2479-A235-4BBF-A722-DF180A076143}.Debug|x64.Build.0 = Debug|x64 - {F9BD2479-A235-4BBF-A722-DF180A076143}.Debug|x86.ActiveCfg = Debug|ARM64 - {F9BD2479-A235-4BBF-A722-DF180A076143}.Debug|x86.Build.0 = Debug|ARM64 - {F9BD2479-A235-4BBF-A722-DF180A076143}.Release|Any CPU.ActiveCfg = Release|ARM64 - {F9BD2479-A235-4BBF-A722-DF180A076143}.Release|Any CPU.Build.0 = Release|ARM64 - {F9BD2479-A235-4BBF-A722-DF180A076143}.Release|x64.ActiveCfg = Release|x64 - {F9BD2479-A235-4BBF-A722-DF180A076143}.Release|x64.Build.0 = Release|x64 - {F9BD2479-A235-4BBF-A722-DF180A076143}.Release|x86.ActiveCfg = Release|ARM64 - {F9BD2479-A235-4BBF-A722-DF180A076143}.Release|x86.Build.0 = Release|ARM64 + {F9BD2479-A235-4BBF-A722-DF180A076143}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9BD2479-A235-4BBF-A722-DF180A076143}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9BD2479-A235-4BBF-A722-DF180A076143}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9BD2479-A235-4BBF-A722-DF180A076143}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/samples/cs/tutorial-chat-assistant/TutorialChatAssistant.sln b/samples/cs/tutorial-chat-assistant/TutorialChatAssistant.sln index a9c77e164..032f62e2f 100644 --- a/samples/cs/tutorial-chat-assistant/TutorialChatAssistant.sln +++ b/samples/cs/tutorial-chat-assistant/TutorialChatAssistant.sln @@ -8,25 +8,13 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Debug|Any CPU.ActiveCfg = Debug|ARM64 - {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Debug|Any CPU.Build.0 = Debug|ARM64 - {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Debug|x64.ActiveCfg = Debug|x64 - {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Debug|x64.Build.0 = Debug|x64 - {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Debug|x86.ActiveCfg = Debug|ARM64 - {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Debug|x86.Build.0 = Debug|ARM64 - {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Release|Any CPU.ActiveCfg = Release|ARM64 - {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Release|Any CPU.Build.0 = Release|ARM64 - {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Release|x64.ActiveCfg = Release|x64 - {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Release|x64.Build.0 = Release|x64 - {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Release|x86.ActiveCfg = Release|ARM64 - {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Release|x86.Build.0 = Release|ARM64 + {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5D5778BD-B40A-4D9E-BC2F-65AD50EE6F94}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.sln b/samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.sln index 7d7a0fc99..a7d90a6b6 100644 --- a/samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.sln +++ b/samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.sln @@ -8,25 +8,13 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Debug|Any CPU.ActiveCfg = Debug|ARM64 - {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Debug|Any CPU.Build.0 = Debug|ARM64 - {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Debug|x64.ActiveCfg = Debug|x64 - {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Debug|x64.Build.0 = Debug|x64 - {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Debug|x86.ActiveCfg = Debug|ARM64 - {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Debug|x86.Build.0 = Debug|ARM64 - {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Release|Any CPU.ActiveCfg = Release|ARM64 - {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Release|Any CPU.Build.0 = Release|ARM64 - {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Release|x64.ActiveCfg = Release|x64 - {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Release|x64.Build.0 = Release|x64 - {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Release|x86.ActiveCfg = Release|ARM64 - {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Release|x86.Build.0 = Release|ARM64 + {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6868D03F-BD8E-46ED-9A5B-95346A3810A4}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/samples/cs/tutorial-tool-calling/TutorialToolCalling.sln b/samples/cs/tutorial-tool-calling/TutorialToolCalling.sln index 6a86331bb..e3358facc 100644 --- a/samples/cs/tutorial-tool-calling/TutorialToolCalling.sln +++ b/samples/cs/tutorial-tool-calling/TutorialToolCalling.sln @@ -8,25 +8,13 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {155923AB-A0C6-447D-A46A-7C8318D31596}.Debug|Any CPU.ActiveCfg = Debug|ARM64 - {155923AB-A0C6-447D-A46A-7C8318D31596}.Debug|Any CPU.Build.0 = Debug|ARM64 - {155923AB-A0C6-447D-A46A-7C8318D31596}.Debug|x64.ActiveCfg = Debug|x64 - {155923AB-A0C6-447D-A46A-7C8318D31596}.Debug|x64.Build.0 = Debug|x64 - {155923AB-A0C6-447D-A46A-7C8318D31596}.Debug|x86.ActiveCfg = Debug|ARM64 - {155923AB-A0C6-447D-A46A-7C8318D31596}.Debug|x86.Build.0 = Debug|ARM64 - {155923AB-A0C6-447D-A46A-7C8318D31596}.Release|Any CPU.ActiveCfg = Release|ARM64 - {155923AB-A0C6-447D-A46A-7C8318D31596}.Release|Any CPU.Build.0 = Release|ARM64 - {155923AB-A0C6-447D-A46A-7C8318D31596}.Release|x64.ActiveCfg = Release|x64 - {155923AB-A0C6-447D-A46A-7C8318D31596}.Release|x64.Build.0 = Release|x64 - {155923AB-A0C6-447D-A46A-7C8318D31596}.Release|x86.ActiveCfg = Release|ARM64 - {155923AB-A0C6-447D-A46A-7C8318D31596}.Release|x86.Build.0 = Release|ARM64 + {155923AB-A0C6-447D-A46A-7C8318D31596}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {155923AB-A0C6-447D-A46A-7C8318D31596}.Debug|Any CPU.Build.0 = Debug|Any CPU + {155923AB-A0C6-447D-A46A-7C8318D31596}.Release|Any CPU.ActiveCfg = Release|Any CPU + {155923AB-A0C6-447D-A46A-7C8318D31596}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/samples/cs/tutorial-voice-to-text/TutorialVoiceToText.sln b/samples/cs/tutorial-voice-to-text/TutorialVoiceToText.sln index ae2a2b396..6b8514efc 100644 --- a/samples/cs/tutorial-voice-to-text/TutorialVoiceToText.sln +++ b/samples/cs/tutorial-voice-to-text/TutorialVoiceToText.sln @@ -8,25 +8,13 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Debug|Any CPU.ActiveCfg = Debug|ARM64 - {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Debug|Any CPU.Build.0 = Debug|ARM64 - {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Debug|x64.ActiveCfg = Debug|x64 - {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Debug|x64.Build.0 = Debug|x64 - {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Debug|x86.ActiveCfg = Debug|ARM64 - {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Debug|x86.Build.0 = Debug|ARM64 - {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Release|Any CPU.ActiveCfg = Release|ARM64 - {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Release|Any CPU.Build.0 = Release|ARM64 - {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Release|x64.ActiveCfg = Release|x64 - {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Release|x64.Build.0 = Release|x64 - {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Release|x86.ActiveCfg = Release|ARM64 - {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Release|x86.Build.0 = Release|ARM64 + {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C12663C3-AB3F-4652-BC43-A92E43602ACC}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/sdk/cs/src/Microsoft.AI.Foundry.Local.csproj b/sdk/cs/src/Microsoft.AI.Foundry.Local.csproj index ab5e0037c..71eb43ece 100644 --- a/sdk/cs/src/Microsoft.AI.Foundry.Local.csproj +++ b/sdk/cs/src/Microsoft.AI.Foundry.Local.csproj @@ -44,7 +44,7 @@ --> - net8.0-windows10.0.18362.0 + net8.0 win-x64;win-arm64 10.0.18362.0