Skip to content

[Bug]: @using not working. #42

@leedavi

Description

@leedavi

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

I expected the @using to work in the razor templates. It is not.

This it the error:
Error loading module C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\28ee79b4\2ac9dc91\App_Web_edit.cshtml.b551420d.nnuuf_wg.0.cs(39): error CS0104: 'ArticleViewModel' is an ambiguous reference between 'RocketContentRazor.Models.ArticleViewModel' and 'RocketDirectoryRazor.Models.ArticleViewModel'

It fails with this in the template:
@using RocketContentRazor.Models; @model ArticleViewModel
If I replace the @using with a full namespace it works:
@model RocketContentRazor.Models.ArticleViewModel

Steps to reproduce?

See above

Current Behavior

Se above

Expected Behavior

should have no error with @using.

Relevant log output

Anything else?

No response

Affected Versions

10.1.0 (latest v10 release)

What browsers are you seeing the problem on?

Microsoft Edge

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions