guneysus
1/3/2017 - 6:54 AM

Simple makefile like build script for Dotnet and nuget packages

Simple makefile like build script for Dotnet and nuget packages

@ECHO off
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"

if /I [%1]==[] goto :default

goto :%1

:pack
nuget pack TeknikProgramlama.Enums.Days.csproj -Build -symbols -OutputDirectory  "C:\Users\guneysu\ekin\my-nuget-packages"
goto :eof

:default
echo Default
goto :eof

rem :clean
rem devenv /out logs\clean.log TeknikProgramlama.Enums.Days.sln /clean
rem goto :eof

rem :build
rem devenv /out logs\build.log TeknikProgramlama.Enums.Days.sln /build
rem MSBuild.exe TeknikProgramlama.Enums.Days.sln /property:Configuration=Debug
rem goto :eof

rem :builddebug
rem devenv /out logs\clean.log TeknikProgramlama.Enums.Days.sln /Project TeknikProgramlama.Enums.Days /build DEBUG /projectconfig DEBUG
rem goto :eof

rem :pack
rem nuget pack TeknikProgramlama.Enums.Days.csproj
rem goto :eof

rem :packsymbols
rem nuget pack TeknikProgramlama.Enums.Days.csproj -Symbols
rem goto :eof

rem :push
rem nuget push *.nupkg 92241a2f-568c-41f6-b656-0a46aa85a013 -Source https://www.myget.org/F/guneysu/api/v2/package/
rem goto :eof

rem :pushsymbols
rem nuget push *.symbols.nupkg 92241a2f-568c-41f6-b656-0a46aa85a013 -Source https://www.myget.org/F/guneysu/api/v2/package/
rem goto :eof

rem :deploy
rem devenv /out logs\deploy.log TeknikProgramlama.Enums.Days.sln /deploy
rem goto :eof


@ECHO OFF
call Makefile.cmd clean

call Makefile.cmd build
call Makefile.cmd builddebug

call Makefile.cmd pack
call Makefile.cmd packsymbols

call Makefile.cmd push
call Makefile.cmd pushsymbols