Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from project.json to csproj. (#19)
* Upgrade to latest dotnet SDK and migrate from project.json to csproj.
- Loading branch information
Showing
32 changed files
with
340 additions
and
390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,50 @@ | ||
assembly-versioning-scheme: MajorMinorPatch | ||
mode: ContinuousDeployment | ||
|
||
# It would be better to use smarter regexes instead of duplicating everything for local and remote cases. | ||
# However, GitVersion has some built-in patterns which cannot be removed and these would cause clashes. | ||
branches: | ||
|
||
# These branch patterns cover all local cases | ||
master: | ||
regex: master | ||
tag: master | ||
increment: Minor | ||
prevent-increment-of-merged-branch-version: true | ||
feature[/-]: | ||
feature: | ||
regex: feature[/-] | ||
tag: a{BranchName} | ||
increment: Minor | ||
prevent-increment-of-merged-branch-version: false | ||
patch[/-]: | ||
patch: | ||
regex: patch[/-] | ||
tag: useBranchName | ||
increment: Patch | ||
prevent-increment-of-merged-branch-version: false | ||
release[/-]: | ||
release: | ||
regex: release[/-] | ||
tag: rc | ||
increment: None | ||
prevent-increment-of-merged-branch-version: false | ||
|
||
# These branch patterns cover all remote cases | ||
origin/master: | ||
regex: origin/master | ||
tag: master | ||
increment: Minor | ||
prevent-increment-of-merged-branch-version: true | ||
origin/feature[/-]: | ||
origin/feature: | ||
regex: origin/feature[/-] | ||
tag: a{BranchName} | ||
increment: Minor | ||
prevent-increment-of-merged-branch-version: false | ||
origin/patch[/-]: | ||
origin/patch: | ||
regex: origin/patch[/-] | ||
tag: useBranchName | ||
increment: Patch | ||
prevent-increment-of-merged-branch-version: false | ||
origin/release[/-]: | ||
origin/release: | ||
regex: origin/release[/-] | ||
tag: rc | ||
increment: None | ||
prevent-increment-of-merged-branch-version: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.26430.14 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{92E73150-9357-4AA6-8C7D-E43709B27A6D}" | ||
ProjectSection(SolutionItems) = preProject | ||
.travis.yml = .travis.yml | ||
appveyor.yml = appveyor.yml | ||
build.sh = build.sh | ||
CONTRIBUTING.md = CONTRIBUTING.md | ||
GitVersionConfig.yaml = GitVersionConfig.yaml | ||
LICENSE = LICENSE | ||
README.md = README.md | ||
stylecop.json = stylecop.json | ||
EndProjectSection | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{03739F78-2460-4F1E-92F2-807CBD8C8AB5}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{972A51CA-2686-4B9B-8BBB-503B2A1BA630}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Winton.Extensions.Configuration.Consul", "src\Winton.Extensions.Configuration.Consul\Winton.Extensions.Configuration.Consul.csproj", "{B5C08CE5-B60B-485F-B78F-A119B8AA8508}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Winton.Extensions.Configuration.Consul.Test", "test\Winton.Extensions.Configuration.Consul.Test\Winton.Extensions.Configuration.Consul.Test.csproj", "{6A8821FC-BE1A-4EC8-8A51-73105458CC85}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Website", "test\Website\Website.csproj", "{44386D3A-3926-410D-AAD6-3820E17D712A}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{B5C08CE5-B60B-485F-B78F-A119B8AA8508}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{B5C08CE5-B60B-485F-B78F-A119B8AA8508}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{B5C08CE5-B60B-485F-B78F-A119B8AA8508}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{B5C08CE5-B60B-485F-B78F-A119B8AA8508}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{6A8821FC-BE1A-4EC8-8A51-73105458CC85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{6A8821FC-BE1A-4EC8-8A51-73105458CC85}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{6A8821FC-BE1A-4EC8-8A51-73105458CC85}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{6A8821FC-BE1A-4EC8-8A51-73105458CC85}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{44386D3A-3926-410D-AAD6-3820E17D712A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{44386D3A-3926-410D-AAD6-3820E17D712A}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{44386D3A-3926-410D-AAD6-3820E17D712A}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{44386D3A-3926-410D-AAD6-3820E17D712A}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(NestedProjects) = preSolution | ||
{B5C08CE5-B60B-485F-B78F-A119B8AA8508} = {03739F78-2460-4F1E-92F2-807CBD8C8AB5} | ||
{6A8821FC-BE1A-4EC8-8A51-73105458CC85} = {972A51CA-2686-4B9B-8BBB-503B2A1BA630} | ||
{44386D3A-3926-410D-AAD6-3820E17D712A} = {972A51CA-2686-4B9B-8BBB-503B2A1BA630} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,17 @@ | ||
set -e | ||
#! /bin/bash | ||
|
||
while getopts v option | ||
do | ||
case "${option}" | ||
in | ||
v) VERSION_AND_PUBLISH="true";; | ||
esac | ||
done | ||
set -e | ||
|
||
# Restore packages | ||
dotnet restore | ||
|
||
# Set version numbers | ||
if [[ $VERSION_AND_PUBLISH ]]; then | ||
echo "Versioning..." | ||
(cd src/Winton.Extensions.Configuration.Consul && dotnet gitversion) | ||
else | ||
echo "WARN: Skipping versioning." | ||
fi | ||
|
||
# Build | ||
dotnet build src/Winton.Extensions.Configuration.Consul/project.json test/Winton.Extensions.Configuration.Consul.Test/project.json --configuration Release | ||
dotnet build --configuration Release | ||
|
||
# Unit Test | ||
dotnet test --no-build --configuration Release -f netcoreapp1.0 test/Winton.Extensions.Configuration.Consul.Test/project.json | ||
dotnet test test/Winton.Extensions.Configuration.Consul.Test/ --no-build --configuration Release | ||
|
||
# Integration test | ||
if hash docker 2>/dev/null; then | ||
./test/Website/IntegrationTests/run.sh | ||
fi | ||
|
||
# Package | ||
dotnet pack --no-build src/*/project.json --configuration Release |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/Winton.Extensions.Configuration.Consul/Winton.Extensions.Configuration.Consul.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<Copyright>Copyright (c) Winton</Copyright> | ||
<Description>Provides support for configuring .Net Core applications with Consul</Description> | ||
<GenerateDocumentationFile>True</GenerateDocumentationFile> | ||
<GetVersion>False</GetVersion> | ||
<NoWarn>$(NoWarn);SA1101;SA1309;SA1413</NoWarn> | ||
<PackageId>Winton.Extensions.Configuration.Consul</PackageId> | ||
<PackageLicenseUrl>https://github.com/wintoncode/Winton.Extensions.Configuration.Consul/blob/master/LICENSE</PackageLicenseUrl> | ||
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance> | ||
<PackageTags>.Net;.Net Core;dotnetcore;Asp.Net;Asp.Net Core;aspnetcore;configuration;consul;winton;wintoncode</PackageTags> | ||
<PackageVersion>$(NuGetVersion)</PackageVersion> | ||
<RepositoryType>git</RepositoryType> | ||
<RepositoryUrl>https://github.com/wintoncode/Winton.Extensions.Configuration.Consul</RepositoryUrl> | ||
<TargetFrameworks>netstandard1.3</TargetFrameworks> | ||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors> | ||
<WriteVersionInfoToBuildLog>False</WriteVersionInfoToBuildLog> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)' == 'Release'"> | ||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<AdditionalFiles Include="../../stylecop.json" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Consul" Version="0.7.0.3" /> | ||
<PackageReference Include="GitVersionTask" Version="4.0.0-beta0011" PrivateAssets="All" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="1.0.2" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" /> | ||
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
</Project> | ||
|
16 changes: 0 additions & 16 deletions
16
src/Winton.Extensions.Configuration.Consul/Winton.Extensions.Configuration.Consul.xproj
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.