Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
Avoid waiting for folder deletions on build. Added separate dirs for …
Browse files Browse the repository at this point in the history
…net40 and net45
  • Loading branch information
kzu committed Apr 17, 2013
1 parent 04d504d commit 82dc6e6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,7 @@ _UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
/*.nupkg

/out40

/out45
39 changes: 16 additions & 23 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,33 +1,26 @@
echo Initializing
rmdir /s /q out
rmdir /s /q out45
rmdir /s /q out40
.nuget\nuget install .\ReactiveSockets\packages.config -OutputDirectory packages

echo Building stable version

md .\out
md .\out\lib
md .\out\lib\net45
md .\out45
md .\out45\lib
md .\out45\lib\net45
msbuild .\ReactiveSockets\ReactiveSockets.csproj /p:Configuration=Release /p:TargetFrameworkVersion=v4.5 /t:Rebuild
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.dll .\out\lib\net45\* /Y
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.xml .\out\lib\net45\* /Y
xcopy .\ReactiveSockets.nuspec out\* /Y
.nuget\nuget pack .\out\ReactiveSockets.nuspec

timeout 1
rmdir /s /q out
timeout 1

xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.dll .\out45\lib\net45\* /Y
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.xml .\out45\lib\net45\* /Y
xcopy .\ReactiveSockets.nuspec .\out45\* /Y
.nuget\nuget pack .\out45\ReactiveSockets.nuspec

echo Building prerelease version

md .\out
md .\out\lib
md .\out\lib\net40
md .\out40
md .\out40\lib
md .\out40\lib\net40
msbuild .\ReactiveSockets\ReactiveSockets.csproj /p:Configuration=Release /p:TargetFrameworkVersion=v4.0 /t:Rebuild
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.dll .\out\lib\net40\* /Y
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.xml .\out\lib\net40\* /Y
xcopy .\ReactiveSockets-rc.nuspec .\out\* /Y
.nuget\nuget pack .\out\ReactiveSockets-rc.nuspec

timeout 1
rmdir /s /q out
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.dll .\out40\lib\net40\* /Y
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.xml .\out40\lib\net40\* /Y
xcopy .\ReactiveSockets-rc.nuspec .\out40\* /Y
.nuget\nuget pack .\out40\ReactiveSockets-rc.nuspec

0 comments on commit 82dc6e6

Please sign in to comment.