Skip to content

Commit 1afa9c5

Browse files
Merge pull request #61 from brunohbrito/dev
packages update
2 parents c57a1c3 + fc3bf06 commit 1afa9c5

14 files changed

Lines changed: 82 additions & 47 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ _UpgradeReport_Files/
2222
###############
2323
# Directories #
2424
###############
25-
25+
.nuget/
2626
.vs/
2727
bin/
2828
obj/
@@ -43,6 +43,7 @@ TestResults/
4343
# git has its own built in compression methods
4444
*.7z
4545
*.dmg
46+
*.nupkg
4647
*.gz
4748
*.iso
4849
*.jar

NuGet.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<clear />
5+
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
6+
<add key="JPProject Local" value="D:\workspace\JPProject.AspNetCore.PasswordHasher\.nuget" />
7+
</packageSources>
8+
</configuration>

azure-pipelines.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ variables:
1515
buildConfiguration: 'Release'
1616

1717
steps:
18+
19+
- task: UseDotNet@2
20+
displayName: 'Install .net core 3.1'
21+
inputs:
22+
packageType: 'sdk'
23+
version: '3.1.100'
24+
1825
- task: DotNetCoreCLI@2
1926
displayName: '.NET Core - Restore packages'
2027
inputs:

build/helldog.png

-1.26 MB
Loading

build/pack.bat

Lines changed: 0 additions & 1 deletion
This file was deleted.

build/pack.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
$version = $args[0]
2+
3+
if (!$version)
4+
{
5+
$version = '3.1.1-prerelease1.' + $([System.DateTime]::Now.ToString('MM-dd-HHmmss'))
6+
}
7+
Write-Host 'Version: ' $version
8+
get-childitem * -include *.nupkg | remove-item
9+
dotnet build ..\src\JpProject.PasswordHasher.sln
10+
dotnet test ..\src\JpProject.PasswordHasher.sln
11+
dotnet pack ..\src\JpProject.PasswordHasher.sln -o .\ -p:PackageVersion=$version

build/push.bat

Lines changed: 0 additions & 4 deletions
This file was deleted.

build/push.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
param([string] $source = "../.nuget",
2+
[switch] $prod)
3+
4+
if($prod)
5+
{
6+
$source = "https://api.nuget.org/v3/index.json"
7+
}
8+
9+
$files = Get-ChildItem -recurse -filter *.nupkg
10+
11+
foreach ($file in $files) {
12+
nuget add $file.Name -source $source
13+
}
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)