Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Visual Studio 2019 中制作自定义模板项目。在我的模板中,项目指令应该位于命名空间内。在编码时,我将它们放在里面。但是当项目生成时,我在外面看到它们(我的代码被覆盖了)。
如何让 Visual Studio 将using语句放置在使用自定义项目模板创建的每个新项目的命名空间中?
using
您是否尝试过您需要设置您的首选位置。您可以在以下路径中找到此选项:
Preferred 'using' directive placement