Skip to content

Commit cf877f8

Browse files
update build script to skip .net framework tests on non-Windows platforms
1 parent 75d7bc9 commit cf877f8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build.cake

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ var packPath = Directory("./src/IdentityServer4");
88
var buildArtifacts = Directory("./artifacts/packages");
99

1010
var isAppVeyor = AppVeyor.IsRunningOnAppVeyor;
11+
var isWindows = IsRunningOnWindows();
1112

1213
///////////////////////////////////////////////////////////////////////////////
1314
// Clean
@@ -30,7 +31,7 @@ Task("Build")
3031
Configuration = configuration
3132
};
3233

33-
var projects = GetFiles("./**/*.csproj");
34+
var projects = GetFiles("./src/**/*.csproj");
3435

3536
foreach(var project in projects)
3637
{
@@ -51,6 +52,12 @@ Task("Test")
5152
Configuration = configuration
5253
};
5354

55+
if (!isWindows)
56+
{
57+
Information("Not running on Windows - skipping tests for .NET Framework");
58+
settings.Framework = "netcoreapp2.0";
59+
}
60+
5461
var projects = GetFiles("./test/**/*.csproj");
5562
foreach(var project in projects)
5663
{

0 commit comments

Comments
 (0)