Skip to content

Commit 5b8042b

Browse files
committed
Build & Docker:
* Replaced Cake with Nuke * Moved build scripts, artifacts and packages to /build directory * New solution Smartstore.Tools.sln (containing Windows specific stuff)
1 parent 01b4a59 commit 5b8042b

28 files changed

+610
-282
lines changed

.dockerignore

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ LICENSE
2929
README.md
3030

3131

32+
# Build
33+
# -------------------------------------
34+
35+
build/artifacts
36+
build/packages
3237

3338
# App specific
3439
# -------------------------------------

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,12 @@ logs/
281281
/tools/packages.config*
282282

283283

284+
###########
285+
## Build
286+
###########
287+
build/packages
288+
.nuke/temp
289+
284290
###########
285291
## Symlinks
286292
###########

.nuke/build.schema.json

+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "Build Schema",
4+
"$ref": "#/definitions/build",
5+
"definitions": {
6+
"build": {
7+
"type": "object",
8+
"properties": {
9+
"Configuration": {
10+
"type": "string",
11+
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)",
12+
"enum": [
13+
"Debug",
14+
"DebugNoRazorCompile",
15+
"Release"
16+
]
17+
},
18+
"Continue": {
19+
"type": "boolean",
20+
"description": "Indicates to continue a previously failed build attempt"
21+
},
22+
"Edition": {
23+
"type": "string"
24+
},
25+
"Help": {
26+
"type": "boolean",
27+
"description": "Shows the help text for this build assembly"
28+
},
29+
"Host": {
30+
"type": "string",
31+
"description": "Host for execution. Default is 'automatic'",
32+
"enum": [
33+
"AppVeyor",
34+
"AzurePipelines",
35+
"Bamboo",
36+
"Bitrise",
37+
"GitHubActions",
38+
"GitLab",
39+
"Jenkins",
40+
"Rider",
41+
"SpaceAutomation",
42+
"TeamCity",
43+
"Terminal",
44+
"TravisCI",
45+
"VisualStudio",
46+
"VSCode"
47+
]
48+
},
49+
"NoLogo": {
50+
"type": "boolean",
51+
"description": "Disables displaying the NUKE logo"
52+
},
53+
"Partition": {
54+
"type": "string",
55+
"description": "Partition to use on CI"
56+
},
57+
"Plan": {
58+
"type": "boolean",
59+
"description": "Shows the execution plan (HTML)"
60+
},
61+
"Profile": {
62+
"type": "array",
63+
"description": "Defines the profiles to load",
64+
"items": {
65+
"type": "string"
66+
}
67+
},
68+
"Root": {
69+
"type": "string",
70+
"description": "Root directory during build execution"
71+
},
72+
"Runtime": {
73+
"type": "string"
74+
},
75+
"Skip": {
76+
"type": "array",
77+
"description": "List of targets to be skipped. Empty list skips all dependencies",
78+
"items": {
79+
"type": "string",
80+
"enum": [
81+
"Clean",
82+
"Compile",
83+
"Deploy",
84+
"Restore",
85+
"Test",
86+
"Zip"
87+
]
88+
}
89+
},
90+
"Solution": {
91+
"type": "string",
92+
"description": "Path to a solution file that is automatically loaded"
93+
},
94+
"Target": {
95+
"type": "array",
96+
"description": "List of targets to be invoked. Default is '{default_target}'",
97+
"items": {
98+
"type": "string",
99+
"enum": [
100+
"Clean",
101+
"Compile",
102+
"Deploy",
103+
"Restore",
104+
"Test",
105+
"Zip"
106+
]
107+
}
108+
},
109+
"Verbosity": {
110+
"type": "string",
111+
"description": "Logging verbosity during build execution. Default is 'Normal'",
112+
"enum": [
113+
"Minimal",
114+
"Normal",
115+
"Quiet",
116+
"Verbose"
117+
]
118+
}
119+
}
120+
}
121+
}
122+
}

.nuke/parameters.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "./build.schema.json",
3+
"Solution": "Smartstore.sln"
4+
}

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
77

