Ray
Ray

Reputation: 12441

How to add namespace to razor view engine?

Having to write

@using MyNameSpace

at the top of every view is a lot of work, is there a way to define it at one place and have the intellisense working for all the views?

Upvotes: 2

Views: 2859

Answers (1)

Matthew Abbott
Matthew Abbott

Reputation: 61589

See this SO question and first answer

Razor Syntax @Using and Namespace Declarations fail

Upvotes: 3

Related Questions