-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Statiq.Web.props to Statiq.Web.targets causing compilation issues #1006
Comments
It might indeed have something to do with the new Where is the type |
It does not, I did have a look at that issue though. So my folder structure is designed to vaguely be like Razor Pages/MVC. I have a class at: / > Shared > Models > _faq.cs Then I have a partial view: / > Shared > Services > _faq.cshtml and then in about 8 cshtml pages I have: @Html.Partial("/shared/services/_faq.cshtml", faq)
@{
List<Faq> faq = new List<Faq>() {
new Faq() { Question = "Question 1", Answer = "Answer 1." }
}
} I am sure there is probably a million better ways of doing this, but when I originally designed this I just wanted to take the nice stuff from Razor and have them statically compile. |
Hi,
I have some classes in a folder which I use across a whole website. Finally got around to upgrading from 1.0.0-beta.48 and it's now causing compilation issues such as:
[ERRO] Content/PostProcess » RenderContentPostProcessTemplates » ExecuteIf » ExecuteIf » RenderRazor » services/website-translation.cshtml(238,13): error CS0246: The type or namespace name 'Faq' could not be found (are you missing a using directive or an assembly reference?)
I'm sure it's to do with the move from .props to .targets. Nothing I'm using is in any of the reserved folder names. Is there something I should be doing differently now?
The text was updated successfully, but these errors were encountered: