Skip to content

Commit e888f89

Browse files
committed
Changed VPP registration
1 parent 462498b commit e888f89

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

Mvc.JQuery.Datatables.Example/App_Code/RegisterVirtualPathProvider.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@ public class RegisterVirtualPathProvider
66
{
77
public static void AppInitialize()
88
{
9-
//By default, we scan all non system assemblies for embedded resources
10-
var assemblies = System.Web.Compilation.BuildManager.GetReferencedAssemblies()
11-
.Cast<Assembly>()
12-
.Where(a => a.GetName().Name.StartsWith("Mvc.JQuery.DataTables"))
13-
.ToArray();
14-
System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(new EmbeddedResourceVirtualPathProvider.Vpp(assemblies.ToArray())
9+
System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(new EmbeddedResourceVirtualPathProvider.Vpp()
1510
{
16-
//you can do a specific assembly registration too. If you provide the assemly source path, it can read
17-
//from the source file so you can change the content while the app is running without needing to rebuild
18-
//{typeof(SomeAssembly.SomeClass).Assembly, @"..\SomeAssembly"}
11+
{typeof(Mvc.JQuery.DataTables.DataTablesHelper).Assembly, @"..\Mvc.JQuery.DataTables"},
12+
{typeof(Mvc.JQuery.DataTables.DataTableConfigVm).Assembly, @"..\Mvc.JQuery.DataTables.Core"}
1913
});
2014
}
2115
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:Boolean x:Key="/Default/Housekeeping/ProjectSettingsUpgraded/IsUpgraded/@EntryValue">True</s:Boolean></wpf:ResourceDictionary>

0 commit comments

Comments
 (0)