88
# Copy solution and source
9-
ARG SOLUTION=Smartstore.Min.sln
9+
ARG SOLUTION=Smartstore.sln
1010
WORKDIR /app
1111
COPY $SOLUTION ./
1212
COPY src/ ./src
13+
COPY test/ ./test
1314

1415
# Create Modules dir if missing
1516
RUN mkdir /app/src/Smartstore.Web/Modules -p -v

Smartstore.Min.sln

-244
This file was deleted.

Smartstore.Tools.sln

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Smartstore.Core", "src\Smartstore.Core\Smartstore.Core.csproj", "{163E349C-9F36-4604-8F19-49F43DB1899B}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Smartstore", "src\Smartstore\Smartstore.csproj", "{2DEC17CE-3292-4F40-AC27-2F17ECABC2B2}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4C0385CB-1ABE-4569-AA9D-0C3DCBE44479}"
11+
ProjectSection(SolutionItems) = preProject
12+
src\Smartstore.Modules\module.schema.json = src\Smartstore.Modules\module.schema.json
13+
EndProjectSection
14+
EndProject
15+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{1DE93C7F-22CE-462C-BB6E-7282F4403F2E}"
16+
ProjectSection(SolutionItems) = preProject
17+
src\Smartstore.Build\Smartstore.Common.props = src\Smartstore.Build\Smartstore.Common.props
18+
src\Smartstore.Build\Smartstore.Common.targets = src\Smartstore.Build\Smartstore.Common.targets
19+
src\Smartstore.Build\Smartstore.Module.props = src\Smartstore.Build\Smartstore.Module.props
20+
src\Smartstore.Build\Smartstore.Module.targets = src\Smartstore.Build\Smartstore.Module.targets
21+
src\Smartstore.Build\Smartstore.Razor.props = src\Smartstore.Build\Smartstore.Razor.props
22+
EndProjectSection
23+
EndProject
24+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{5135A2B0-95B5-46AD-906A-70A2364B892B}"
25+
EndProject
26+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Smartstore.Packager", "tools\Smartstore.Packager\Smartstore.Packager.csproj", "{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}"
27+
EndProject
28+
Global
29+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
30+
Debug|Any CPU = Debug|Any CPU
31+
DebugNoRazorCompile|Any CPU = DebugNoRazorCompile|Any CPU
32+
Release|Any CPU = Release|Any CPU
33+
EndGlobalSection
34+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
35+
{163E349C-9F36-4604-8F19-49F43DB1899B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
36+
{163E349C-9F36-4604-8F19-49F43DB1899B}.Debug|Any CPU.Build.0 = Debug|Any CPU
37+
{163E349C-9F36-4604-8F19-49F43DB1899B}.DebugNoRazorCompile|Any CPU.ActiveCfg = Debug|Any CPU
38+
{163E349C-9F36-4604-8F19-49F43DB1899B}.DebugNoRazorCompile|Any CPU.Build.0 = Debug|Any CPU
39+
{163E349C-9F36-4604-8F19-49F43DB1899B}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{163E349C-9F36-4604-8F19-49F43DB1899B}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{2DEC17CE-3292-4F40-AC27-2F17ECABC2B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{2DEC17CE-3292-4F40-AC27-2F17ECABC2B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{2DEC17CE-3292-4F40-AC27-2F17ECABC2B2}.DebugNoRazorCompile|Any CPU.ActiveCfg = Debug|Any CPU
44+
{2DEC17CE-3292-4F40-AC27-2F17ECABC2B2}.DebugNoRazorCompile|Any CPU.Build.0 = Debug|Any CPU
45+
{2DEC17CE-3292-4F40-AC27-2F17ECABC2B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
46+
{2DEC17CE-3292-4F40-AC27-2F17ECABC2B2}.Release|Any CPU.Build.0 = Release|Any CPU
47+
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
48+
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}.Debug|Any CPU.Build.0 = Debug|Any CPU
49+
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}.DebugNoRazorCompile|Any CPU.ActiveCfg = Debug|Any CPU
50+
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}.DebugNoRazorCompile|Any CPU.Build.0 = Debug|Any CPU
51+
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}.Release|Any CPU.Build.0 = Release|Any CPU
53+
EndGlobalSection
54+
GlobalSection(SolutionProperties) = preSolution
55+
HideSolutionNode = FALSE
56+
EndGlobalSection
57+
GlobalSection(NestedProjects) = preSolution
58+
{1DE93C7F-22CE-462C-BB6E-7282F4403F2E} = {4C0385CB-1ABE-4569-AA9D-0C3DCBE44479}
59+
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978} = {5135A2B0-95B5-46AD-906A-70A2364B892B}
60+
EndGlobalSection
61+
GlobalSection(ExtensibilityGlobals) = postSolution
62+
SolutionGuid = {A0A0B995-5D0B-458E-BCC0-1071B76949D1}
63+
EndGlobalSection
64+
EndGlobal

