File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
5254Task 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
119121Task 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}
You can’t perform that action at this time.
0 commit comments