Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net Visual Studio代码段:如何引用不在GAC中的程序集_.net_Xml_Assemblies_Reference_Code Snippets - Fatal编程技术网

.net Visual Studio代码段:如何引用不在GAC中的程序集

.net Visual Studio代码段:如何引用不在GAC中的程序集,.net,xml,assemblies,reference,code-snippets,.net,Xml,Assemblies,Reference,Code Snippets,我有一个未签名的第三方程序集,我想在几个项目中引用它。 因此,我创建了一个代码段来添加引用和相对导入 我尝试了下面的方法,并且尝试了几个带有完整路径的变体,没有使用file://etc,但都没有效果。 有什么想法吗 ... <Snippet> <References> <Reference> <Assembly>MyAssemly.dll</Assembly> &l

我有一个未签名的第三方程序集,我想在几个项目中引用它。 因此,我创建了一个代码段来添加引用和相对导入

我尝试了下面的方法,并且尝试了几个带有完整路径的变体,没有使用file://etc,但都没有效果。 有什么想法吗

...
<Snippet>
    <References>
        <Reference>
            <Assembly>MyAssemly.dll</Assembly>
            <Url>file://C:\Program Files\MyProduct</Url>
        </Reference>
    </References>
    <Imports>
        <Import>
...
。。。
MyAssemly.dll
文件://C:\Program Files\MyProduct
...

可以通过添加引用并浏览装配位置来进行本地引用。

这里没有令人满意的答案。URL元素仅用于F1帮助。程序集元素必须是简单名称或完全限定的程序集名称

更大的障碍是
元素仍然没有在C#IDE中实现。这是这部古老小说的主题。它以“推迟”的形式关闭,这给了人们一些希望,希望这一点有朝一日会真正起作用。它们实际上可能使绝对路径名起作用


将您的投票添加到反馈项目中,他们会注意到这一点。

是的,谢谢。不过,我不打算在代码段定义中这样做。