开发者

alias a namespace globaly for the entire project [duplicate]

开发者 https://www.devze.com 2022-12-12 07:03 出处:网络
This question already has answers here: Does C# Support Project-Wide Default Namespace Imports Like VB.NET?
This question already has answers here: Does C# Support Project-Wide Default Namespace Imports Like VB.NET? (5 answers) Closed 9 years ago.

is it possible to create a new alias for a given namespace for the entire project?

that is i dont want to write a "using DO = App.Do.App33;" in each cs file of the project.

but i want to do开发者_运维百科 it one time in some configuration or maybe in some cs file.

and then simply DO will refer to App.Do.App33 in the entire Application.


There's no way to do that for the entire project. You're limited to the file level.

0

精彩评论

暂无评论...
验证码 换一张
取 消