问题
I had created a new module to my orchard application. I'm unable to add styles and script to my views through references. It is showing 404 error to the path even though the path is correct. After reviewing some articles I understood we need to provide the path with Style.Require("stylename") & Script as Script.Require("Scriptname"). While doing it in my views I'm facing the error as "Style" & "Script" not found.
回答1:
You must check the .net version for this module to be compatible with orchard version, if you using Orchard 1.10, your module must be reference .Net Framework version 4.5.2, to check it go to your project properties and see "Target Framework".
来源:https://stackoverflow.com/questions/37371106/styles-and-script-in-orchard