Skip to content

Commit 02eb127

Browse files
authored
Merge pull request #20 from maxhauser/feature/dotnet
#11 Added support for .NET Core
2 parents d7eed71 + b044506 commit 02eb127

19 files changed

+1552
-3209
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ obj/
44
TestResults/
55
*.csproj.user
66
*.suo
7-
*.nupkg
7+
*.nupkg
8+
9+
# project.json
10+
*.lock.json
11+
.vs
12+
*.user

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build status](https://ci.appveyor.com/api/projects/status/kek3h7gflo3qqidb?svg=true)](https://ci.appveyor.com/project/maxhauser/semver)
2+
13
A semantic version library for .Net
24
===================================
35

Semver.Test/Semver.Test.csproj

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

Semver.sln

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2012
4-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Semver", "Semver\Semver.csproj", "{95B2542C-E371-4AB4-9E2D-B2665CBBD629}"
5-
EndProject
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Semver.Test", "Semver.Test\Semver.Test.csproj", "{EAE17B6B-5380-4017-8046-1757EB77DF53}"
7-
EndProject
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
86
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AC069663-5FE9-438A-A9F4-C5293D695D98}"
97
ProjectSection(SolutionItems) = preProject
108
License.txt = License.txt
119
README.md = README.md
1210
EndProjectSection
1311
EndProject
12+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Semver", "src\Semver\Semver.xproj", "{DA3E84C8-A960-420C-A85A-718005AACC36}"
13+
EndProject
14+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Semver.Test", "test\Semver.Test\Semver.Test.xproj", "{DA03E4C4-CB6C-447B-B617-15B5689E9029}"
15+
EndProject
1416
Global
1517
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1618
Debug|Any CPU = Debug|Any CPU
1719
Release|Any CPU = Release|Any CPU
1820
EndGlobalSection
1921
GlobalSection(ProjectConfigurationPlatforms) = postSolution
20-
{95B2542C-E371-4AB4-9E2D-B2665CBBD629}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21-
{95B2542C-E371-4AB4-9E2D-B2665CBBD629}.Debug|Any CPU.Build.0 = Debug|Any CPU
22-
{95B2542C-E371-4AB4-9E2D-B2665CBBD629}.Release|Any CPU.ActiveCfg = Release|Any CPU
23-
{95B2542C-E371-4AB4-9E2D-B2665CBBD629}.Release|Any CPU.Build.0 = Release|Any CPU
24-
{EAE17B6B-5380-4017-8046-1757EB77DF53}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25-
{EAE17B6B-5380-4017-8046-1757EB77DF53}.Debug|Any CPU.Build.0 = Debug|Any CPU
26-
{EAE17B6B-5380-4017-8046-1757EB77DF53}.Release|Any CPU.ActiveCfg = Release|Any CPU
27-
{EAE17B6B-5380-4017-8046-1757EB77DF53}.Release|Any CPU.Build.0 = Release|Any CPU
22+
{DA3E84C8-A960-420C-A85A-718005AACC36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{DA3E84C8-A960-420C-A85A-718005AACC36}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{DA3E84C8-A960-420C-A85A-718005AACC36}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{DA3E84C8-A960-420C-A85A-718005AACC36}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{DA03E4C4-CB6C-447B-B617-15B5689E9029}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{DA03E4C4-CB6C-447B-B617-15B5689E9029}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{DA03E4C4-CB6C-447B-B617-15B5689E9029}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{DA03E4C4-CB6C-447B-B617-15B5689E9029}.Release|Any CPU.Build.0 = Release|Any CPU
2830
EndGlobalSection
2931
GlobalSection(SolutionProperties) = preSolution
3032
HideSolutionNode = FALSE

Semver/Semver.csproj

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

Semver/Semver.nuspec

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

appveyor.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
version: 2.0.{build}
2+
os: Visual Studio 2015
3+
4+
configuration: Release
5+
6+
pull_requests:
7+
do_not_increment_build_number: true
8+
9+
init:
10+
- git config --global core.autocrlf true
11+
- ps: $env:GIT_HASH=$env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
12+
- ps: If ("$env:APPVEYOR_REPO_BRANCH" -ne "master") { $env:VERSION_SUFFIX="-pre" }
13+
14+
assembly_info:
15+
patch: true
16+
file: AssemblyInfo.*
17+
assembly_version: "{version}.0"
18+
assembly_file_version: "{version}.0"
19+
assembly_informational_version: "{version}$(VERSION_SUFFIX) $(GIT_HASH)"
20+
21+
before_build:
22+
- ps: >-
23+
Get-ChildItem -Path .\ -Filter project.json -Recurse -Name |
24+
ForEach {
25+
$content = Get-Content "$_"
26+
$content = $content.Replace("99.99.99-dev", "$($env:APPVEYOR_BUILD_VERSION)$($env:VERSION_SUFFIX)")
27+
Set-Content "$_" $content -Encoding UTF8
28+
}
29+
- dotnet restore -v Minimal
30+
31+
build_script:
32+
- dotnet pack "src\Semver" -c Release -o artifacts
33+
34+
test_script:
35+
- dotnet test "test\Semver.Test"
36+
37+
artifacts:
38+
- path: artifacts\*.nupkg
39+
name: ReleaseArtifacts
40+
41+
deploy:
42+
- provider: Environment
43+
name: NuGet
44+
on:
45+
branch: master
46+
# - provider: GitHub
47+
# auth_token:
48+
# secure:
49+
# draft: true
50+
# on:
51+
# branch: master
52+
# appveyor_repo_tag: true
53+
54+
#notifications:
55+
# - provider: Slack
56+
# channel: '#notifications'
57+
# auth_token:
58+
# secure:

global.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"projects": [
3+
"src",
4+
"test"
5+
],
6+
"sdk": {
7+
"version": "1.0.0-preview2-003121"
8+
}
9+
}

0 commit comments

Comments
 (0)