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

Commit 82dc6e6

Browse files
committed
Avoid waiting for folder deletions on build. Added separate dirs for net40 and net45
1 parent 04d504d commit 82dc6e6

File tree

2 files changed

+20
-23
lines changed

2 files changed

+20
-23
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,7 @@ _UpgradeReport_Files/
107107
Backup*/
108108
UpgradeLog*.XML
109109
/*.nupkg
110+
111+
/out40
112+
113+
/out45

build.bat

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
11
echo Initializing
2-
rmdir /s /q out
2+
rmdir /s /q out45
3+
rmdir /s /q out40
34
.nuget\nuget install .\ReactiveSockets\packages.config -OutputDirectory packages
45

56
echo Building stable version
67

7-
md .\out
8-
md .\out\lib
9-
md .\out\lib\net45
8+
md .\out45
9+
md .\out45\lib
10+
md .\out45\lib\net45
1011
msbuild .\ReactiveSockets\ReactiveSockets.csproj /p:Configuration=Release /p:TargetFrameworkVersion=v4.5 /t:Rebuild
11-
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.dll .\out\lib\net45\* /Y
12-
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.xml .\out\lib\net45\* /Y
13-
xcopy .\ReactiveSockets.nuspec out\* /Y
14-
.nuget\nuget pack .\out\ReactiveSockets.nuspec
15-
16-
timeout 1
17-
rmdir /s /q out
18-
timeout 1
19-
12+
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.dll .\out45\lib\net45\* /Y
13+
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.xml .\out45\lib\net45\* /Y
14+
xcopy .\ReactiveSockets.nuspec .\out45\* /Y
15+
.nuget\nuget pack .\out45\ReactiveSockets.nuspec
2016

2117
echo Building prerelease version
2218

23-
md .\out
24-
md .\out\lib
25-
md .\out\lib\net40
19+
md .\out40
20+
md .\out40\lib
21+
md .\out40\lib\net40
2622
msbuild .\ReactiveSockets\ReactiveSockets.csproj /p:Configuration=Release /p:TargetFrameworkVersion=v4.0 /t:Rebuild
27-
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.dll .\out\lib\net40\* /Y
28-
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.xml .\out\lib\net40\* /Y
29-
xcopy .\ReactiveSockets-rc.nuspec .\out\* /Y
30-
.nuget\nuget pack .\out\ReactiveSockets-rc.nuspec
31-
32-
timeout 1
33-
rmdir /s /q out
23+
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.dll .\out40\lib\net40\* /Y
24+
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.xml .\out40\lib\net40\* /Y
25+
xcopy .\ReactiveSockets-rc.nuspec .\out40\* /Y
26+
.nuget\nuget pack .\out40\ReactiveSockets-rc.nuspec

0 commit comments

Comments
 (0)