Skip to content

Commit 6678ae1

Browse files
committed
Small fix in build.ps1
Fixed the order of functions.
1 parent 06be900 commit 6678ae1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ function Invoke-Cmd ($cmd)
2929
if ($LastExitCode -ne 0) { Write-Error "An error occured when executing '$cmd'."; return }
3030
}
3131

32+
function dotnet-info { Invoke-Cmd "dotnet --info" }
33+
function dotnet-version { Invoke-Cmd "dotnet --version" }
34+
function dotnet-run ($project, $argv) { Invoke-Cmd "dotnet run --project $project $argv" }
35+
function dotnet-pack ($project, $argv) { Invoke-Cmd "dotnet pack $project $argv" }
36+
3237
function Get-DotNetRuntimeVersion
3338
{
3439
$info = dotnet-info
@@ -54,11 +59,6 @@ function Get-NetCoreTargetFramework ($projFile)
5459
Get-TargetFrameworks $projFile | where { $_ -like "netstandard*" -or $_ -like "netcoreapp*" }
5560
}
5661

57-
function dotnet-info { Invoke-Cmd "dotnet --info" }
58-
function dotnet-version { Invoke-Cmd "dotnet --version" }
59-
function dotnet-run ($project, $argv) { Invoke-Cmd "dotnet run --project $project $argv" }
60-
function dotnet-pack ($project, $argv) { Invoke-Cmd "dotnet pack $project $argv" }
61-
6262
function dotnet-build ($project, $argv)
6363
{
6464
if ($OnlyNetStandard.IsPresent) {

0 commit comments

Comments
 (0)