Skip to content

Commit e33849e

Browse files
committed
Trying to get the NuGet package versioned properly
1 parent 8e679a2 commit e33849e

File tree

5 files changed

+31
-7
lines changed

5 files changed

+31
-7
lines changed

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.

build.cake

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ Task("Restore")
2121
GitVersion versionInfo = null;
2222
Task("Version")
2323
.Does(() => {
24-
GitVersion(new GitVersionSettings{
24+
GitVersion(new GitVersionSettings{
2525
UpdateAssemblyInfo = true,
2626
OutputType = GitVersionOutput.BuildServer
2727
});
28-
versionInfo = GitVersion(new GitVersionSettings{ OutputType = GitVersionOutput.Json });
29-
// Update project.json
30-
var updatedProjectJson = System.IO.File.ReadAllText(bddfyProj)
28+
versionInfo = GitVersion(new GitVersionSettings());
29+
30+
var updatedProject = System.IO.File.ReadAllText(bddfyProj)
3131
.Replace("1.0.0-*", versionInfo.NuGetVersion);
3232

33-
System.IO.File.WriteAllText(bddfyProj, updatedProjectJson);
33+
System.IO.File.WriteAllText(bddfyProj, updatedProject);
3434
});
3535

3636
Task("Build")
@@ -62,6 +62,7 @@ Task("Package")
6262
var releaseNotesExitCode = StartProcess(
6363
@"tools\GitReleaseNotes\tools\gitreleasenotes.exe",
6464
new ProcessSettings { Arguments = ". /o artifacts/releasenotes.md" });
65+
6566
if (string.IsNullOrEmpty(System.IO.File.ReadAllText("./artifacts/releasenotes.md")))
6667
System.IO.File.WriteAllText("./artifacts/releasenotes.md", "No issues closed since last release");
6768

src/TestStack.BDDfy.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1212
..\build.ps1 = ..\build.ps1
1313
..\deploy.cake = ..\deploy.cake
1414
..\deploy.ps1 = ..\deploy.ps1
15-
..\GitVersionConfig.yaml = ..\GitVersionConfig.yaml
15+
..\GitVersion.yml = ..\GitVersion.yml
1616
..\license.txt = ..\license.txt
1717
..\logo.png = ..\logo.png
1818
NuGet.config = NuGet.config
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System.Reflection;
2+
using System.Runtime.InteropServices;
3+
4+
// General Information about an assembly is controlled through the following
5+
// set of attributes. Change these attribute values to modify the information
6+
// associated with an assembly.
7+
[assembly: AssemblyConfiguration("")]
8+
[assembly: AssemblyCompany("TestStack.BDDfy - http://teststack.github.com/TestStack.BDDfy/")]
9+
[assembly: AssemblyProduct("TestStack.BDDfy")]
10+
[assembly: AssemblyCopyright("Copyright © 2011-2017 TestStack.BDDfy contributors")]
11+
[assembly: AssemblyTrademark("")]
12+
13+
// Setting ComVisible to false makes the types in this assembly not visible
14+
// to COM components. If you need to access a type in this assembly from
15+
// COM, set the ComVisible attribute to true on that type.
16+
[assembly: ComVisible(false)]
17+
18+
// The following GUID is for the ID of the typelib if this project is exposed to COM
19+
[assembly: Guid("20482e5c-b996-4cc8-b30b-fc7b16268b29")]

0 commit comments

Comments
 (0)