guidance-automation-tool

Visual Studio 2008 code snippet doesn't add Reference Assembly and/or Import Namespace

心不动则不痛 提交于 2019-12-24 03:32:46
问题 I'm developing some code snippet, and I experienced that Visual Studio doesn't automatically add Reference to specified assembly and doesn't import the specified namespace. My snippet definition is: <?xml version="1.0" encoding="utf-8"?> <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> <CodeSnippet Format="1.0.0"> <Header> <Title>MyTryCatch</Title> <Shortcut>myTryCatch</Shortcut> </Header> <Snippet> <References> <Reference> <Assembly>MyAssembly.dll</Assembly>