Skip to content

Commit bc32f79

Browse files
authored
Merge pull request #14 from henkmollema/vs2017
Update to VS2017
2 parents 813e277 + 2a69818 commit bc32f79

File tree

14 files changed

+71
-163
lines changed

14 files changed

+71
-163
lines changed

.travis.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
11
language: csharp
2-
sudo: required
2+
sudo: false
33
dist: trusty
4-
addons:
5-
apt:
6-
packages:
7-
- gettext
8-
- libcurl4-openssl-dev
9-
- libicu-dev
10-
- libssl-dev
11-
- libunwind8
12-
- zlib1g
134
env:
145
global:
156
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
167
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
17-
mono:
18-
- 4.0.5
8+
mono: none
199
os:
2010
- linux
21-
#- osx
22-
#osx_image: xcode7.1
23-
#before_install:
24-
# - if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi
11+
- osx
12+
osx_image: xcode8.2
13+
before_install:
14+
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi
15+
before_script:
16+
- chmod +x ./build.sh
2517
script:
26-
- ./build.sh --quiet verify
27-
18+
- ./build.sh

CryptoHelper.sln

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 14
4-
VisualStudioVersion = 14.0.25123.0
2+
# Visual Studio 15
3+
VisualStudioVersion = 15.0.26403.7
54
MinimumVisualStudioVersion = 10.0.40219.1
65
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AED8A2C4-4D9F-42D7-A0D0-0832128A0072}"
76
ProjectSection(SolutionItems) = preProject
8-
global.json = global.json
97
NuGet.Config = NuGet.Config
8+
README.md = README.md
109
EndProjectSection
1110
EndProject
1211
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{AE91DAF8-4A94-4A25-BA27-87F603FBCD4B}"
1312
EndProject
14-
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "CryptoHelper", "src\CryptoHelper\CryptoHelper.xproj", "{05BFEEDB-1E36-4A70-BADA-07D68CEF8862}"
13+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CryptoHelper", "src\CryptoHelper\CryptoHelper.csproj", "{05BFEEDB-1E36-4A70-BADA-07D68CEF8862}"
1514
EndProject
1615
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{D7466811-2D0F-4015-9480-E97D32BD1EEA}"
1716
EndProject
18-
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "CryptoHelper.Tests", "test\CryptoHelper.Tests\CryptoHelper.Tests.xproj", "{F4D8F18C-6809-4CE4-BBBA-1801B2710987}"
17+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CryptoHelper.Tests", "test\CryptoHelper.Tests\CryptoHelper.Tests.csproj", "{F4D8F18C-6809-4CE4-BBBA-1801B2710987}"
1918
EndProject
2019
Global
2120
GlobalSection(SolutionConfigurationPlatforms) = preSolution

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# CryptoHelper
2-
:key: Standalone password hasher for ASP.NET Core using a PBKDF2 implementation.
2+
:key: Standalone password hasher for ASP.NET Core using a PBKDF2 implementation.
33

44
<hr>
55

