Skip to content

Commit 3d4d251

Browse files
author
Nick Craver
committed
Switch version suffix to be a build parameter
Note: build.sh needs love from OS X/*nix later to match
1 parent 41f1fe3 commit 3d4d251

File tree

9 files changed

+22
-17
lines changed

9 files changed

+22
-17
lines changed

Dapper.Contrib/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"authors": [ "Sam Saffron", "Johan Danforth" ],
1414
"description": "The official collection of get, insert, update and delete helpers for dapper.net. Also handles lists of entities and optional \"dirty\" tracking of interface-based entities.",
15-
"version": "1.50-rc2",
15+
"version": "1.50-*",
1616
"title": "Dapper.Contrib",
1717
"copyright": "2016 Stack Exchange, Inc.",
1818
"dependencies": {

Dapper.EntityFramework.StrongName/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"authors": [ "Marc Gravell", "Nick Craver" ],
1414
"description": "Extension handlers for entity framework",
15-
"version": "1.50-rc2",
15+
"version": "1.50-*",
1616
"title": "Dapper entity framework type handlers (with a strong name)",
1717
"copyright": "2016 Stack Exchange, Inc.",
1818
"dependencies": {

Dapper.EntityFramework/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"authors": [ "Marc Gravell", "Nick Craver" ],
1414
"description": "Extension handlers for entity framework",
15-
"version": "1.50-rc2",
15+
"version": "1.50-*",
1616
"title": "Dapper entity framework type handlers",
1717
"copyright": "2016 Stack Exchange, Inc.",
1818
"dependencies": {

Dapper.SqlBuilder/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"authors": [ "Sam Saffron, Johan Danforth" ],
1414
"description": "The Dapper SqlBuilder component, for building SQL queries dynamically.",
15-
"version": "1.50-rc2",
15+
"version": "1.50-*",
1616
"title": "Dapper SqlBuilder component",
1717
"copyright": "2016 Stack Exchange, Inc.",
1818
"dependencies": {

Dapper.StrongName/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"authors": [ "Sam Saffron", "Marc Gravell", "Nick Craver" ],
1515
"description": "A high performance Micro-ORM supporting SQL Server, MySQL, Sqlite, SqlCE, Firebird etc..",
16-
"version": "1.50-rc2",
16+
"version": "1.50-*",
1717
"title": "Dapper dot net (strong named)",
1818
"copyright": "2016 Stack Exchange, Inc.",
1919
"dependencies": {

Dapper.Tests.Contrib/project.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,12 @@
1717
"copyright": "2016 Stack Exchange, Inc.",
1818
"dependencies": {
1919
"Dapper": {
20-
"version": "1.50-*",
2120
"target": "project"
2221
},
2322
"Dapper.Contrib": {
24-
"version": "1.50-*",
2523
"target": "project"
2624
},
2725
"Dapper.SqlBuilder": {
28-
"version": "1.50-*",
2926
"target": "project"
3027
}
3128
},

Dapper.Tests/project.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"copyright": "2016 Stack Exchange, Inc.",
1818
"dependencies": {
1919
"Dapper": {
20-
"version": "1.50-*",
2120
"target": "project"
2221
},
2322
"Dapper.Contrib": {

Dapper/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"url": "https://github.com/StackExchange/dapper-dot-net"
1212
}
1313
},
14-
"version": "1.50-rc2",
14+
"version": "1.50-*",
1515
"authors": [ "Sam Saffron", "Marc Gravell", "Nick Craver" ],
1616
"description": "A high performance Micro-ORM supporting SQL Server, MySQL, Sqlite, SqlCE, Firebird etc..",
1717
"title": "Dapper dot net",

build.ps1

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
param(
2+
[parameter(Position=0)][string] $PreReleaseSuffix = ''
3+
)
14
$solutionPath = split-path $MyInvocation.MyCommand.Definition
25
$getDotNet = join-path $solutionPath "tools\install.ps1"
36

@@ -39,20 +42,26 @@ if ($LASTEXITCODE -ne 0)
3942

4043
# Build all
4144
dir "Dapper*" | where {$_.PsIsContainer} |
42-
foreach {
43-
& $dotnet build "$_"
45+
foreach {
46+
if ($PreReleaseSuffix) {
47+
& $dotnet build "$_" --version-suffix "$PreReleaseSuffix"
48+
} else {
49+
& $dotnet build "$_"
50+
}
4451
}
4552
# Run tests
4653
dir "*.Tests*" | where {$_.PsIsContainer} |
4754
foreach {
48-
pushd "$_"
49-
& $dotnet test
50-
popd
55+
& $dotnet test "$_"
5156
}
5257
# Package all
5358
dir "Dapper*" | where {$_.PsIsContainer -and $_ -NotLike "*.Tests*" } |
54-
foreach {
55-
& $dotnet pack "$_" -c Release -o .\.nupkg\
59+
foreach {
60+
if ($PreReleaseSuffix) {
61+
& $dotnet pack "$_" -c Release -o .\.nupkg\ --version-suffix "$PreReleaseSuffix"
62+
} else {
63+
& $dotnet pack "$_" -c Release -o .\.nupkg\
64+
}
5665
}
5766

5867
ls */*/project.json | foreach { echo $_.FullName} |

0 commit comments

Comments
 (0)