-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from neekgreen/feature/vnext
Feature/vnext
- Loading branch information
Showing
43 changed files
with
1,020 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# PaginableCollections [![Build status](https://ci.appveyor.com/api/projects/status/8hedo7ja62gaq022?svg=true)](https://ci.appveyor.com/project/neekgreen/paginablecollections) | ||
A light weight pagination framework. | ||
PaginableCollections | ||
==================== | ||
|
||
[![Build status](https://ci.appveyor.com/api/projects/status/8hedo7ja62gaq022?svg=true)](https://ci.appveyor.com/project/neekgreen/paginablecollections) | ||
[![NuGet](https://img.shields.io/nuget/v/paginablecollections.svg)](https://www.nuget.org/packages/paginablecollections) | ||
|
||
A light weight pagination framework for .NET and .NET Core. | ||
|
||
### Installing PaginableCollections | ||
|
||
You should install [PaginableCollections with NuGet](https://www.nuget.org/packages/paginablecollections): | ||
|
||
Install-Package PaginableCollections | ||
|
||
This command will download and install PaginableCollections. Let me know if you have questions! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
//#addin nuget:?package=Cake.AppVeyor | ||
|
||
var target = Argument("Target", "Default"); | ||
|
||
// Configuration - The build configuration (Debug/Release) to use. | ||
// 1. If command line parameter parameter passed, use that. | ||
// 2. Otherwise if an Environment variable exists, use that. | ||
var configuration = "Release"; | ||
// HasArgument("Configuration") ? Argument("Configuration") : | ||
//EnvironmentVariable("Configuration") != null ? EnvironmentVariable("BuildNumber") : "Release"; | ||
|
||
|
||
var buildNumber = | ||
HasArgument("BuildNumber") ? Argument<int>("BuildNumber") : | ||
AppVeyor.IsRunningOnAppVeyor ? AppVeyor.Environment.Build.Number : | ||
EnvironmentVariable("BuildNumber") != null ? int.Parse(EnvironmentVariable("BuildNumber")) : 1; | ||
|
||
var artifactsDirectory = Directory("./artifacts"); | ||
|
||
Task("Clean") | ||
.Does(() => | ||
{ | ||
CleanDirectory(artifactsDirectory); | ||
}); | ||
|
||
Task("Restore") | ||
.IsDependentOn("Clean") | ||
.Does(() => | ||
{ | ||
DotNetCoreRestore(); | ||
}); | ||
|
||
Task("Build") | ||
.IsDependentOn("Restore") | ||
.Does(() => | ||
{ | ||
var projects = GetFiles("./**/*.csproj"); | ||
foreach(var project in projects) | ||
{ | ||
DotNetCoreBuild( | ||
project.GetDirectory().FullPath, | ||
new DotNetCoreBuildSettings() | ||
{ | ||
Configuration = configuration | ||
}); | ||
} | ||
}); | ||
|
||
Task("Test") | ||
.IsDependentOn("Build") | ||
.Does(() => | ||
{ | ||
var projects = GetFiles("./tests/**/*.csproj"); | ||
foreach(var project in projects) | ||
{ | ||
DotNetCoreTest( | ||
project.FullPath, | ||
new DotNetCoreTestSettings() | ||
{ | ||
Configuration = configuration, | ||
NoBuild = true | ||
}); | ||
} | ||
}); | ||
|
||
Task("Pack") | ||
.IsDependentOn("Test") | ||
.Does(() => | ||
{ | ||
var projects = GetFiles("./src/**/*.csproj"); | ||
foreach (var project in projects) | ||
{ | ||
DotNetCorePack( | ||
project.GetDirectory().FullPath, | ||
new DotNetCorePackSettings() | ||
{ | ||
Configuration = configuration, | ||
OutputDirectory = artifactsDirectory, | ||
}); | ||
} | ||
}); | ||
|
||
|
||
Task("Default") | ||
.IsDependentOn("Pack"); | ||
|
||
|
||
|
||
RunTarget(target); |
Oops, something went wrong.