-
Notifications
You must be signed in to change notification settings - Fork 414
Expand file tree
/
Copy pathrun.ps1
More file actions
18 lines (15 loc) · 740 Bytes
/
Copy pathrun.ps1
File metadata and controls
18 lines (15 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Licensed under MIT No Attribution, see LICENSE file at the root.
$ErrorActionPreference = 'Stop'
$repositoryRoot = (Resolve-Path (Join-Path $PSScriptRoot '..\..\..')).Path
$sampleProject = Join-Path $PSScriptRoot 'GettingStartedSample.csproj'
$restoreId = [DateTime]::UtcNow.ToString('yyyyMMddHHmmssfff')
$restorePackages = Join-Path $repositoryRoot "Artifacts\GettingStartedSample\packages\$restoreId"
# The sample's local build dependency packs and restores the latest package before compilation.
& dotnet run `
--project $sampleProject `
--configuration Debug `
-p:Platform=LocalPackages `
"-p:RestorePackagesPath=$restorePackages"
if ($LASTEXITCODE -ne 0) {
throw "Running the getting-started sample failed."
}