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

Commit fdd9c45

Browse files
author
N. Taylor Mullen
committed
Force restore all src projects before global dotnet restore.
1 parent 47c2e49 commit fdd9c45

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

makefile.shade

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ default CONFIGURATION_LOCAL='${E("Configuration")}'
2424

2525
@{
2626
Directory.CreateDirectory(TEST_ARTIFACTS_INITIAL_PACKAGE_DIR);
27-
var projectDirectory = Path.Combine(BASE_DIR_LOCAL, "src", TEST_PROJECT_PACKAGE_NAME);
27+
var srcDirectory = Path.Combine(BASE_DIR_LOCAL, "src");
2828

29-
Dotnet("restore " + projectDirectory);
30-
Dotnet("pack " + projectDirectory + " -o " + TEST_ARTIFACTS_INITIAL_PACKAGE_DIR);
29+
Dotnet("restore " + srcDirectory);
30+
31+
foreach (var directory in Directory.EnumerateDirectories(srcDirectory))
32+
{
33+
Dotnet("pack " + directory + " -o " + TEST_ARTIFACTS_INITIAL_PACKAGE_DIR);
34+
}
3135

3236
// Restore testapps folder locally to ensure all dynamically generated packages have been cached.
3337
var testProjectDirectory = Path.Combine(BASE_DIR_LOCAL, "testapps");

0 commit comments

Comments
 (0)