forked from grumpydev/TinyIoC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.ps1
17 lines (17 loc) · 822 Bytes
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$buildDir = ".\build"
$coreDir = $buildDir + "\Core"
$aspnetDir = $buildDir + "\AspNet"
$messengerDir = $buildDir + "\Messenger"
$coreOutputDir = $coreDir + "\Content"
$aspnetOutputDir = $aspnetDir + "\Content"
$messengerOutputDir = $messengerDir + "\Content"
if (test-path $buildDir) { ri -r -fo $buildDir }
mkdir $coreOutputDir | out-null
mkdir $aspnetOutputDir | out-null
mkdir $messengerOutputDir | out-null
copy .\src\TinyIoC\TinyIoC.cs $coreOutputDir
copy .\src\TinyIoC\TinyIoCAspNetExtensions.cs $aspnetOutputDir
copy .\src\TinyIoC\TinyMessenger.cs $messengerOutputDir
.\Tools\nuget\NuGet.exe pack .\TinyIoC.nuspec -b $coreDir -o $coreDir
.\Tools\nuget\NuGet.exe pack .\TinyIoCAspNetExtensions.nuspec -b $aspnetDir -o $aspnetDir
.\Tools\nuget\NuGet.exe pack .\TinyMessenger.nuspec -b $messengerDir -o $messengerDir