Usings 和程序集引用不会自动从 C# 片段导入

Usings and assembly references are not automatically imported from C# snippet

我正在尝试使用以下内容编写 C# 片段:

...
<References>
    <Reference><Assembly>Microsoft.VisualBasic.dll</Assembly></Reference>
</References>

<Imports>
    <Import><Namespace>Microsoft.VisualBasic</Namespace></Import>
    <Import><Namespace>System.Text</Namespace></Import>
    <Import><Namespace>System.Xml</Namespace></Import>
</Imports>
...

如 MSDN 文档中所述,我遵循良好的结构:

Create a New Snippet with Imports and References - MSDN

我制作了两个版本的代码片段,一个用于 VB.Net,另一个用于 CSharp,仅代码语言声明和代码块不同,代码片段的其余部分相同。

嗯,VB 版本完美,它添加了我声明的 Imports 语句和程序集引用,但 C# 版本不添加任何 using 语句,我在代码段中声明的程序集参考。

为什么?如何解决?

UPDATE

我在 Whosebug 的其他人那里发现了同样的问题,一直没有解决,给出的解决方案是无效的:

There's a way to create a code snippet with automatically create a using reference?

来自您链接的页面:

If you create a Visual Basic code snippet, you have the ability to specify the necessary references and Imports statements required for your code to run.