Embedded views support is broken #705

Closed
alexbeletsky opened this Issue Aug 13, 2012 · 7 comments

3 participants

@alexbeletsky

The issue is originally started on SO. Here is the link.

Embedded views does not work in v.0.11.0, I can't test in on latest version from github, since I misunderstand the versioning.

@thecodejunkie
Custodians of the Super-Duper-Happy-Path member

@alexanderbeletsky have you had a chance to try this on the 0.12.x releases ?

@alexbeletsky

Will verify that..

@thecodejunkie
Custodians of the Super-Duper-Happy-Path member

@alexanderbeletsky did you get a chance to try this?

@alexbeletsky

@thecodejunkie sorry, it took awhile.

  1. Created new Nancy.Hosting.Aspnet 0.12.1.0 application
  2. Setup ResourceViewLocationProvider
  3. Added simple Home.html as embedded resource.
  4. Run app - OK

It works as expected now. This issue can be closed.

@thecodejunkie
Custodians of the Super-Duper-Happy-Path member

@alexanderbeletsky thank you for the update!

@kipmasi

Looks like this bug is back with version 0.23.0, exactly as it was when this issue was first created. Setting the view location provider as ResourceViewLocationProvider appears to be disregarded.

@kipmasi

Disregard. The mistake was on my end. My project's default namespace was incorrect, and so the embedded resources were packaged in a different resource from what I expected, and so the view renderer couldn't find the view files at the namespace I'd provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment