Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Embedded views support is broken #705

Closed
alexbeletsky opened this Issue · 7 comments

3 participants

Alexander Beletsky Andreas Håkansson kipmasi
Alexander Beletsky

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.

Andreas Håkansson

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

Alexander Beletsky

Will verify that..

Andreas Håkansson

@alexanderbeletsky did you get a chance to try this?

Alexander Beletsky

@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.

Andreas Håkansson

@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.