-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Oqtane - Strong typed data in Html.Partial fails with error CS0246: The type or namespace name 'x' could not be found #3479
Comments
This can't work. What should The correct setup would have a class like Then your file B would look like this: @inherits Custom.Hybrid.RazorTyped
@using AppCode
@using AppCode.Data
@{
var tB= App.Data.GetAll<BlogPost>();
} |
Updated the original example. |
To clarify: Template A:
Template B:
Results in CS0234: The type or namespace name 'Data' does not exist in the namespace 'AppCode' |
Ok. We might have a bug in the AppCode in Oqtane, which @tvatavuk is looking into. Can you confirm that ATM you're working in Oqtane? |
Yes. I picked a DNN app and I'm trying to make it work in Oqtane. The current issue is in Oqtane. |
Thank you for reporting this issue! We identified that inconsistent path formatting was causing the problem, which has now been addressed by ensuring uniform path formatting for reliable comparisons. This fix will be included in the next release. |
I'm submitting a
[x] bug report
[x] not sure
...about
[x] Razor templating
[x] other / unknown
Current Behavior / Expected Behavior
This is a working code from a DNN app
Template A:
Template B:
Results in CS0246: The type or namespace name 'zDepartments' could not be found
Adding
to Template B results in CS0234: The type or namespace name 'Data' does not exist in the namespace 'AppCode'
Your environment
The text was updated successfully, but these errors were encountered: