()
15 | .Where(a => a.GetName().Name.StartsWith("System") == false);
16 | System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(new EmbeddedResourceVirtualPathProvider.Vpp(assemblies.ToArray())
17 | {
18 | //you can do a specific assembly registration too. If you provide the assemly source path, it can read
19 | //from the source file so you can change the content while the app is running without needing to rebuild
20 | //{typeof(SomeAssembly.SomeClass).Assembly, @"..\SomeAssembly"}
21 | });
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/NugetTestWebProject/Default.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="NugetTestWebProject.WebForm1" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/NugetTestWebProject/Default.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace NugetTestWebProject
4 | {
5 | public partial class WebForm1 : System.Web.UI.Page
6 | {
7 | protected void Page_Load(object sender, EventArgs e)
8 | {
9 |
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/NugetTestWebProject/Default.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace NugetTestWebProject
11 | {
12 |
13 |
14 | public partial class WebForm1
15 | {
16 |
17 | ///
18 | /// form1 control.
19 | ///
20 | ///
21 | /// Auto-generated field.
22 | /// To modify move field declaration from designer file to code-behind file.
23 | ///
24 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/NugetTestWebProject/NugetTestWebProject.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 |
8 |
9 | 2.0
10 | {03165E98-56F6-48B5-9D13-0CDB5FA69B26}
11 | {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
12 | Library
13 | Properties
14 | NugetTestWebProject
15 | NugetTestWebProject
16 | v4.0
17 | true
18 |
19 |
20 | 4.0
21 |
22 |
23 |
24 | true
25 | full
26 | false
27 | bin\
28 | DEBUG;TRACE
29 | prompt
30 | 4
31 |
32 |
33 | pdbonly
34 | true
35 | bin\
36 | TRACE
37 | prompt
38 | 4
39 |
40 |
41 |
42 | ..\packages\EmbeddedResourceVirtualPathProvider.1.3.26\lib\net40\EmbeddedResourceVirtualPathProvider.dll
43 | True
44 |
45 |
46 |
47 | ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll
48 | True
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | ..\packages\WebActivatorEx.2.0.3\lib\net40\WebActivatorEx.dll
67 | True
68 |
69 |
70 |
71 |
72 |
73 |
74 | Designer
75 |
76 |
77 | Web.config
78 |
79 |
80 | Web.config
81 |
82 |
83 |
84 |
85 |
86 | Default.aspx
87 | ASPXCodeBehind
88 |
89 |
90 | Default.aspx
91 |
92 |
93 |
94 |
95 |
96 | {F220C6EC-A85F-41C4-BA6E-C92921DE318F}
97 | TestResourceLibrary
98 |
99 |
100 |
101 |
102 |
103 |
104 | 10.0
105 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 | True
115 | True
116 | 62200
117 | /
118 | http://localhost:62200/
119 | False
120 | False
121 |
122 |
123 | False
124 |
125 |
126 |
127 |
128 |
135 |
--------------------------------------------------------------------------------
/NugetTestWebProject/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("NugetTestWebProject")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("NugetTestWebProject")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("a2fd5a00-8b01-413a-8e08-dbb7cbba3293")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Revision and Build Numbers
33 | // by using the '*' as shown below:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/NugetTestWebProject/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
--------------------------------------------------------------------------------
/NugetTestWebProject/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
--------------------------------------------------------------------------------
/NugetTestWebProject/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/NugetTestWebProject/alert2.js:
--------------------------------------------------------------------------------
1 | alert("alert2.js from TestWebProject - overrides the referenced assembly")
--------------------------------------------------------------------------------
/NugetTestWebProject/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/README.markdown:
--------------------------------------------------------------------------------
1 | # EmbeddedResourceVirtualPathProvider #
2 |
3 | A custom VirtualPathProvider for IIS - load views and assets from Embedded Resources in referenced assemblies . To get started, install into your ASP.NET web application via nuget:
4 |
5 | > Install-Package EmbeddedResourceVirtualPathProvider
6 |
7 | This will add some code into `App_Start` registering the provider.
8 |
9 | Move views and assets into other assemblies, maintaining folder structure. e.g.
10 |
11 | `/MyAspNetApp/Views/Thing/Thing.cshtml -> /ThingComponent/Views/Thing/Thing.cshtml`
12 |
13 | And set the the files BuildAction as EmbbeddedResource. Make sure your assembly is referenced, and you're done!
14 |
15 | By default, all assemblies in the appdomain are scanned. You can restrict this in `App_Start\EmbeddedResourceVirtualPathProviderStart.cs` file. You can also map assemblies to their location on disk, so they ca nbe refereshed when you edit the files during development.
16 |
17 | There is some help at https://github.com/mcintyre321/EmbeddedResourceVirtualPathProvider/wiki/Help
18 |
19 |
20 | ## Install Actions
21 | On installing the package we'll get:
22 |
23 | * `App_Start/EmbeddedResourceVirtualPathProviderStart.cs` file created - it contains provider registration via WebActivator
24 | * section `system.webServer`/`handlers` in web.config will be updated with:
25 |
26 | ```
27 |
28 |
29 |
30 |
31 | ```
32 |
33 | * WebActivatorEx package will be installed
34 |
35 | If you don't want all these side effects then use package `EmbeddedResourceVirtualPathProvider.Core` which contains only an assembly.
36 |
37 |
38 | ## Dynamic Content Routing ##
39 |
40 | You can set up rules determining the order to check assemblies for resources, letting you (for example) have different view assemblies for different hostnames.
41 |
42 | Please check out my other projects!
43 |
44 | Cheers, Harry
45 |
46 | @mcintyre321
47 |
48 | MIT Licenced
49 |
50 |
51 |
52 |
53 | [](https://bitdeli.com/free "Bitdeli Badge")
54 |
55 |
--------------------------------------------------------------------------------
/TestResourceLibrary/3rd3Party/3select2-3.4.5/select2.js:
--------------------------------------------------------------------------------
1 | alert("3rd3Party/3select2-3.4.5/select2.js - works with more complex path")
--------------------------------------------------------------------------------
/TestResourceLibrary/3rd3Party/hammer.js-1.0.10/hammer.js:
--------------------------------------------------------------------------------
1 | alert("3rd3Party/hammer.js-1.0.10/hammer.js - works with more complex path")
--------------------------------------------------------------------------------
/TestResourceLibrary/Marker.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace TestResourceLibrary
7 | {
8 | public class Marker
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/TestResourceLibrary/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("TestResourceLibrary")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("TestResourceLibrary")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("fd2f201b-9dba-4048-8869-ef2342a2d846")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TestResourceLibrary/Scripts/alert-1.12.34567.min.js:
--------------------------------------------------------------------------------
1 | alert("Scripts/alert-1.12.34567.min.js - works with more complex path")
--------------------------------------------------------------------------------
/TestResourceLibrary/TestResourceLibrary.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | 8.0.30703
7 | 2.0
8 | {F220C6EC-A85F-41C4-BA6E-C92921DE318F}
9 | Library
10 | Properties
11 | TestResourceLibrary
12 | TestResourceLibrary
13 | v4.0
14 | 512
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
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 |
69 |
--------------------------------------------------------------------------------
/TestResourceLibrary/alert.js:
--------------------------------------------------------------------------------
1 | alert("alert.js (loaded from referenced assembly)")
--------------------------------------------------------------------------------
/TestResourceLibrary/alert2.js:
--------------------------------------------------------------------------------
1 | alert("alert2.js")
--------------------------------------------------------------------------------
/TestWebProject/App_Start/EmbeddedResourceVirtualPathProviderStart.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using System.Reflection;
3 |
4 | //[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(NugetTestWebProject.EmbeddedResourceVirtualPathProviderStart), "Start")]
5 |
6 | namespace TestWebProject
7 | {
8 | public static class EmbeddedResourceVirtualPathProviderStart
9 | {
10 | public static void Start()
11 | {
12 | //By default, we scan all non system assemblies for embedded resources
13 | var assemblies = System.Web.Compilation.BuildManager.GetReferencedAssemblies()
14 | .Cast()
15 | .Where(a => a.GetName().Name.StartsWith("System") == false);
16 |
17 | var vpp = new EmbeddedResourceVirtualPathProvider.Vpp(assemblies.ToArray());
18 |
19 | System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(vpp);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/TestWebProject/Default.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestWebProject.WebForm1" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/TestWebProject/Default.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.UI;
6 | using System.Web.UI.WebControls;
7 |
8 | namespace TestWebProject
9 | {
10 | public partial class WebForm1 : System.Web.UI.Page
11 | {
12 | protected void Page_Load(object sender, EventArgs e)
13 | {
14 | }
15 | }
16 | }
--------------------------------------------------------------------------------
/TestWebProject/Default.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace TestWebProject
11 | {
12 |
13 |
14 | public partial class WebForm1
15 | {
16 |
17 | ///
18 | /// form1 control.
19 | ///
20 | ///
21 | /// Auto-generated field.
22 | /// To modify move field declaration from designer file to code-behind file.
23 | ///
24 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TestWebProject/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="TestWebProject.Global" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/TestWebProject/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Security;
6 | using System.Web.SessionState;
7 |
8 | namespace TestWebProject
9 | {
10 | public class Global : System.Web.HttpApplication
11 | {
12 |
13 | protected void Application_Start(object sender, EventArgs e)
14 | {
15 | EmbeddedResourceVirtualPathProviderStart.Start();
16 | }
17 |
18 | protected void Session_Start(object sender, EventArgs e)
19 | {
20 |
21 | }
22 |
23 | protected void Application_BeginRequest(object sender, EventArgs e)
24 | {
25 | }
26 |
27 | protected void Application_AuthenticateRequest(object sender, EventArgs e)
28 | {
29 |
30 | }
31 |
32 | protected void Application_Error(object sender, EventArgs e)
33 | {
34 |
35 | }
36 |
37 | protected void Session_End(object sender, EventArgs e)
38 | {
39 |
40 | }
41 |
42 | protected void Application_End(object sender, EventArgs e)
43 | {
44 |
45 | }
46 | }
47 | }
--------------------------------------------------------------------------------
/TestWebProject/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("TestWebProject")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("TestWebProject")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("1741b638-0a80-4bcd-9839-1113958bdc30")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Revision and Build Numbers
33 | // by using the '*' as shown below:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/TestWebProject/TestWebProject.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 |
8 |
9 | 2.0
10 | {9A0094B7-E767-48FA-84F1-9CD2DD73CEC3}
11 | {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
12 | Library
13 | Properties
14 | TestWebProject
15 | TestWebProject
16 | v4.0
17 | true
18 |
19 |
20 | 4.0
21 |
22 |
23 |
24 | true
25 | full
26 | false
27 | bin\
28 | DEBUG;TRACE
29 | prompt
30 | 4
31 |
32 |
33 | pdbonly
34 | true
35 | bin\
36 | TRACE
37 | prompt
38 | 4
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 | Global.asax
67 |
68 |
69 |
70 | Default.aspx
71 | ASPXCodeBehind
72 |
73 |
74 | Default.aspx
75 |
76 |
77 |
78 |
79 | {6298C7D0-B42C-4014-B5DF-E2A871832A3F}
80 | EmbeddedResourceVirtualPathProvider
81 |
82 |
83 | {F220C6EC-A85F-41C4-BA6E-C92921DE318F}
84 | TestResourceLibrary
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 | web.config
93 |
94 |
95 |
96 |
97 | web.config
98 |
99 |
100 |
101 | 10.0
102 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 | True
112 | True
113 | 56338
114 | /
115 | http://localhost:56338/
116 | False
117 | False
118 |
119 |
120 | False
121 |
122 |
123 |
124 |
125 |
132 |
--------------------------------------------------------------------------------
/TestWebProject/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
--------------------------------------------------------------------------------
/TestWebProject/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
--------------------------------------------------------------------------------
/TestWebProject/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/TestWebProject/alert2.js:
--------------------------------------------------------------------------------
1 | alert("alert2.js from TestWebProject - overrides the referenced assembly")
--------------------------------------------------------------------------------
/nuget/EmbeddedResourceVirtualPathProvider.Core/EmbeddedResourceVirtualPathProvider.Core.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EmbeddedResourceVirtualPathProvider.Core
5 | $version$
6 | Harry McIntyre
7 | Harry McIntyre
8 | https://github.com/mcintyre321/EmbeddedResourceVirtualPathProvider
9 | false
10 | Enables ASP to read content files (e.g. .css, .js, .aspx) stored as embedded resources in referenced assemblies. This core package contains only an assembly, see also EmbeddedResourceVirtualPathProvider with bootstrap code for seamless integration into your app.
11 | asp.net portable embedded resources virtualpathprovider
12 |
13 |
14 |
--------------------------------------------------------------------------------
/nuget/EmbeddedResourceVirtualPathProvider.Core/lib/net40/placeholder.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcintyre321/EmbeddedResourceVirtualPathProvider/2f38cf2bc0e72052e03b4f36483d4ff45809fc45/nuget/EmbeddedResourceVirtualPathProvider.Core/lib/net40/placeholder.txt
--------------------------------------------------------------------------------
/nuget/EmbeddedResourceVirtualPathProvider/EmbeddedResourceVirtualPathProvider.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EmbeddedResourceVirtualPathProvider
5 | $version$
6 | Harry McIntyre
7 | Harry McIntyre
8 | https://github.com/mcintyre321/EmbeddedResourceVirtualPathProvider
9 | false
10 | Enables ASP to read content files (e.g. .css, .js, .aspx) stored as embedded resources in referenced assemblies. This full package contrains additional bootstrap template code and settings for seamless integration into apps.
11 | asp.net portable embedded resources virtualpathprovider
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/nuget/EmbeddedResourceVirtualPathProvider/content/App_Start/EmbeddedResourceVirtualPathProviderStart.cs.pp:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Linq;
3 |
4 | [assembly: WebActivatorEx.PostApplicationStartMethod(typeof($rootnamespace$.EmbeddedResourceVirtualPathProviderStart), "Start")]
5 |
6 | namespace $rootnamespace$
7 | {
8 | public static class EmbeddedResourceVirtualPathProviderStart
9 | {
10 | public static void Start()
11 | {
12 | //By default, we scan all non system assemblies for embedded resources
13 | var assemblies = System.Web.Compilation.BuildManager.GetReferencedAssemblies()
14 | .Cast()
15 | .Where(a => a.GetName().Name.StartsWith("System") == false);
16 | System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(new EmbeddedResourceVirtualPathProvider.Vpp(assemblies.ToArray())
17 | {
18 | //you can do a specific assembly registration too. If you provide the assemly source path, it can read
19 | //from the source file so you can change the content while the app is running without needing to rebuild
20 | //{typeof(SomeAssembly.SomeClass).Assembly, @"..\SomeAssembly"}
21 | });
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/nuget/EmbeddedResourceVirtualPathProvider/content/web.config.transform:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/packages/EmbeddedResourceVirtualPathProvider.1.3.26/EmbeddedResourceVirtualPathProvider.1.3.26.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcintyre321/EmbeddedResourceVirtualPathProvider/2f38cf2bc0e72052e03b4f36483d4ff45809fc45/packages/EmbeddedResourceVirtualPathProvider.1.3.26/EmbeddedResourceVirtualPathProvider.1.3.26.nupkg
--------------------------------------------------------------------------------
/packages/EmbeddedResourceVirtualPathProvider.1.3.26/content/App_Start/EmbeddedResourceVirtualPathProviderStart.cs.pp:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Linq;
3 |
4 | [assembly: WebActivatorEx.PostApplicationStartMethod(typeof($rootnamespace$.EmbeddedResourceVirtualPathProviderStart), "Start")]
5 |
6 | namespace $rootnamespace$
7 | {
8 | public static class EmbeddedResourceVirtualPathProviderStart
9 | {
10 | public static void Start()
11 | {
12 | //By default, we scan all non system assemblies for embedded resources
13 | var assemblies = System.Web.Compilation.BuildManager.GetReferencedAssemblies()
14 | .Cast()
15 | .Where(a => a.GetName().Name.StartsWith("System") == false);
16 | System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(new EmbeddedResourceVirtualPathProvider.Vpp(assemblies.ToArray())
17 | {
18 | //you can do a specific assembly registration too. If you provide the assemly source path, it can read
19 | //from the source file so you can change the content while the app is running without needing to rebuild
20 | //{typeof(SomeAssembly.SomeClass).Assembly, @"..\SomeAssembly"}
21 | });
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/packages/EmbeddedResourceVirtualPathProvider.1.3.26/content/web.config.transform:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/packages/EmbeddedResourceVirtualPathProvider.1.3.26/lib/net40/EmbeddedResourceVirtualPathProvider.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcintyre321/EmbeddedResourceVirtualPathProvider/2f38cf2bc0e72052e03b4f36483d4ff45809fc45/packages/EmbeddedResourceVirtualPathProvider.1.3.26/lib/net40/EmbeddedResourceVirtualPathProvider.dll
--------------------------------------------------------------------------------
/packages/EmbeddedResourceVirtualPathProvider.1.3.26/lib/net40/EmbeddedResourceVirtualPathProvider.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcintyre321/EmbeddedResourceVirtualPathProvider/2f38cf2bc0e72052e03b4f36483d4ff45809fc45/packages/EmbeddedResourceVirtualPathProvider.1.3.26/lib/net40/EmbeddedResourceVirtualPathProvider.pdb
--------------------------------------------------------------------------------
/packages/EmbeddedResourceVirtualPathProvider.1.3.26/lib/net40/placeholder.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcintyre321/EmbeddedResourceVirtualPathProvider/2f38cf2bc0e72052e03b4f36483d4ff45809fc45/packages/EmbeddedResourceVirtualPathProvider.1.3.26/lib/net40/placeholder.txt
--------------------------------------------------------------------------------
/packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcintyre321/EmbeddedResourceVirtualPathProvider/2f38cf2bc0e72052e03b4f36483d4ff45809fc45/packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcintyre321/EmbeddedResourceVirtualPathProvider/2f38cf2bc0e72052e03b4f36483d4ff45809fc45/packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll
--------------------------------------------------------------------------------
/packages/WebActivator.1.4.1/WebActivator.1.4.1.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcintyre321/EmbeddedResourceVirtualPathProvider/2f38cf2bc0e72052e03b4f36483d4ff45809fc45/packages/WebActivator.1.4.1/WebActivator.1.4.1.nupkg
--------------------------------------------------------------------------------
/packages/WebActivator.1.4.1/lib/net40/WebActivator.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcintyre321/EmbeddedResourceVirtualPathProvider/2f38cf2bc0e72052e03b4f36483d4ff45809fc45/packages/WebActivator.1.4.1/lib/net40/WebActivator.dll
--------------------------------------------------------------------------------
/packages/WebActivatorEx.2.0.3/WebActivatorEx.2.0.3.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcintyre321/EmbeddedResourceVirtualPathProvider/2f38cf2bc0e72052e03b4f36483d4ff45809fc45/packages/WebActivatorEx.2.0.3/WebActivatorEx.2.0.3.nupkg
--------------------------------------------------------------------------------
/packages/WebActivatorEx.2.0.3/lib/net40/WebActivatorEx.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcintyre321/EmbeddedResourceVirtualPathProvider/2f38cf2bc0e72052e03b4f36483d4ff45809fc45/packages/WebActivatorEx.2.0.3/lib/net40/WebActivatorEx.dll
--------------------------------------------------------------------------------
/packages/repositories.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------