Comments (3)
Hi. I'm thinking about this. I don't really want to add a second package if we can avoid it, so lets go a bit deeper...
- You already have startup code - surely you can just delete the included cs file once it's added? It only happens when you install.
- You say WebActivatorEx is unneeded. Is there a better way of registering the VPP?
from embeddedresourcevirtualpathprovider.
You already have startup code - surely you can just delete the included cs file once it's added? It only happens when you install
Yeah, but it's a library (package) which is installed by other people in their apps, so they will have to do additional thing.
App
-> Lib1 (with bootstrap code), depends on VPP
-> VPP , depends on WebActivator + installs a content script
As I understand NuGet will install VPP into the app as transitive dependency (honestly I didn't verify that NuGet installs content files in such a case, but it should).
You say WebActivatorEx is unneeded. Is there a better way of registering the VPP?
In general I don't think there is another good way, but I just have my own WebActivator (forked) which
do the same.
My lib already has bootstrap logic with registering different stuff, so I was going to add just registering VPP as well in it. But I'm afraid that people who installs the lib won't notice additional script in App_Start and leave it (or do notice but don't touch it). So they'll have two registrations of VPP which is not good I believe. It's kind of dilemma what to do: keep my own registration and tell/doc that "you need to delete additional file" or just let them do registration on their own.
from embeddedresourcevirtualpathprovider.
See #38
from embeddedresourcevirtualpathprovider.
Related Issues (20)
- App_Code instead of App_Start HOT 9
- Trying to get working with MVC 4 HOT 6
- Does not work in IIS HOT 1
- Is this work for Asp.net 5? (Asp.net vNext, Asp.net MVC 6) HOT 3
- Files 'placeholder.txt' and content/RegisterVirtualPathProvider.cs in a config package
- Usage with MVC bundles HOT 2
- Simple support for a little diagnostics HOT 2
- Pull requests get deployed to NuGet HOT 1
- Repository contains binaries in sample projects HOT 4
- Does not support complicated folder structures HOT 1
- Using "Enabling debugging for embedded razor views" doesn't works HOT 6
- VPP Not Working on Integrated IIS7 Azure HOT 4
- Locked assembly file after Publish HOT 12
- Bundling and filenames with dots HOT 1
- Load views from different assemblies based the URL
- Please remove content scripts HOT 10
- Publish Precompiled project not working HOT 2
- EmbeddedResourcePath Regex Parser Bug HOT 2
- How do I get the VPP to pick-up changes without restarting my web app? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embeddedresourcevirtualpathprovider.