Skip to content

Commit

Permalink
Fix installing snapx tool locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
peters committed Nov 9, 2022
1 parent c5a93ab commit 533495c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ function Invoke-Install-Snapx
$SnapCsProjPath
)

Invoke-Command-Colored dotnet @(
"nuget add source $NupkgsDir --name snapx-local"
) -IgnoreExitCode

Invoke-Command-Colored dotnet @(
"build"
"/p:Version=$Version"
Expand All @@ -155,10 +159,9 @@ function Invoke-Install-Snapx
Invoke-Command-Colored dotnet @(
"tool"
"update"
"snapx"
"--global"
"--add-source $NupkgsDir"
"--version $Version"
"snapx"
)

Resolve-Shell-Dependency snapx
Expand Down
3 changes: 3 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
<packageSource key="nuget.org">
<package pattern="*" />
</packageSource>
<packageSource key="snapx-local">
<package pattern="snapx*" />
</packageSource>
</packageSourceMapping>
</configuration>

0 comments on commit 533495c

Please sign in to comment.