-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build-packages.ps1
18 lines (12 loc) · 936 Bytes
/
build-packages.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Add-Type -assembly "system.io.compression.filesystem"
cd .\.nuget
$moduleName = "FeatureSwitch.EPiServer"
$source = $PSScriptRoot + "\" + $moduleName + "\modules\_protected\" + $moduleName
$destination = $PSScriptRoot + "\" + $moduleName + "\" + $moduleName + ".zip"
If(Test-path $destination) {Remove-item $destination}
[io.compression.zipfile]::CreateFromDirectory($Source, $destination)
.\nuget.exe pack ..\FeatureSwitch\FeatureSwitch.csproj -Properties Configuration=Release -IncludeReferencedProjects
.\nuget.exe pack ..\FeatureSwitch.AspNet.Mvc5\FeatureSwitch.AspNet.Mvc5.csproj -Properties Configuration=Release -IncludeReferencedProjects
.\nuget.exe pack ..\FeatureSwitch.StructureMap\FeatureSwitch.StructureMap.csproj -Properties Configuration=Release -IncludeReferencedProjects
.\nuget.exe pack ..\FeatureSwitch.EPiServer\FeatureSwitch.EPiServer.csproj -Properties Configuration=Release -IncludeReferencedProjects
cd ..\