Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Cannot use types from class libraries (csproj) in razor views #755

Closed
@ShadowDancer

Description

@ShadowDancer

Title

Cannot use types from class libraries (csproj) in razor views

Functional impact

Cannot use types from other systems in razor views (compiled code works as expected).
For example I cannot keep my cms in separate dll.

Minimal repro steps

-create new webapplication rc2 project from template
-create new class library
-create example type in class library
-add reference to class library from rc2 project
-use type from class library

https://github.com/ShadowDancer/rc2_razor_references

Expected result

Compiled view.

Actual result

The type or namespace name 'ClassLibrary' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'ExampleClass' could not be found (are you missing a using directive or an assembly reference?)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions