This project is read-only.

Export/Package theme using syntax like "Style.Include("../assets/css/style.css");"

Topics: Writing themes
Sep 16, 2013 at 10:46 AM

I designed a custom theme in Visual Studio. This theme is based on 3rd-party theme that does not follow the standard structure of Orchard. For maintenance purpose, I chose to keep all files related to this theme (css, scripts, images, etc.) into a single "assets" folder.

Then I used declarations like:
It was working fine until I want to export this theme and/or build the project for export. In such a case, I get error like:
Could not copy the file "Styles\style.css
Basically it ignores the specified related path, and tries instead to look for the file into the Style path.

Any suggestion ? Should I use absolute paths instead ?

Sep 16, 2013 at 8:05 PM
Hmm, this looks like an MSBuild's, WebDeploy's or something else's error in the build pipeline and I don't think Orchard has to do anything with it. Is your CSS file properly referenced in the theme's project file?