Skip to content

Commit 6811b13

Browse files
author
Milly Wei (from Dev Box)
committed
CI/CD error
1 parent 378100c commit 6811b13

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

AIDevGallery/AIDevGallery.csproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,11 @@
355355
</ItemGroup>
356356

357357
<!-- Exclude duplicate onnxruntime dlls from Microsoft.ML.OnnxRuntime.Foundry to avoid APPX1101 errors -->
358-
<ItemGroup>
359-
<ResolvedFileToPublish Remove="@(ResolvedFileToPublish)" Condition="'%(ResolvedFileToPublish.NuGetPackageId)' == 'Microsoft.ML.OnnxRuntime.Foundry' And '%(ResolvedFileToPublish.AssetType)' == 'native'" />
360-
</ItemGroup>
358+
<Target Name="RemoveDuplicateOnnxRuntimeDlls" AfterTargets="ResolvePackageAssets" BeforeTargets="ComputeFilesToPublish">
359+
<ItemGroup>
360+
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" Condition="$([System.String]::Copy('%(ReferenceCopyLocalPaths.NuGetPackageId)').Equals('Microsoft.ML.OnnxRuntime.Foundry')) And ($([System.String]::Copy('%(ReferenceCopyLocalPaths.Filename)').Equals('onnxruntime')) Or $([System.String]::Copy('%(ReferenceCopyLocalPaths.Filename)').Equals('onnxruntime_providers_shared')))" />
361+
</ItemGroup>
362+
</Target>
361363

362364
<ItemGroup>
363365
<Page Update="Samples\WCRAPIs\RestyleImage.xaml">

0 commit comments

Comments
 (0)