Skip to content

Commit e96e3af

Browse files
committed
Upgrade dotnet SDK and simplify Cake script
1 parent 8ded8ef commit e96e3af

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ addons:
2222
osx_image: xcode7.2
2323

2424
# Ensure that .NET Core is installed
25-
dotnet: 2.1.301
25+
dotnet: 2.1.403
2626
# Ensure Mono is installed
2727
mono: latest
2828

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ environment:
2222

2323
build_script:
2424
# Install .NET Core SDK
25-
- ps: choco install dotnetcore-sdk --no-progress --confirm --version 2.1.301
25+
- ps: choco install dotnetcore-sdk --no-progress --confirm --version 2.1.403
2626
- ps: .\build.ps1
2727

2828
test: off

build.cake

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
using System.Text.RegularExpressions;
2-
using System.Xml.Linq;
3-
41
var target = Argument("Target", "Default");
52
var configuration =
63
HasArgument("Configuration") ? Argument<string>("Configuration") :
@@ -40,17 +37,14 @@ Task("Restore")
4037
.IsDependentOn("Restore")
4138
.Does(() =>
4239
{
43-
foreach(var project in GetFiles("./**/*.csproj"))
44-
{
45-
DotNetCoreBuild(
46-
project.GetDirectory().FullPath,
47-
new DotNetCoreBuildSettings()
48-
{
49-
Configuration = configuration,
50-
NoRestore = true,
51-
VersionSuffix = versionSuffix
52-
});
53-
}
40+
DotNetCoreBuild(
41+
".",
42+
new DotNetCoreBuildSettings()
43+
{
44+
Configuration = configuration,
45+
NoRestore = true,
46+
VersionSuffix = versionSuffix
47+
});
5448
});
5549

5650
Task("Test")

0 commit comments

Comments
 (0)