Skip to content

Commit

Permalink
revert NuGet.config. prevent pack.ps1 from removing sources from the …
Browse files Browse the repository at this point in the history
…local nuget config
  • Loading branch information
yatli committed Aug 27, 2019
1 parent 003309c commit 45665ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions NuGet.config
@@ -1,3 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="Avalonia Nightly" value="https://www.myget.org/F/avalonia-ci/api/v2" />
</packageSources>
</configuration>
4 changes: 0 additions & 4 deletions pack.ps1
Expand Up @@ -6,10 +6,6 @@ param([string[]]$plat=("win7-x64","win-x64"))
New-Item -ItemType Directory -Force -Name publish -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force bin\ -ErrorAction SilentlyContinue
Remove-Item publish\*
Invoke-Command {
nuget sources remove -Name "Avalonia Nightly"
nuget sources add -Name "Avalonia Nightly" -Source "https://www.myget.org/F/avalonia-ci/api/v2" -NonInteractive
} -ErrorAction SilentlyContinue

foreach($i in $plat) {
dotnet publish -f netcoreapp3.0 -c Release --self-contained -r $i
Expand Down

0 comments on commit 45665ac

Please sign in to comment.