{"id":17244092,"url":"https://github.com/mcintyre321/embeddedresourcevirtualpathprovider","last_synced_at":"2025-04-14T04:04:35.969Z","repository":{"id":60774169,"uuid":"2047983","full_name":"mcintyre321/EmbeddedResourceVirtualPathProvider","owner":"mcintyre321","description":"A custom VirtualPathProvider for IIS - load views and assets from Embedded Resources in referenced assemblies ","archived":false,"fork":false,"pushed_at":"2017-07-25T12:44:05.000Z","size":207,"stargazers_count":64,"open_issues_count":6,"forks_count":42,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-02-15T07:17:42.087Z","etag":null,"topics":["asp-net","c-sharp","embedded-resources"],"latest_commit_sha":null,"homepage":"http://www.adverseconditionals.com/2011/07/portable-aspnet-code-using.html","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcintyre321.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-14T15:20:01.000Z","updated_at":"2025-02-09T04:09:58.000Z","dependencies_parsed_at":"2022-10-04T15:31:52.552Z","dependency_job_id":null,"html_url":"https://github.com/mcintyre321/EmbeddedResourceVirtualPathProvider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcintyre321%2FEmbeddedResourceVirtualPathProvider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcintyre321%2FEmbeddedResourceVirtualPathProvider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcintyre321%2FEmbeddedResourceVirtualPathProvider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcintyre321%2FEmbeddedResourceVirtualPathProvider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcintyre321","download_url":"https://codeload.github.com/mcintyre321/EmbeddedResourceVirtualPathProvider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240149887,"owners_count":19755756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp-net","c-sharp","embedded-resources"],"created_at":"2024-10-15T06:17:44.259Z","updated_at":"2025-02-24T16:31:11.107Z","avatar_url":"https://github.com/mcintyre321.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EmbeddedResourceVirtualPathProvider #\n\nA 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:\n\n\u003e Install-Package EmbeddedResourceVirtualPathProvider\n\nThis will add some code into `App_Start` registering the provider.\n\nMove views and assets into other assemblies, maintaining folder structure. e.g.\n\n`/MyAspNetApp/Views/Thing/Thing.cshtml -\u003e /ThingComponent/Views/Thing/Thing.cshtml`\n\nAnd set the the files BuildAction as EmbbeddedResource. Make sure your assembly is referenced, and you're done!\n\nBy 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.\n\nThere is some help at https://github.com/mcintyre321/EmbeddedResourceVirtualPathProvider/wiki/Help\n\n\n## Install Actions\nOn installing the package we'll get:\n\n* `App_Start/EmbeddedResourceVirtualPathProviderStart.cs` file created - it contains provider registration via WebActivator\n* section `system.webServer`/`handlers` in web.config will be updated with:\n\n```\n\u003cadd verb=\"GET\" path=\"*.js\" name=\"Static for js\" type=\"System.Web.StaticFileHandler\" /\u003e\n\u003cadd verb=\"GET\" path=\"*.css\" name=\"Static for css\" type=\"System.Web.StaticFileHandler\" /\u003e\n\u003cadd verb=\"GET\" path=\"*.png\" name=\"Static for png\" type=\"System.Web.StaticFileHandler\" /\u003e\n\u003cadd verb=\"GET\" path=\"*.jpg\" name=\"Static for jpg\" type=\"System.Web.StaticFileHandler\" /\u003e\n```\n\n* WebActivatorEx package will be installed\n\nIf you don't want all these side effects then use package `EmbeddedResourceVirtualPathProvider.Core` which contains only an assembly.\n\n\n## Dynamic Content Routing ##\n\nYou can set up rules determining the order to check assemblies for resources, letting you (for example) have different view assemblies for different hostnames.\n\nPlease check out my other projects! \n\nCheers, Harry\n\n@mcintyre321\n\nMIT Licenced\n\n\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/mcintyre321/embeddedresourcevirtualpathprovider/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcintyre321%2Fembeddedresourcevirtualpathprovider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcintyre321%2Fembeddedresourcevirtualpathprovider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcintyre321%2Fembeddedresourcevirtualpathprovider/lists"}