Open
Description
Description
Templating support in paket.dependencies
and paket.references
Reason
There are always occasions when 32/64 bit builds are required and only minor changes are required in the build step. Paket + Cake provides great combo in this regard and currently, i am following naive replace approach for that
Eg: paket.dependencies
source https://api.nuget.org/v3/index.json
framework: >= net40
nuget Cake
http http://192.168.0.115:12345/api/v1/artifact/{BUILD_NO}/shared/infrastructure/{BUILD_ARCH}/Core.DB/SequelMed.Core.dll
http http://192.168.0.115:12345/api/v1/artifact/{BUILD_NO}/shared/infrastructure/{BUILD_ARCH}/Core.DB/Oracle.DataAccess.dll
Eg: paket.var
BUILD_NO 1593
BUILD_ARCH 32bit
So, i generated paket.var
file dynamically in build process with Cake and i have following build.bat
file which carry this whole process
@echo off
cls
if exist paket.dependencies (
copy paket.dependencies paket.dependencies.bkp >nul
)
.paket\paket.ext.exe
.paket\paket.bootstrapper.exe
if errorlevel 1 (
del /f paket.dependencies
ren paket.dependencies.bkp paket.dependencies
exit /b %errorlevel%
)
.paket\paket.exe install
.paket\paket.exe update
if errorlevel 1 (
del /f paket.dependencies
ren paket.dependencies.bkp paket.dependencies
exit /b %errorlevel%
)
packages\Cake\Cake.exe build.cake %*
del /f paket.dependencies
ren paket.dependencies.bkp paket.dependencies
Following this pattern, i can add 32/64 refs in the Project in a simple way. If there would be something in Paket, it would be really great.
Thanks