Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit bec8db3

Browse files
committed
[codingtools] Building with msbuild requires manually restoring NuGet dependencies
1 parent e71c22e commit bec8db3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

codingtools/build_bam.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,21 @@
55
import subprocess
66
import sys
77

8+
def restore_nuget():
9+
print >>sys.stdout, "Restoring NuGet packages"
10+
sys.stdout.flush()
11+
build_args = []
12+
build_args.append("nuget")
13+
build_args.append("restore")
14+
subprocess.check_call(build_args)
15+
816
def build_bam(build_dir, configuration='Release', coveritypath=None, rebuild=False):
917
current_dir = os.getcwd()
1018
try:
1119
os.chdir(build_dir)
1220
print >>sys.stdout, "Starting build in %s" % build_dir
1321
sys.stdout.flush()
22+
restore_nuget()
1423
build_args = []
1524
if coveritypath:
1625
os.environ["PATH"] += os.pathsep + coveritypath

0 commit comments

Comments
 (0)