Skip to content

Commit 3e766a3

Browse files
samuel100Copilot
andcommitted
Restructure C# samples: unified csproj with OS detection
- Flatten dual windows/cross-platform csproj into single unified csproj per sample - MSBuild IsOSPlatform condition auto-selects WinML on Windows, standard SDK elsewhere - Move from GettingStarted/src/{Sample}/ to samples/cs/{sample-dir}/ - Each sample gets its own .sln file - Rename HelloFoundryLocalSdk to native-chat-completions (aligns with docs) - Remove old GettingStarted directory (windows/, cross-platform/, old .sln files) - Update CI workflow to remove Windows/cross-platform skip logic - Shared/Utils.cs referenced via Compile Include from 6 non-tutorial samples - 4 tutorials get WinML support (previously cross-platform only) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a84f7f7 commit 3e766a3

File tree

55 files changed

+883
-662
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+883
-662
lines changed

.github/workflows/samples-integration-test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,6 @@ jobs:
194194
$projects = Get-ChildItem samples/cs -Recurse -Filter "*.csproj"
195195
foreach ($proj in $projects) {
196196
$name = $proj.BaseName
197-
$relPath = $proj.FullName.Replace((Get-Location).Path, '').TrimStart('\','/')
198-
# Skip windows-only projects on non-Windows platforms
199-
if ($relPath -match '[/\\]windows[/\\]' -and -not $IsWindows) {
200-
Write-Host "`n=== Skipping (Windows-only): $name ==="
201-
continue
202-
}
203197
Write-Host "`n=== Building: $name ==="
204198
dotnet build $proj.FullName --configuration Debug 2>&1
205199
if ($LASTEXITCODE -ne 0) {
File renamed without changes.

samples/cs/GettingStarted/README.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

samples/cs/GettingStarted/cross-platform/AudioTranscriptionExample/AudioTranscriptionExample.csproj

Lines changed: 0 additions & 39 deletions
This file was deleted.

samples/cs/GettingStarted/cross-platform/FoundryLocalWebServer/FoundryLocalWebServer.csproj

Lines changed: 0 additions & 33 deletions
This file was deleted.

samples/cs/GettingStarted/cross-platform/FoundrySamplesXPlatform.sln

Lines changed: 0 additions & 53 deletions
This file was deleted.

samples/cs/GettingStarted/cross-platform/HelloFoundryLocalSdk/HelloFoundryLocalSdk.csproj

Lines changed: 0 additions & 32 deletions
This file was deleted.

samples/cs/GettingStarted/cross-platform/ModelManagementExample/ModelManagementExample.csproj

Lines changed: 0 additions & 33 deletions
This file was deleted.

samples/cs/GettingStarted/cross-platform/ToolCallingFoundryLocalSdk/ToolCallingFoundryLocalSdk.csproj

Lines changed: 0 additions & 31 deletions
This file was deleted.

samples/cs/GettingStarted/cross-platform/ToolCallingFoundryLocalWebServer/ToolCallingFoundryLocalWebServer.csproj

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)