diff --git a/.pipelines/templates/build-cs-steps.yml b/.pipelines/templates/build-cs-steps.yml index 8d2893532..09f2235b3 100644 --- a/.pipelines/templates/build-cs-steps.yml +++ b/.pipelines/templates/build-cs-steps.yml @@ -122,9 +122,11 @@ steps: inputs: targetType: inline script: | + # empty RuntimeIdentifier prevents host machine from auto-injecting its RID into the build dotnet build "$(repoRoot)/sdk/cs/src/Microsoft.AI.Foundry.Local.csproj" ` --no-restore --configuration Release ` - /p:UseWinML=${{ parameters.isWinML }} + /p:UseWinML=${{ parameters.isWinML }} ` + /p:RuntimeIdentifier="" if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } # Discover target framework directory diff --git a/sdk/cs/src/Microsoft.AI.Foundry.Local.csproj b/sdk/cs/src/Microsoft.AI.Foundry.Local.csproj index 384b44151..67877c962 100644 --- a/sdk/cs/src/Microsoft.AI.Foundry.Local.csproj +++ b/sdk/cs/src/Microsoft.AI.Foundry.Local.csproj @@ -103,6 +103,10 @@ $([System.Text.RegularExpressions.Regex]::Match('$(_DepsVersionsJson)', '"nuget"\s*:\s*"([^"]+)"').Groups[1].Value) + + + +