Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Compile Razor Views into a .dll Natively #2260

Closed
rudarobson opened this issue Mar 25, 2015 · 4 comments
Closed

Compile Razor Views into a .dll Natively #2260

rudarobson opened this issue Mar 25, 2015 · 4 comments

Comments

@rudarobson
Copy link

Compile .cshtml files into a single .dll file for deploying views
Would also be nice to support "html pack" automatically handling cache (Not Modified)

for bigger projects would also be nice to distribute the views into different .dlls, and having a file that knows in which .dll that resource is placed

** what I meant about html pack is to just put the html into the .dll and use the .dll creation date to handle the NotModified for http caching

It enables, and makes easier, to create a UI project, handling only views, and controllers for those views, static content etc... into a completely separate project..

And also is possible to deploy many UI projects into same application (I do it nowadays but uploading lots of files, packing would be much easier)

for example.. creating an
usual user interface project
and an admin user interface project

@danroth27 danroth27 added this to the Backlog milestone Mar 25, 2015
@danroth27
Copy link
Member

danroth27 commented Mar 25, 2015

This definitely something we want to look at improving, but probably not something we will get to for this release. Adding to the backlog.

You can take a look at how we currently do this in our Diagnostics package:
https://github.com/aspnet/Diagnostics/tree/dev/src/Microsoft.AspNetCore.Diagnostics
https://github.com/aspnet/Common/tree/dev/shared/Microsoft.Extensions.RazorViews.Sources
https://github.com/aspnet/Razor/tree/dev/src/RazorPageGenerator

@danroth27
Copy link
Member

This is largely a duplicate of #3917.

@bjorn-ali-goransson
Copy link

@danroth27 care to edit your links? They 404'...

@danroth27
Copy link
Member

@bjorn-ali-goransson I think those are the new links

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants