File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 9
9
The directory to install the shared framework to.
10
10
. PARAMETER Framework
11
11
The framework directory to copy the shared framework from.
12
+ . PARAMETER RuntimeIdentifier
13
+ The runtime identifier for the shared framework.
12
14
#>
13
15
param (
14
16
[Parameter (Mandatory = $true )]
15
17
$AppRuntimePath ,
16
18
17
19
[Parameter (Mandatory = $true )]
18
20
$InstallDir ,
21
+
22
+ [Parameter (Mandatory = $true )]
23
+ $Framework ,
19
24
20
25
[Parameter (Mandatory = $true )]
21
- $Framework )
26
+ $RuntimeIdentifier )
22
27
23
28
$ErrorActionPreference = ' Stop'
24
29
$ProgressPreference = ' SilentlyContinue' # Workaround PowerShell/PowerShell#2138
44
49
Get-ChildItem - Path " .\tmpRuntime" - Recurse
45
50
46
51
Write-Host " Copying managed files to $InstallDir "
47
- Copy-Item - Path " .\tmpRuntime\runtimes\win-x64 \lib\$Framework \*" $InstallDir
52
+ Copy-Item - Path " .\tmpRuntime\runtimes\$RuntimeIdentifier \lib\$Framework \*" $InstallDir
48
53
Write-Host " Copying native files to $InstallDir "
49
- Copy-Item - Path " .\tmpRuntime\runtimes\win-x64 \native\*" $InstallDir
54
+ Copy-Item - Path " .\tmpRuntime\runtimes\$RuntimeIdentifier \native\*" $InstallDir
You can’t perform that action at this time.
0 commit comments