Skip to content

Commit

Permalink
Merge pull request #20 from maxhauser/feature/dotnet
Browse files Browse the repository at this point in the history
#11 Added support for .NET Core
  • Loading branch information
maxhauser authored Jul 31, 2016
2 parents d7eed71 + b044506 commit 02eb127
Show file tree
Hide file tree
Showing 19 changed files with 1,552 additions and 3,209 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ obj/
TestResults/
*.csproj.user
*.suo
*.nupkg
*.nupkg

# project.json
*.lock.json
.vs
*.user
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build status](https://ci.appveyor.com/api/projects/status/kek3h7gflo3qqidb?svg=true)](https://ci.appveyor.com/project/maxhauser/semver)

A semantic version library for .Net
===================================

Expand Down
90 changes: 0 additions & 90 deletions Semver.Test/Semver.Test.csproj

This file was deleted.

28 changes: 15 additions & 13 deletions Semver.sln
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Semver", "Semver\Semver.csproj", "{95B2542C-E371-4AB4-9E2D-B2665CBBD629}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Semver.Test", "Semver.Test\Semver.Test.csproj", "{EAE17B6B-5380-4017-8046-1757EB77DF53}"
EndProject
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AC069663-5FE9-438A-A9F4-C5293D695D98}"
ProjectSection(SolutionItems) = preProject
License.txt = License.txt
README.md = README.md
EndProjectSection
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Semver", "src\Semver\Semver.xproj", "{DA3E84C8-A960-420C-A85A-718005AACC36}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Semver.Test", "test\Semver.Test\Semver.Test.xproj", "{DA03E4C4-CB6C-447B-B617-15B5689E9029}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{95B2542C-E371-4AB4-9E2D-B2665CBBD629}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{95B2542C-E371-4AB4-9E2D-B2665CBBD629}.Debug|Any CPU.Build.0 = Debug|Any CPU
{95B2542C-E371-4AB4-9E2D-B2665CBBD629}.Release|Any CPU.ActiveCfg = Release|Any CPU
{95B2542C-E371-4AB4-9E2D-B2665CBBD629}.Release|Any CPU.Build.0 = Release|Any CPU
{EAE17B6B-5380-4017-8046-1757EB77DF53}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EAE17B6B-5380-4017-8046-1757EB77DF53}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EAE17B6B-5380-4017-8046-1757EB77DF53}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EAE17B6B-5380-4017-8046-1757EB77DF53}.Release|Any CPU.Build.0 = Release|Any CPU
{DA3E84C8-A960-420C-A85A-718005AACC36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DA3E84C8-A960-420C-A85A-718005AACC36}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DA3E84C8-A960-420C-A85A-718005AACC36}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DA3E84C8-A960-420C-A85A-718005AACC36}.Release|Any CPU.Build.0 = Release|Any CPU
{DA03E4C4-CB6C-447B-B617-15B5689E9029}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DA03E4C4-CB6C-447B-B617-15B5689E9029}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DA03E4C4-CB6C-447B-B617-15B5689E9029}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DA03E4C4-CB6C-447B-B617-15B5689E9029}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
51 changes: 0 additions & 51 deletions Semver/Semver.csproj

This file was deleted.

23 changes: 0 additions & 23 deletions Semver/Semver.nuspec

This file was deleted.

58 changes: 58 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
version: 2.0.{build}
os: Visual Studio 2015

configuration: Release

pull_requests:
do_not_increment_build_number: true

init:
- git config --global core.autocrlf true
- ps: $env:GIT_HASH=$env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
- ps: If ("$env:APPVEYOR_REPO_BRANCH" -ne "master") { $env:VERSION_SUFFIX="-pre" }

assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}.0"
assembly_file_version: "{version}.0"
assembly_informational_version: "{version}$(VERSION_SUFFIX) $(GIT_HASH)"

before_build:
- ps: >-
Get-ChildItem -Path .\ -Filter project.json -Recurse -Name |
ForEach {
$content = Get-Content "$_"
$content = $content.Replace("99.99.99-dev", "$($env:APPVEYOR_BUILD_VERSION)$($env:VERSION_SUFFIX)")
Set-Content "$_" $content -Encoding UTF8
}
- dotnet restore -v Minimal

build_script:
- dotnet pack "src\Semver" -c Release -o artifacts

test_script:
- dotnet test "test\Semver.Test"

artifacts:
- path: artifacts\*.nupkg
name: ReleaseArtifacts

deploy:
- provider: Environment
name: NuGet
on:
branch: master
# - provider: GitHub
# auth_token:
# secure:
# draft: true
# on:
# branch: master
# appveyor_repo_tag: true

#notifications:
# - provider: Slack
# channel: '#notifications'
# auth_token:
# secure:
9 changes: 9 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"projects": [
"src",
"test"
],
"sdk": {
"version": "1.0.0-preview2-003121"
}
}
Loading

0 comments on commit 02eb127

Please sign in to comment.