Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Embedded views support is broken #705

Closed
alexbeletsky opened this Issue · 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

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

@alexbeletsky

Will verify that..

@thecodejunkie

@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

@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
Something went wrong with that request. Please try again.