Adding native dlls in custom build step

This commit is contained in:
Louis DeJardin 2014-06-20 21:59:11 -07:00
parent 9e4bc60205
commit 1f420837f5
3 changed files with 17 additions and 1 deletions

View File

@ -23,4 +23,4 @@ CALL packages\KoreBuild\build\kvm install default -svrc50 -x86
:run
CALL packages\KoreBuild\build\kvm use default -svr50 -x86
packages\Sake\tools\Sake.exe -I packages\KoreBuild\build -f makefile.shade %*
packages\Sake\tools\Sake.exe -I build -I packages\KoreBuild\build -f makefile.shade %*

15
build/_custom-goals.shade Normal file
View File

@ -0,0 +1,15 @@
use assembly="System.IO.Compression.FileSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
use assembly="System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
use namespace="System.IO"
use namespace="System.IO.Compression"
use namespace="System.Net"
#add-files target="compile"
var each='var nupkgFile in Files.Include("artifacts\\build\\Microsoft.AspNet.Server.Kestrel.*.nupkg").Where(x=>!x.EndsWith("symbols.nupkg"))'
log info='Adding content to ${nupkgFile}'
var archive='${ZipFile.Open(nupkgFile, ZipArchiveMode.Update)}'
@{
archive.CreateEntryFromFile("src/Microsoft.AspNet.Server.Kestrel/amd64/libuv.dll", "amd64/libuv.dll");
archive.CreateEntryFromFile("src/Microsoft.AspNet.Server.Kestrel/x86/libuv.dll", "x86/libuv.dll");
archive.Dispose();
}

View File

@ -5,3 +5,4 @@ var AUTHORS='Microsoft'
use-standard-lifecycle
k-standard-goals
custom-goals