Skip to content

Commit 10ee0c9

Browse files
authored
Merge pull request #261 from TestStack/dotnetcore2
Upgrading to dotnetcore 2.0
2 parents 2d74ac0 + 3887fab commit 10ee0c9

21 files changed

+223
-287
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ obj/
1111
*.crunchproject.local.xml
1212
*.crunchsolution.local.xml
1313
*.cache
14+
*.userprefs
15+
.DS_Store
1416
packages/*
1517
PackageBuild/*
1618
Build/*
@@ -20,7 +22,9 @@ _NCrunch_TestStack.BDDfy/
2022
TestStack.BDDfy.sln.ide/
2123
src/packages/
2224
src/.vs/
25+
.vs/
2326
project.lock.json
2427
tools/Cake/
2528
tools/GitReleaseNotes/
29+
tools/gitversion.commandline/
2630
artifacts/

GitVersion.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
mode: ContinuousDelivery
2+
next-version: 4.1.0
3+
branches: {}
4+
ignore:
5+
sha: []

GitVersionConfig.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ configuration:
88
- Release
99

1010
build_script:
11-
- ps: .\build.ps1
11+
- powershell .\build.ps1
1212

1313
test: off
1414
skip_tags: true

build.cake

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#tool "nuget:?package=GitReleaseNotes"
2+
#tool "nuget:?package=GitVersion.CommandLine"
23

34
var target = Argument("target", "Default");
4-
var bddfyProj = "./src/TestStack.BDDfy/project.json";
5+
var bddfyProj = "./src/TestStack.BDDfy/TestStack.BDDfy.csproj";
56
var outputDir = "./artifacts/";
67

78
Task("Clean")
@@ -24,12 +25,7 @@ Task("Version")
2425
UpdateAssemblyInfo = true,
2526
OutputType = GitVersionOutput.BuildServer
2627
});
27-
versionInfo = GitVersion(new GitVersionSettings{ OutputType = GitVersionOutput.Json });
28-
// Update project.json
29-
var updatedProjectJson = System.IO.File.ReadAllText(bddfyProj)
30-
.Replace("1.0.0-*", versionInfo.NuGetVersion);
31-
32-
System.IO.File.WriteAllText(bddfyProj, updatedProjectJson);
28+
versionInfo = GitVersion(new GitVersionSettings{ OutputType = GitVersionOutput.Json });
3329
});
3430

3531
Task("Build")
@@ -52,6 +48,7 @@ Task("Package")
5248
.Does(() => {
5349
var settings = new DotNetCorePackSettings
5450
{
51+
ArgumentCustomization = args=> args.Append(" --include-symbols /p:PackageVersion=" + versionInfo.NuGetVersion),
5552
OutputDirectory = outputDir,
5653
NoBuild = true
5754
};
@@ -61,6 +58,7 @@ Task("Package")
6158
var releaseNotesExitCode = StartProcess(
6259
@"tools\GitReleaseNotes\tools\gitreleasenotes.exe",
6360
new ProcessSettings { Arguments = ". /o artifacts/releasenotes.md" });
61+
6462
if (string.IsNullOrEmpty(System.IO.File.ReadAllText("./artifacts/releasenotes.md")))
6563
System.IO.File.WriteAllText("./artifacts/releasenotes.md", "No issues closed since last release");
6664

src/Samples/TestStack.BDDfy.Samples/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>netcoreapp2.0</TargetFrameworks>
5+
<AssemblyName>TestStack.BDDfy.Samples</AssemblyName>
6+
<PackageId>TestStack.BDDfy.Samples</PackageId>
7+
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
8+
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
9+
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
10+
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
11+
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
12+
</PropertyGroup>
13+
14+
<ItemGroup>
15+
<ProjectReference Include="../../TestStack.BDDfy/TestStack.BDDfy.csproj" />
16+
</ItemGroup>
17+
18+
<ItemGroup>
19+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
20+
<PackageReference Include="Microsoft.NETCore.Platforms" Version="2.0.0" />
21+
<PackageReference Include="shouldly" Version="3.0.0-beta0003" />
22+
<PackageReference Include="xunit" Version="2.3.1" />
23+
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
24+
</ItemGroup>
25+
26+
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
27+
<PackageReference Include="System.Linq" Version="4.3.0" />
28+
</ItemGroup>
29+
30+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net46' ">
31+
<DefineConstants>$(DefineConstants);Approvals;Culture;NSubstitute</DefineConstants>
32+
</PropertyGroup>
33+
34+
<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
35+
<Reference Include="System" />
36+
<Reference Include="Microsoft.CSharp" />
37+
</ItemGroup>
38+
39+
</Project>

src/Samples/TestStack.BDDfy.Samples/TestStack.BDDfy.Samples.xproj

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

src/Samples/TestStack.BDDfy.Samples/project.json

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

src/TestStack.BDDfy.Tests/Properties/AssemblyInfo.cs

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

0 commit comments

Comments
 (0)