Skip to content

Commit 6c636ea

Browse files
committed
Changd ModeBinder registeration to use template
1 parent 4185fa5 commit 6c636ea

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

Mvc.JQuery.Datatables.Example/App_GlobalResources/UserViewResource.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Mvc.JQuery.Datatables.Example/Mvc.JQuery.Datatables.Example.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<IISExpressUseClassicPipelineMode />
2828
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
2929
<RestorePackages>true</RestorePackages>
30+
<MvcProjectUpgradeChecked>true</MvcProjectUpgradeChecked>
3031
</PropertyGroup>
3132
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3233
<DebugSymbols>true</DebugSymbols>

Mvc.JQuery.Datatables.sln

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2012
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.30110.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{6A659A82-DD26-4E17-B90E-6D082848FC1A}"
7+
ProjectSection(SolutionItems) = preProject
8+
.nuget\NuGet.Config = .nuget\NuGet.Config
9+
.nuget\NuGet.exe = .nuget\NuGet.exe
10+
.nuget\NuGet.targets = .nuget\NuGet.targets
11+
EndProjectSection
12+
EndProject
413
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mvc.JQuery.Datatables", "Mvc.JQuery.Datatables\Mvc.JQuery.Datatables.csproj", "{389ADE94-7C32-4885-812E-68A2A74C82D8}"
514
EndProject
615
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mvc.JQuery.Datatables.Example", "Mvc.JQuery.Datatables.Example\Mvc.JQuery.Datatables.Example.csproj", "{476D3266-8699-4E89-A528-646C1235EEB1}"
@@ -9,13 +18,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mvc.JQuery.Datatables.Templ
918
EndProject
1019
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mvc.JQuery.DataTables.Tests", "Mvc.Jquery.DataTables.Tests\Mvc.JQuery.DataTables.Tests.csproj", "{53671C41-666D-4269-A12A-BA6C2F209E7A}"
1120
EndProject
12-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{6A659A82-DD26-4E17-B90E-6D082848FC1A}"
13-
ProjectSection(SolutionItems) = preProject
14-
.nuget\NuGet.Config = .nuget\NuGet.Config
15-
.nuget\NuGet.exe = .nuget\NuGet.exe
16-
.nuget\NuGet.targets = .nuget\NuGet.targets
17-
EndProjectSection
18-
EndProject
1921
Global
2022
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2123
Debug|Any CPU = Debug|Any CPU

Mvc.JQuery.Datatables/Mvc.JQuery.Datatables.nuspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
<copyright>Copyright 2011</copyright>
1313
<tags>jquery datatables iqueryable razor</tags>
1414
</metadata>
15+
<!--files>
16+
<file src="RegisterDatatablesModelBinder.cs.pp" target="Content" />
17+
</files-->
1518
</package>

Mvc.JQuery.Datatables/RegisterDatatablesModelBinder.cs renamed to Mvc.JQuery.Datatables/RegisterDatatablesModelBinder.cs.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[assembly: PreApplicationStartMethod(typeof(RegisterDatatablesModelBinder), "Start")]
77

8-
namespace Mvc.JQuery.Datatables {
8+
namespace $rootnamespace$ {
99
public static class RegisterDatatablesModelBinder {
1010
public static void Start() {
1111
if (!ModelBinders.Binders.ContainsKey(typeof(DataTablesParam)))

0 commit comments

Comments
 (0)