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

Commit 8a460ea

Browse files
committed
Find MSBuild v4 in path
I suspect this may have been the cause of #1
1 parent 35fda5b commit 8a460ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.bat

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ echo Initializing
22
rmdir /s /q out40
33
.nuget\nuget install .\ReactiveSockets\packages.config -OutputDirectory packages
44

5+
for /D %%D in (%SYSTEMROOT%\Microsoft.NET\Framework\v4*) do set msbuild=%%D\MSBuild.exe
6+
57
md .\out40
68
md .\out40\lib
79
md .\out40\lib\net40
8-
msbuild .\ReactiveSockets\ReactiveSockets.csproj /p:Configuration=Release /p:TargetFrameworkVersion=v4.0 /t:Rebuild
10+
%msbuild% .\ReactiveSockets\ReactiveSockets.csproj /p:Configuration=Release /p:TargetFrameworkVersion=v4.0 /t:Rebuild
911
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.dll .\out40\lib\net40\* /Y
1012
xcopy .\ReactiveSockets\bin\Release\ReactiveSockets.xml .\out40\lib\net40\* /Y
1113
xcopy .\ReactiveSockets.nuspec .\out40\* /Y
12-
.nuget\nuget pack .\out40\ReactiveSockets.nuspec
14+
.nuget\nuget pack .\out40\ReactiveSockets.nuspec

0 commit comments

Comments
 (0)