Smartstore.sln

+12-17
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ EndProject
1212
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Smartstore", "src\Smartstore\Smartstore.csproj", "{2DEC17CE-3292-4F40-AC27-2F17ECABC2B2}"
1313
EndProject
1414
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Modules", "Modules", "{E5C1AA43-6B44-4EFA-8DE9-6070EE007CE3}"
15+
ProjectSection(SolutionItems) = preProject
16+
src\Smartstore.Modules\module.schema.json = src\Smartstore.Modules\module.schema.json
17+
EndProjectSection
1518
EndProject
1619
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{B3391994-AE0F-4C8C-AE8E-968F6013B4B6}"
1720
EndProject
@@ -31,12 +34,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Smartstore.Web.Tests", "tes
3134
EndProject
3235
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Smartstore.DevTools", "src\Smartstore.Modules\Smartstore.DevTools\Smartstore.DevTools.csproj", "{62C64D0B-D937-40B2-B89D-198B2409FC84}"
3336
EndProject
34-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4C0385CB-1ABE-4569-AA9D-0C3DCBE44479}"
35-
ProjectSection(SolutionItems) = preProject
36-
src\Smartstore.Modules\module.schema.json = src\Smartstore.Modules\module.schema.json
37-
EndProjectSection
38-
EndProject
39-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{1DE93C7F-22CE-462C-BB6E-7282F4403F2E}"
37+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{5135A2B0-95B5-46AD-906A-70A2364B892B}"
4038
ProjectSection(SolutionItems) = preProject
4139
src\Smartstore.Build\Smartstore.Common.props = src\Smartstore.Build\Smartstore.Common.props
4240
src\Smartstore.Build\Smartstore.Common.targets = src\Smartstore.Build\Smartstore.Common.targets
@@ -45,8 +43,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{1DE93C7F
4543
src\Smartstore.Build\Smartstore.Razor.props = src\Smartstore.Build\Smartstore.Razor.props
4644
EndProjectSection
4745
EndProject
48-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{5135A2B0-95B5-46AD-906A-70A2364B892B}"
49-
EndProject
5046
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Smartstore.ModuleBuilder", "src\Smartstore.Build\Smartstore.ModuleBuilder\src\Smartstore.ModuleBuilder.csproj", "{23B334CE-7FFC-464E-A0A8-FFCB084E8F24}"
5147
EndProject
5248
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Smartstore.Forums", "src\Smartstore.Modules\Smartstore.Forums\Smartstore.Forums.csproj", "{BB9E738C-0785-497F-9391-2B4CA242B567}"
@@ -81,7 +77,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Smartstore.Google.MerchantC
8177
EndProject
8278
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Smartstore.AmazonPay", "src\Smartstore.Modules\Smartstore.AmazonPay\Smartstore.AmazonPay.csproj", "{6A9FA9E0-029C-4565-BD2E-10A209D78031}"
8379
EndProject
84-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Smartstore.Packager", "tools\Smartstore.Packager\Smartstore.Packager.csproj", "{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}"
80+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Smartstore.Build", "src\Smartstore.Build\Smartstore.Build\Smartstore.Build.csproj", "{48F4799B-9824-469C-B1A4-7050F85163CA}"
8581
EndProject
8682
Global
8783
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -258,12 +254,12 @@ Global
258254
{6A9FA9E0-029C-4565-BD2E-10A209D78031}.DebugNoRazorCompile|Any CPU.Build.0 = Debug|Any CPU
259255
{6A9FA9E0-029C-4565-BD2E-10A209D78031}.Release|Any CPU.ActiveCfg = Release|Any CPU
260256
{6A9FA9E0-029C-4565-BD2E-10A209D78031}.Release|Any CPU.Build.0 = Release|Any CPU
261-
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
262-
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}.Debug|Any CPU.Build.0 = Debug|Any CPU
263-
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}.DebugNoRazorCompile|Any CPU.ActiveCfg = Debug|Any CPU
264-
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}.DebugNoRazorCompile|Any CPU.Build.0 = Debug|Any CPU
265-
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}.Release|Any CPU.ActiveCfg = Release|Any CPU
266-
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978}.Release|Any CPU.Build.0 = Release|Any CPU
257+
{48F4799B-9824-469C-B1A4-7050F85163CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
258+
{48F4799B-9824-469C-B1A4-7050F85163CA}.Debug|Any CPU.Build.0 = Debug|Any CPU
259+
{48F4799B-9824-469C-B1A4-7050F85163CA}.DebugNoRazorCompile|Any CPU.ActiveCfg = Debug|Any CPU
260+
{48F4799B-9824-469C-B1A4-7050F85163CA}.DebugNoRazorCompile|Any CPU.Build.0 = Debug|Any CPU
261+
{48F4799B-9824-469C-B1A4-7050F85163CA}.Release|Any CPU.ActiveCfg = Release|Any CPU
262+
{48F4799B-9824-469C-B1A4-7050F85163CA}.Release|Any CPU.Build.0 = Release|Any CPU
267263
EndGlobalSection
268264
GlobalSection(SolutionProperties) = preSolution
269265
HideSolutionNode = FALSE
@@ -276,7 +272,6 @@ Global
276272
{253DECF2-2ECA-4A90-955B-9299CCEC1363} = {82A38DDA-C944-4C15-AF43-86732F8ED15A}
277273
{EAA90B11-ED40-4AB1-8027-45226471F9EE} = {B3391994-AE0F-4C8C-AE8E-968F6013B4B6}
278274
{62C64D0B-D937-40B2-B89D-198B2409FC84} = {E5C1AA43-6B44-4EFA-8DE9-6070EE007CE3}
279-
{1DE93C7F-22CE-462C-BB6E-7282F4403F2E} = {4C0385CB-1ABE-4569-AA9D-0C3DCBE44479}
280275
{23B334CE-7FFC-464E-A0A8-FFCB084E8F24} = {5135A2B0-95B5-46AD-906A-70A2364B892B}
281276
{BB9E738C-0785-497F-9391-2B4CA242B567} = {E5C1AA43-6B44-4EFA-8DE9-6070EE007CE3}
282277
{944E4667-6CA2-4AD6-B9B0-F8E8C7903473} = {E5C1AA43-6B44-4EFA-8DE9-6070EE007CE3}
@@ -294,7 +289,7 @@ Global
294289
{290CAB7D-A6AD-4605-A59D-91A1921213E2} = {E5C1AA43-6B44-4EFA-8DE9-6070EE007CE3}
295290
{BBB5935F-1E33-4D47-9B3E-7E92F3A4E54A} = {E5C1AA43-6B44-4EFA-8DE9-6070EE007CE3}
296291
{6A9FA9E0-029C-4565-BD2E-10A209D78031} = {E5C1AA43-6B44-4EFA-8DE9-6070EE007CE3}
297-
{4BFFDE97-4EC0-423E-91C6-A202FD0A5978} = {5135A2B0-95B5-46AD-906A-70A2364B892B}
292+
{48F4799B-9824-469C-B1A4-7050F85163CA} = {5135A2B0-95B5-46AD-906A-70A2364B892B}
298293
EndGlobalSection
299294
GlobalSection(ExtensibilityGlobals) = postSolution
300295
SolutionGuid = {A0A0B995-5D0B-458E-BCC0-1071B76949D1}

build.cmd

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:; set -eo pipefail
2+
:; SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
3+
:; ${SCRIPT_DIR}/build.sh "$@"
4+
:; exit $?
5+
6+
@ECHO OFF
7+
powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0build.ps1" %*

build.ps1

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
[CmdletBinding()]
2+
Param(
3+
[Parameter(Position=0,Mandatory=$false,ValueFromRemainingArguments=$true)]
4+
[string[]]$BuildArguments
5+
)
6+
7+
Write-Output "PowerShell $($PSVersionTable.PSEdition) version $($PSVersionTable.PSVersion)"
8+
9+
Set-StrictMode -Version 2.0; $ErrorActionPreference = "Stop"; $ConfirmPreference = "None"; trap { Write-Error $_ -ErrorAction Continue; exit 1 }
10+
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
11+
12+
###########################################################################
13+
# CONFIGURATION
14+
###########################################################################
15+
16+
$BuildProjectFile = "$PSScriptRoot\src\Smartstore.Build\Smartstore.Build\Smartstore.Build.csproj"
17+
$TempDirectory = "$PSScriptRoot\\.nuke\temp"
18+
19+
$DotNetGlobalFile = "$PSScriptRoot\\global.json"
20+
$DotNetInstallUrl = "https://dot.net/v1/dotnet-install.ps1"
21+
$DotNetChannel = "Current"
22+
23+
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
24+
$env:DOTNET_CLI_TELEMETRY_OPTOUT = 1
25+
$env:DOTNET_MULTILEVEL_LOOKUP = 0
26+
27+
###########################################################################
28+
# EXECUTION
29+
###########################################################################
30+
31+
function ExecSafe([scriptblock] $cmd) {
32+
& $cmd
33+
if ($LASTEXITCODE) { exit $LASTEXITCODE }
34+
}
35+
36+
# If dotnet CLI is installed globally and it matches requested version, use for execution
37+
if ($null -ne (Get-Command "dotnet" -ErrorAction SilentlyContinue) -and `
38+
$(dotnet --version) -and $LASTEXITCODE -eq 0) {
39+
$env:DOTNET_EXE = (Get-Command "dotnet").Path
40+
}
41+
else {
42+
# Download install script
43+
$DotNetInstallFile = "$TempDirectory\dotnet-install.ps1"
44+
New-Item -ItemType Directory -Path $TempDirectory -Force | Out-Null
45+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
46+
(New-Object System.Net.WebClient).DownloadFile($DotNetInstallUrl, $DotNetInstallFile)
47+
48+
# If global.json exists, load expected version
49+
if (Test-Path $DotNetGlobalFile) {
50+
$DotNetGlobal = $(Get-Content $DotNetGlobalFile | Out-String | ConvertFrom-Json)
51+
if ($DotNetGlobal.PSObject.Properties["sdk"] -and $DotNetGlobal.sdk.PSObject.Properties["version"]) {
52+
$DotNetVersion = $DotNetGlobal.sdk.version
53+
}
54+
}
55+
56+
# Install by channel or version
57+
$DotNetDirectory = "$TempDirectory\dotnet-win"
58+
if (!(Test-Path variable:DotNetVersion)) {
59+
ExecSafe { & powershell $DotNetInstallFile -InstallDir $DotNetDirectory -Channel $DotNetChannel -NoPath }
60+
} else {
61+
ExecSafe { & powershell $DotNetInstallFile -InstallDir $DotNetDirectory -Version $DotNetVersion -NoPath }
62+
}
63+
$env:DOTNET_EXE = "$DotNetDirectory\dotnet.exe"
64+
}
65+
66+
Write-Output "Microsoft (R) .NET Core SDK version $(& $env:DOTNET_EXE --version)"
67+
68+
ExecSafe { & $env:DOTNET_EXE build $BuildProjectFile /nodeReuse:false /p:UseSharedCompilation=false -nologo -clp:NoSummary --verbosity quiet }
69+
ExecSafe { & $env:DOTNET_EXE run --project $BuildProjectFile --no-build -- $BuildArguments }

0 commit comments

Comments
 (0)