forked from DynamicsValue/fake-xrm-easy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pack.ps1
29 lines (21 loc) · 1.36 KB
/
pack.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
param (
[string]$versionSuffix = "",
[string]$targetFrameworks = "net6.0"
)
Write-Host "Running with versionSuffix '$($versionSuffix)'..."
$tempNupkgFolder = './nupkgs'
Write-Host "Checking if temp nupkgs folder '$($tempNupkgFolder)' exists..."
$tempNupkgFolderExists = Test-Path $tempNupkgFolder -PathType Container
if(!($tempNupkgFolderExists))
{
New-Item $tempNupkgFolder -ItemType Directory
}
Write-Host "Deleting temporary nupkgs..."
Get-ChildItem -Path $tempNupkgFolder -Include *.nupkg -File -Recurse | ForEach-Object { $_.Delete()}
# ./pack-configuration.ps1 -configuration "FAKE_XRM_EASY" -versionSuffix $versionSuffix -targetFrameworks $targetFrameworks
./pack-configuration.ps1 -configuration "FAKE_XRM_EASY_2013" -versionSuffix $versionSuffix -targetFrameworks $targetFrameworks
./pack-configuration.ps1 -configuration "FAKE_XRM_EASY_2015" -versionSuffix $versionSuffix -targetFrameworks $targetFrameworks
./pack-configuration.ps1 -configuration "FAKE_XRM_EASY_2016" -versionSuffix $versionSuffix -targetFrameworks $targetFrameworks
./pack-configuration.ps1 -configuration "FAKE_XRM_EASY_365" -versionSuffix $versionSuffix -targetFrameworks $targetFrameworks
./pack-configuration.ps1 -configuration "FAKE_XRM_EASY_9" -versionSuffix $versionSuffix -targetFrameworks $targetFrameworks
Write-Host "Pack All Configurations Succeeded :)" -ForegroundColor Green