在Asp.Net中使用Iron Python时对ExtensionAttribute的含糊不清的参考 [英] Ambigious reference for ExtensionAttribute when using Iron Python in Asp.Net

查看:98
本文介绍了在Asp.Net中使用Iron Python时对ExtensionAttribute的含糊不清的参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动一个Asp.Net站点时出现以下错误,该站点使用一个程序集,而该程序集又使用dlr和Iron Python进行脚本编写.

I get the following error when starting an Asp.Net site that uses an assembly that in turn makes use of the dlr and Iron Python for scripting.

BC30560:名称空间"System.Runtime.CompilerServices"中的"ExtensionAttribute"不明确.

BC30560: 'ExtensionAttribute' is ambiguous in the namespace 'System.Runtime.CompilerServices'.

问题似乎是已知的,并且问题跟踪器中有一种解决方法.

The issue seems to be known and there's a workaround in the issue tracker.

但是它说他们...

...希望在下一版本中不需要此解决方法.

... hope that this workaround will not be necessary in the next release.

最新版本(我正在使用的版本)比报告中提到的版本更高.我还尝试下载问题跟踪器中提供的文件,并替换当前版本中的文件,但这也不起作用.

The latest release (the one that I'm using) is a later release than the one mentioned in the report. I've also tried downloading the file supplied in the issue tracker and replace the one from the current release, but that does not work either.

除了下载源代码并手动进行构建之外,还有其他解决方案吗?

Is there a solution to this other than downloading the source and doing the build manually?

推荐答案

该错误似乎只是由于该报告附带的DLL而已关闭,因此我认为答案是不,没有更好的方法了" .

The bug only seems to have been closed because of the DLLs attached to the report, so I think the answer is "no, there isn't a better way".

我问这个错误,如果问题仍然存在,为什么将其关闭.

I asked on the bug why it's closed if the issue still exists, though.

这篇关于在Asp.Net中使用Iron Python时对ExtensionAttribute的含糊不清的参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