Set DML package name correctly in CI (#18405)

### Description
<!-- Describe your changes. -->
Set DML package name correctly so the build doesn't try and include mobile targets. 

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Fix packaging pipeline.
This commit is contained in:
Scott McKay 2023-11-14 14:01:59 +10:00 committed by GitHub
parent 8ff41aea09
commit 897c1c1f05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -1094,7 +1094,6 @@ stages:
DoNugetPack : 'true'
DoCompliance: 'false'
DoEsrp: ${{ parameters.DoEsrp }}
OrtPackageId: 'Microsoft.ML.OnnxRuntime.DirectML'
NuPackScript: |
msbuild $(Build.SourcesDirectory)\csharp\OnnxRuntime.CSharp.proj /p:Configuration=RelWithDebInfo /t:CreatePackage /p:OrtPackageId=Microsoft.ML.OnnxRuntime.DirectML /p:IsReleaseBuild=${{ parameters.IsReleaseBuild }}
copy $(Build.SourcesDirectory)\csharp\src\Microsoft.ML.OnnxRuntime\bin\RelWithDebInfo\*.nupkg $(Build.ArtifactStagingDirectory)

View file

@ -15,7 +15,7 @@ parameters:
EnvSetupScript: 'setup_env.bat'
AgentPool: 'onnxruntime-Win-CPU-2022'
AgentDemands: []
OrtPackageId: Microsoft.ML.OnnxRuntime
OrtPackageId: Microsoft.ML.OnnxRuntime.DirectML
BuildConfigurations: ['RelWithDebInfo'] # Options: Debug, RelWithDebInfo
RunTests : 'true'
EnableLto: true