Skip to content

Commit c6602af

Browse files
author
Sheil Kumar
committed
build updates to restore native packages
1 parent 56bea2a commit c6602af

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

azure-pipelines-samples.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ steps:
5858
targetType: inline
5959
script: if (-not (Test-Path "${ENV:programfiles(x86)}\windows Kits\10\include\10.0.18362.0\")) { choco install windows-sdk-10-version-1903-all -y }
6060

61+
62+
- task: PowerShell@2
63+
displayName: 'Restore WinMLSamplesGalleryNative Nuget Packages'
64+
inputs:
65+
targetType: 'inline'
66+
script: |
67+
$src_root_dir = $Env:BUILD_SOURCESDIRECTORY;
68+
$src_dir = [System.IO.Path]::Combine($src_root_dir, 'Samples', 'WinMLSamplesGallery')
69+
$csproj = [System.IO.Path]::Combine($src_dir, 'WinMLSamplesGalleryNative', 'WinMLSamplesGalleryNative.vcxproj')
70+
nuget restore $csproj
71+
6172
- task: VSBuild@1
6273
displayName: 'Build WinMLSamplesGallery'
6374
inputs:

package.config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="jQuery" version="3.1.1" targetFramework="net46" />
4+
<package id="NLog" version="4.3.10" targetFramework="net46" />
5+
</packages>

0 commit comments

Comments
 (0)