@@ -27,28 +27,40 @@ if($ConfigurationName -like "Debug*")
27
27
Write-Host " Copying files from $TargetDir to $DestinationFolder "
28
28
Copy-Item " $TargetDir \*.dll" - Destination " $DestinationFolder "
29
29
Copy-Item " $TargetDir \*help.xml" - Destination " $DestinationFolder "
30
- if ($ConfigurationName -like " Debug15" )
31
- {
32
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellSP2013.psd1" - Destination " $DestinationFolder "
33
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.SP2013.Commands.Format.ps1xml" - Destination " $DestinationFolder "
34
- } elseif ($ConfigurationName -like " Debug16" )
30
+ switch ($ConfigurationName )
35
31
{
36
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnPSPowerShellP2016.psd1" - Destination " $DestinationFolder "
37
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.SP2016.Commands.Format.ps1xml" - Destination " $DestinationFolder "
38
- } else {
39
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellOnline.psd1" - Destination " $DestinationFolder "
40
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.Online.Commands.Format.ps1xml" - Destination " $DestinationFolder "
32
+ " Debug15" {
33
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellSP2013.psd1" - Destination " $DestinationFolder "
34
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.SP2013.Commands.Format.ps1xml" - Destination " $DestinationFolder "
35
+ }
36
+ " Debug16" {
37
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellSP2016.psd1" - Destination " $DestinationFolder "
38
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.SP2016.Commands.Format.ps1xml" - Destination " $DestinationFolder "
39
+ }
40
+ " Debug" {
41
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellOnline.psd1" - Destination " $DestinationFolder "
42
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.Online.Commands.Format.ps1xml" - Destination " $DestinationFolder "
43
+ }
41
44
}
42
45
} elseif ($ConfigurationName -like " Release*" )
43
46
{
44
47
$documentsFolder = [environment ]::getfolderpath(" mydocuments" );
45
-
46
- if ($ConfigurationName -like " Release15" )
48
+ switch ($ConfigurationName )
47
49
{
48
- $DestinationFolder = " $documentsFolder \WindowsPowerShell\Modules\SharePointPnP.PowerShell.V15.Commands"
49
- } else {
50
- $DestinationFolder = " $documentsFolder \WindowsPowerShell\Modules\SharePointPnP.PowerShell.V16.Commands"
50
+ " Release15"
51
+ {
52
+ $DestinationFolder = " $documentsFolder \WindowsPowerShell\Modules\SharePointPnPPowerShellSP2013"
53
+ }
54
+ " Release16"
55
+ {
56
+ $DestinationFolder = " $documentsFolder \WindowsPowerShell\Modules\SharePointPnPPowerShellSP2016"
57
+ }
58
+ " Release"
59
+ {
60
+ $DestinationFolder = " $documentsFolder \WindowsPowerShell\Modules\SharePointPnPPowerShellOnline"
61
+ }
51
62
}
63
+
52
64
# Module folder there?
53
65
if (Test-Path $DestinationFolder )
54
66
{
@@ -63,17 +75,20 @@ if($ConfigurationName -like "Debug*")
63
75
Write-Host " Copying files from $TargetDir to $DestinationFolder "
64
76
Copy-Item " $TargetDir \*.dll" - Destination " $DestinationFolder "
65
77
Copy-Item " $TargetDir \*help.xml" - Destination " $DestinationFolder "
66
- if ($ConfigurationName -like " Release15 " )
78
+ switch ($ConfigurationName )
67
79
{
68
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellSP2013.psd1" - Destination " $DestinationFolder "
69
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.SP2013.Commands.Format.ps1xml" - Destination " $DestinationFolder "
70
- } elseif ($ConfigurationName -like " Release16" )
71
- {
72
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellSP2016.psd1" - Destination " $DestinationFolder "
73
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.SP2016.Commands.Format.ps1xml" - Destination " $DestinationFolder "
74
- } else {
75
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellOnline.psd1" - Destination " $DestinationFolder "
76
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.Online.Commands.Format.ps1xml" - Destination " $DestinationFolder "
80
+ " Release15" {
81
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellSP2013.psd1" - Destination " $DestinationFolder "
82
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.SP2013.Commands.Format.ps1xml" - Destination " $DestinationFolder "
83
+ }
84
+ " Release16" {
85
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellSP2016.psd1" - Destination " $DestinationFolder "
86
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.SP2016.Commands.Format.ps1xml" - Destination " $DestinationFolder "
87
+ }
88
+ " Release" {
89
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellOnline.psd1" - Destination " $DestinationFolder "
90
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.Online.Commands.Format.ps1xml" - Destination " $DestinationFolder "
91
+ }
77
92
}
78
93
}
79
94
0 commit comments