Skip to content

Commit

Permalink
Net standard 2.0 (#4)
Browse files Browse the repository at this point in the history
* migrate library project

* migrated test project

* use newer gitlink

* change paket use on appveyor

* build with VS2017

* dotnet restore

* use masbuild to pack

* update rulesets

* typo

* fix opencover script

* package to old folder

* use native references, for now

* vorce pdb to be included
  • Loading branch information
tpluscode committed Dec 3, 2017
1 parent a9ed064 commit b1dec8c
Show file tree
Hide file tree
Showing 14 changed files with 860 additions and 365 deletions.
265 changes: 265 additions & 0 deletions .paket/Paket.Restore.targets

Large diffs are not rendered by default.

File renamed without changes.
20 changes: 11 additions & 9 deletions UriTemplateString.sln
@@ -1,10 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2010
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UriTemplateString", "src\UriTemplateString\UriTemplateString.csproj", "{2A9FAC1E-F7E3-47FB-8D3B-79A0FC48FE7C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{3DEDC8F9-8D75-4FEE-9433-4FC8D0E6CEBD}"
ProjectSection(SolutionItems) = preProject
paket.dependencies = paket.dependencies
Expand All @@ -15,26 +13,30 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UriTemplateString.Tests", "
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".build", ".build", "{B8C6ADCA-C527-4A76-8184-9CEEE72A5B5A}"
ProjectSection(SolutionItems) = preProject
after.UriTemplateString.sln.targets = after.UriTemplateString.sln.targets
appveyor.yml = appveyor.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UriTemplateString", "src\UriTemplateString\UriTemplateString.csproj", "{5D3F8088-8110-4126-A373-59AC8A21B6A4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2A9FAC1E-F7E3-47FB-8D3B-79A0FC48FE7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2A9FAC1E-F7E3-47FB-8D3B-79A0FC48FE7C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2A9FAC1E-F7E3-47FB-8D3B-79A0FC48FE7C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2A9FAC1E-F7E3-47FB-8D3B-79A0FC48FE7C}.Release|Any CPU.Build.0 = Release|Any CPU
{ADB35456-3869-4B39-A455-8BEAC2F41342}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ADB35456-3869-4B39-A455-8BEAC2F41342}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ADB35456-3869-4B39-A455-8BEAC2F41342}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ADB35456-3869-4B39-A455-8BEAC2F41342}.Release|Any CPU.Build.0 = Release|Any CPU
{5D3F8088-8110-4126-A373-59AC8A21B6A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5D3F8088-8110-4126-A373-59AC8A21B6A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5D3F8088-8110-4126-A373-59AC8A21B6A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5D3F8088-8110-4126-A373-59AC8A21B6A4}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {059D6AA3-BB5B-4CB7-BBE6-4EA635E12DC4}
EndGlobalSection
EndGlobal
7 changes: 0 additions & 7 deletions after.UriTemplateString.sln.targets

This file was deleted.

13 changes: 9 additions & 4 deletions appveyor.yml
@@ -1,9 +1,12 @@
image: Visual Studio 2017

install:
- choco install gitversion.portable -pre -y
- choco install gitlink

before_build:
- .paket\paket.bootstrapper.exe prerelease
before_build:
- .paket\paket.exe restore
- dotnet restore
- ps: gitversion /l console /output buildserver

build:
Expand All @@ -12,10 +15,12 @@ build:
configuration: Release

after_build:
- .paket\paket.exe pack output nugets include-referenced-projects version %GitVersion_NuGetVersion%
- gitlink src/UriTemplateString/bin/Release/netstandard2.0/UriTemplateString.pdb -u https://github.com/tpluscode/UriTemplateString
- gitlink src/UriTemplateString/bin/Release/net45/UriTemplateString.pdb -u https://github.com/tpluscode/UriTemplateString
- msbuild /t:Pack UriTemplateString.sln /p:Configuration=Release

after_test:
- .\packages\OpenCover\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"test\UriTemplateString.Tests\bin\Release\UriTemplateString.Tests.dll -noshadow -appveyor" -returntargetcode -filter:"+[UriTemplateString*]* -[UriTemplateString.Tests*]* -[Test*]*" -hideskipped:All -output:.\UriTemplateString_coverage.xml
- .\packages\OpenCover\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"test\UriTemplateString.Tests\bin\Release\net45\UriTemplateString.Tests.dll -noshadow -appveyor" -returntargetcode -filter:"+[UriTemplateString*]* -[UriTemplateString.Tests*]* -[Test*]*" -hideskipped:All -output:.\UriTemplateString_coverage.xml
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "UriTemplateString_coverage.xml"
Expand Down
10 changes: 5 additions & 5 deletions paket.dependencies
@@ -1,16 +1,16 @@
source https://www.nuget.org/api/v2/
framework >= net40
source https://www.myget.org/F/tpluscode/api/v3/index.json

content: none
redirects: on
copy_local: true

nuget Fody
nuget NullGuard.Fody
nuget xunit
nuget GitVersionTask
nuget GitVersionTask prerelease
nuget FluentAssertions
nuget Stylecop.Analyzers
nuget GitLink
nuget OpenCover

gist tpluscode/a285267d2543466fc35c3a168c846f9f
nuget tpluscode.library.ruleset
nuget tpluscode.UnitTests.Ruleset

0 comments on commit b1dec8c

Please sign in to comment.