123456789101112131415161718 |
- @echo off
- set msbuild=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
- set packages=NuGetPackages
- set snk=%USERPROFILE%\Dropbox\Documents\System.Net.FtpClient-SNK\System.Net.FtpClient.snk
- if not exist "%packages%" md "%packages%"
- rd /q /s System.Net.FtpClient\bin
- :: Build dll without strong name
- rem %msbuild% /p:Configuration=Release System.Net.FtpClient\System.Net.FtpClient.csproj
- :: Build signed DLL
- %msbuild% /p:Configuration=Release /p:SignAssembly=true /p:AssemblyOriginatorKeyFile="%snk%" System.Net.FtpClient\System.Net.FtpClient.csproj
- nuget pack System.Net.FtpClient\System.Net.FtpClient.csproj -Prop Configuration=Release -OutputDirectory "%packages%"
- pause
|