File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 10
10
[string ]$Configuration = " Debug"
11
11
)
12
12
13
+ Function Test-DotNetRestore
14
+ {
15
+ param (
16
+ [string ] $projectPath
17
+ )
18
+ Test-Path (Join-Path $projectPath ' project.lock.json' )
19
+ }
20
+
13
21
$solutionDir = Split-Path $MyInvocation.InvocationName
14
22
if (-not (Test-Path " $solutionDir /global.json" ))
15
23
{
@@ -33,14 +41,24 @@ if ($Framework -eq "netstandard1.6")
33
41
34
42
if ($build )
35
43
{
44
+
45
+ if (-not (Test-DotNetRestore ((Join-Path $solutionDir Engine))))
46
+ {
47
+ throw " Please restore project Engine"
48
+ }
36
49
.\New-StronglyTypedCsFileForResx.ps1 Engine
37
50
Push-Location Engine\
38
- dotnet build
51
+ dotnet build -- framework $Framework -- configuration $Configuration
39
52
Pop-Location
40
53
54
+
55
+ if (-not (Test-DotNetRestore ((Join-Path $solutionDir Rules))))
56
+ {
57
+ throw " Please restore project Rules"
58
+ }
41
59
.\New-StronglyTypedCsFileForResx.ps1 Rules
42
60
Push-Location Rules\
43
- dotnet build
61
+ dotnet build -- framework $Framework -- configuration $Configuration
44
62
Pop-Location
45
63
46
64
Function CopyToDestinationDir ($itemsToCopy , $destination )
You can’t perform that action at this time.
0 commit comments