Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .pipelines/templates/build-cs-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions sdk/cs/src/Microsoft.AI.Foundry.Local.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@
<FoundryLocalCoreVersion Condition="'$(FoundryLocalCoreVersion)' == ''">$([System.Text.RegularExpressions.Regex]::Match('$(_DepsVersionsJson)', '"nuget"\s*:\s*"([^"]+)"').Groups[1].Value)</FoundryLocalCoreVersion>
</PropertyGroup>

<ItemGroup Condition="'$(UseWinML)' != 'true'">
<PackageReference Include="Microsoft.AI.Foundry.Local.Core" Version="$(FoundryLocalCoreVersion)" />
</ItemGroup>

<ItemGroup Condition="'$(UseWinML)' == 'true'">
<PackageReference Include="Microsoft.AI.Foundry.Local.Core.WinML" Version="$(FoundryLocalCoreVersion)" />
</ItemGroup>
Expand Down
Loading