Skip to content

Commit 18e90a0

Browse files
committed
cleanup script
1 parent 122786a commit 18e90a0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.build/build.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ $Here = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
55
$SolutionRoot = (Split-Path -parent $Here)
66

77
$ProjectName = "Advanced.Algorithms"
8+
$GitHubProjectName = "Advanced-Algorithms"
9+
$GitHubUserName = "justcoding121"
810

911
$SolutionFile = "$SolutionRoot\$ProjectName.sln"
1012

@@ -50,7 +52,7 @@ Task Install-BuildTools -depends Clean {
5052

5153
#restore nuget packages
5254
Task Restore-Packages -depends Install-BuildTools {
53-
exec { . dotnet restore "$SolutionRoot\Advanced.Algorithms.sln" }
55+
exec { . dotnet restore "$SolutionRoot\$ProjectName" }
5456
}
5557

5658
#build
@@ -87,7 +89,7 @@ Task Document -depends Build {
8789
New-Item -ItemType Directory -Force -Path $TEMP_REPO_DIR
8890

8991
#clone
90-
git clone https://github.com/justcoding121/advanced-algorithms.git --branch master $TEMP_REPO_DIR
92+
git clone https://github.com/$GitHubUserName/$GitHubProjectName.git --branch master $TEMP_REPO_DIR
9193

9294
If(test-path "$TEMP_REPO_DIR\docs")
9395
{
@@ -117,5 +119,5 @@ Task Document -depends Build {
117119

118120
#package nuget files
119121
Task Package -depends Document {
120-
exec { . $NuGet pack "$SolutionRoot\Advanced.Algorithms\Advanced.Algorithms.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$SolutionRoot" -Version "$Version" }
122+
exec { . $NuGet pack "$SolutionRoot\$ProjectName\$ProjectName.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$SolutionRoot" -Version "$Version" }
121123
}

0 commit comments

Comments
 (0)