-
Notifications
You must be signed in to change notification settings - Fork 239
/
Copy pathrakefile.rb
118 lines (104 loc) · 4.34 KB
/
rakefile.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
require 'albacore' # >= 0.2.7
require 'fileutils'
load './version.rb'
task :default => [:build]
assemblyinfo :generate_pagedlist_assemblyinfo do |asm|
asm.version = PAGEDLIST_VERSION
asm.company_name = "Troy Goode"
asm.product_name = "PagedList"
asm.title = "PagedList"
asm.description = "PagedList makes it easier for .Net developers to write paging code. It allows you to take any IEnumerable(T) and by specifying the page size and desired page index, select only a subset of that list. PagedList also provides properties that are useful when building UI paging controls."
asm.copyright = "MIT License"
asm.custom_attributes \
:CLSCompliant => true,
:ComVisible => false,
:Guid => "1d709432-45fa-4475-a403-b2310a47d0a6",
:AllowPartiallyTrustedCallers => nil,
:AssemblyFileVersion => PAGEDLIST_VERSION,
:AssemblyConfiguration => '',
:AssemblyTrademark => '',
:AssemblyCulture => ''
asm.custom_data "[assembly: SecurityRules(SecurityRuleSet.Level1)]"
asm.namespaces "System", "System.Security"
asm.output_file = "src/PagedList/Properties/AssemblyInfo.cs"
end
assemblyinfo :generate_pagedlistmvc_assemblyinfo do |asm|
asm.version = PAGEDLIST_MVC_VERSION
asm.company_name = "Troy Goode"
asm.product_name = "PagedList.Mvc"
asm.title = "PagedList.Mvc"
asm.description = "Asp.Net MVC HtmlHelper method for generating paging control for use with PagedList library."
asm.copyright = "MIT License"
asm.custom_attributes \
:CLSCompliant => true,
:ComVisible => false,
:Guid => "eb684fee-2094-4833-ae61-f9bfcab34abd",
:AllowPartiallyTrustedCallers => nil,
:AssemblyFileVersion => PAGEDLIST_MVC_VERSION,
:AssemblyConfiguration => '',
:AssemblyTrademark => '',
:AssemblyCulture => ''
asm.custom_data "[assembly: SecurityRules(SecurityRuleSet.Level1)]"
asm.namespaces "System", "System.Security"
asm.output_file = "src/PagedList.Mvc/Properties/AssemblyInfo.cs"
end
nuspec :generate_pagedlist_nuspec do |nuspec|
nuspec.title = "$id$"
nuspec.id = "$id$"
nuspec.version = "$version$"
nuspec.authors = "$author$"
nuspec.owners = "TroyGoode"
nuspec.description = "$description$"
nuspec.language = "en-US"
nuspec.licenseUrl = "http://www.opensource.org/licenses/mit-license.php"
nuspec.projectUrl = "http://github.com/TroyGoode/PagedList"
nuspec.tags = "paging pager page infinitescroll ajax mvc"
nuspec.output_file = "src/PagedList/PagedList.nuspec"
end
nuspec :generate_pagedlistmvc_nuspec do |nuspec|
nuspec.title = "$id$"
nuspec.id = "$id$"
nuspec.version = "$version$"
nuspec.authors = "$author$"
nuspec.owners = "TroyGoode"
nuspec.description = "$description$"
nuspec.language = "en-US"
nuspec.licenseUrl = "http://www.opensource.org/licenses/mit-license.php"
nuspec.projectUrl = "http://github.com/TroyGoode/PagedList"
nuspec.tags = "paging pager page infinitescroll ajax mvc"
nuspec.dependency "PagedList", PAGEDLIST_VERSION
nuspec.file "..\\PagedList.Mvc4.Example\\Content\\PagedList.css", "Content\\Content"
nuspec.output_file = "src/PagedList.Mvc/PagedList.Mvc.nuspec"
end
msbuild :build => [:generate_pagedlist_assemblyinfo, :generate_pagedlistmvc_assemblyinfo, :generate_pagedlist_nuspec, :generate_pagedlistmvc_nuspec] do |msb|
msb.properties :configuration => :Debug
msb.targets :Clean, :Rebuild
msb.solution = "src/PagedList.sln"
end
xunit :test => :build do |xunit|
xunit.command = "src/PagedList.Tests/Dependencies/xunit-1.8/xunit.console.clr4.exe"
xunit.assembly = "src/PagedList.Tests/bin/debug/PagedList.Tests.dll"
end
msbuild :release => :test do |msb|
msb.properties :configuration => :Release
msb.targets :Clean, :Rebuild
msb.solution = "src/PagedList.sln"
end
nugetpack :package_pagedlist => :release do |nuget|
nuget.nuspec = './src/PagedList/PagedList.csproj -Prop Configuration=Release'
nuget.output = './packages/'
end
nugetpack :package_pagedlistmvc => :release do |nuget|
nuget.nuspec = './src/PagedList.Mvc/PagedList.Mvc.csproj -Prop Configuration=Release'
nuget.output = './packages/'
end
task :pack => [:package_pagedlist, :package_pagedlistmvc] do
end
nugetpush :push_pagedlist => :package_pagedlist do |nuget|
nuget.package = "packages\\PagedList.#{PAGEDLIST_VERSION}.0.0.nupkg"
end
nugetpush :push_pagedlistmvc => :package_pagedlistmvc do |nuget|
nuget.package = "packages\\PagedList.Mvc.#{PAGEDLIST_MVC_VERSION}.0.0.nupkg"
end
task :push => [:push_pagedlist, :push_pagedlistmvc] do
end