@@ -8,7 +8,7 @@
88
| [![Build status](https://ci.appveyor.com/api/projects/status/hai0kndijmx6xb9d?svg=true)](https://ci.appveyor.com/project/henkmollema/cryptohelper) | [![Build Status](https://travis-ci.org/henkmollema/CryptoHelper.svg)](https://travis-ci.org/henkmollema/CryptoHelper) | [![Build Status](https://travis-ci.org/henkmollema/CryptoHelper.svg)](https://travis-ci.org/henkmollema/CryptoHelper) |
99

1010
--
11-
This utility provides a standalone password hasher for ASP.NET Core without a dependency on ASP.NET Identity. The passwords are hashed using the new [Data Protection](https://github.com/aspnet/DataProtection) stack.
11+
This utility provides a standalone password hasher for ASP.NET Core without a dependency on ASP.NET Identity. The passwords are hashed using the new [Data Protection](https://github.com/aspnet/DataProtection) stack.
1212

1313
<hr>
1414

@@ -18,7 +18,7 @@ This utility provides a standalone password hasher for ASP.NET Core without a de
1818
Add this to your `project.json`:
1919
```json
2020
"dependencies": {
21-
"CryptoHelper": "2.0.0"
21+
"CryptoHelper": "2.1.1"
2222
}
2323
```
2424

appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
init:
22
- git config --global core.autocrlf true
33
build_script:
4-
- build.cmd --quiet verify
4+
- ps: .\build.ps1
55
clone_depth: 1
66
test: off
77
deploy: off
88
environment:
99
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
10-
DOTNET_CLI_TELEMETRY_OPTOUT: 1
10+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
11+
os: Visual Studio 2017

build.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$ErrorActionPreference = "Stop"
22

3-
function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $retries)
3+
function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $retries)
44
{
55
while($true)
66
{
@@ -19,7 +19,7 @@ function DownloadWithRetry([string] $url, [string] $downloadLocation, [int] $ret
1919
Start-Sleep -Seconds 10
2020

2121
}
22-
else
22+
else
2323
{
2424
$exception = $_.Exception
2525
throw $exception
@@ -33,7 +33,7 @@ cd $PSScriptRoot
3333
$repoFolder = $PSScriptRoot
3434
$env:REPO_FOLDER = $repoFolder
3535

36-
$koreBuildZip="https://github.com/aspnet/KoreBuild/archive/rel/1.1.0.zip"
36+
$koreBuildZip="https://github.com/aspnet/KoreBuild/archive/8fbf3a9151eb555cedbfe8be8df9082a64c2fecb.zip"
3737
if ($env:KOREBUILD_ZIP)
3838
{
3939
$koreBuildZip=$env:KOREBUILD_ZIP
@@ -43,18 +43,18 @@ $buildFolder = ".build"
4343
$buildFile="$buildFolder\KoreBuild.ps1"
4444

4545
if (!(Test-Path $buildFolder)) {
46-
Write-Host "Downloading KoreBuild from $koreBuildZip"
47-
46+
Write-Host "Downloading KoreBuild from $koreBuildZip"
47+
4848
$tempFolder=$env:TEMP + "\KoreBuild-" + [guid]::NewGuid()
4949
New-Item -Path "$tempFolder" -Type directory | Out-Null
5050

5151
$localZipFile="$tempFolder\korebuild.zip"
52-
52+
5353
DownloadWithRetry -url $koreBuildZip -downloadLocation $localZipFile -retries 6
5454

5555
Add-Type -AssemblyName System.IO.Compression.FileSystem
5656
[System.IO.Compression.ZipFile]::ExtractToDirectory($localZipFile, $tempFolder)
57-
57+
5858
New-Item -Path "$buildFolder" -Type directory | Out-Null
5959
copy-item "$tempFolder\**\build\*" $buildFolder -Recurse
6060

@@ -64,4 +64,4 @@ if (!(Test-Path $buildFolder)) {
6464
}
6565
}
6666

67-
&"$buildFile" $args
67+
&"$buildFile" @args

build.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
repoFolder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
33
cd $repoFolder
44

5-
koreBuildZip="https://github.com/aspnet/KoreBuild/archive/rel/1.1.0.zip"
5+
koreBuildZip="https://github.com/aspnet/KoreBuild/archive/8fbf3a9151eb555cedbfe8be8df9082a64c2fecb.zip"
66
if [ ! -z $KOREBUILD_ZIP ]; then
77
koreBuildZip=$KOREBUILD_ZIP
88
fi
@@ -12,12 +12,12 @@ buildFile="$buildFolder/KoreBuild.sh"
1212

1313
if test ! -d $buildFolder; then
1414
echo "Downloading KoreBuild from $koreBuildZip"
15-
16-
tempFolder="/tmp/KoreBuild-$(uuidgen)"
15+
16+
tempFolder="/tmp/KoreBuild-$(uuidgen)"
1717
mkdir $tempFolder
18-
18+
1919
localZipFile="$tempFolder/korebuild.zip"
20-
20+
2121
retries=6
2222
until (wget -O $localZipFile $koreBuildZip 2>/dev/null || curl -o $localZipFile --location $koreBuildZip 2>/dev/null)
2323
do
@@ -29,17 +29,17 @@ if test ! -d $buildFolder; then
2929
echo "Waiting 10 seconds before retrying. Retries left: $retries"
3030
sleep 10s
3131
done
32-
32+
3333
unzip -q -d $tempFolder $localZipFile
34-
34+
3535
mkdir $buildFolder
3636
cp -r $tempFolder/**/build/** $buildFolder
37-
37+
3838
chmod +x $buildFile
39-
39+
4040
# Cleanup
41-
if test ! -d $tempFolder; then
42-
rm -rf $tempFolder
41+
if test -d $tempFolder; then
42+
rm -rf $tempFolder
4343
fi
4444
fi
4545

global.json

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

src/CryptoHelper/CryptoHelper.csproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<Description>Standalone password hasher for ASP.NET Core using a PBKDF2 implementation.</Description>
4+
<Copyright>Copyright 2017 Henk Mollema</Copyright>
5+
<VersionPrefix>2.1.1</VersionPrefix>
6+
<Authors>Henk Mollema</Authors>
7+
<TargetFrameworks>net451;netstandard1.3</TargetFrameworks>
8+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
9+
<PackageTags>hashing;crypto;core;PBKDF2;Rfc2898DeriveBytes</PackageTags>
10+
<PackageProjectUrl>https://github.com/henkmollema/CryptoHelper</PackageProjectUrl>
11+
<PackageLicenseUrl>https://github.com/henkmollema/CryptoHelper/blob/master/LICENSE</PackageLicenseUrl>
12+
<RepositoryType>git</RepositoryType>
13+
<RepositoryUrl>git://github.com/henkmollema/CryptoHelper</RepositoryUrl>
14+
<NetStandardImplicitPackageVersion>1.6.1</NetStandardImplicitPackageVersion>
15+
</PropertyGroup>
16+
<ItemGroup>
17+
<PackageReference Include="Microsoft.AspNetCore.Cryptography.KeyDerivation" Version="1.1.1" />
18+
</ItemGroup>
19+
</Project>

src/CryptoHelper/CryptoHelper.xproj

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

src/CryptoHelper/project.json

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFrameworks>netcoreapp1.1;net452</TargetFrameworks>
4+
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp1.1</TargetFrameworks>
5+
<IsPackable>false</IsPackable>
6+
</PropertyGroup>
7+
<ItemGroup>
8+
<ProjectReference Include="..\..\src\CryptoHelper\CryptoHelper.csproj" />
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
10+
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
11+
<PackageReference Include="xunit" Version="2.2.0" />
12+
</ItemGroup>
13+
</Project>

test/CryptoHelper.Tests/CryptoHelper.Tests.xproj

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

test/CryptoHelper.Tests/Properties/AssemblyInfo.cs

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

test/CryptoHelper.Tests/project.json

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

0 commit comments

Comments
 (0)