VS2008 C#编译器错误:"'男星'不是由语言&QUOT的支持; [英] VS2008 C# compiler error: "'.ctor' is not supported by the language"

查看:142
本文介绍了VS2008 C#编译器错误:"'男星'不是由语言&QUOT的支持;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2008 C#编译器收到此错误。谷歌搜索已经变成了没什么用处。我从来没见过这个错误。 ?任何人都可以提供一些线索就可以了。

I received this error from the C# compiler in VS2008. Googling it has turned up nothing useful. I've never seen this error before. Can anyone shed some light on it?

有问题的代码行是一类我定义的实例:

The line of code in question is the instantiation of a class I define:

Frame frame = new Frame( // various arguments...

是的,构造存在,如果没有,那将是一个完全不同的错误。有没有其他的编译错误。这是在这个类实例化项目的唯一一点,我更好奇,比在这一点上任何

Yes, the constructor exists. If it didn't, it would be an entirely different error. There are no other compilation errors. This is the only point in the project where this class is instantiated. I'm more curious than anything at this point.

(编辑)
。使用要求,类的构造函数定义:

(edit) By request, the class constructor definitions:

这是一个我打电话:

public Frame(int startTime, int length, byte commandId)

另一种接受一个对象作为参数。该对象包含由所提供的数据其他构造:

The other one takes an object as a parameter. That object contains the data provided by the other constructor:

public Frame(Command command)

引用的命令类中被引用,确实无错地编译一个单独的程序规定。

The referenced Command class is defined in a separate assembly that is referenced and does compile without error.

推荐答案

我想我找到了答案。或者,至少,此特定错误的原因。

I think I found the answer. Or, at least, the cause of this specific error.

我开始寻找在所涉及的文件,并检查出任何的过期或其他不一致。其中一个组件是在过去的年代。 VS将建立它没有错误,但目标文件的修改日期不会改变。但直到我手动删除该程序集,并重建它做了一个向上的最新二进制出现。

I started looking at the files involved and checking for anything out-of-date or other inconsistencies. One of the assemblies was dated in the past. VS would build it without error, but the target file's modified date would not change. It wasn't until I deleted that assembly manually and rebuilt it did an up-to-date binary appear.

在这之后,我停止接受编译器错误消息。

After that, I stopped receiving the compiler error message.

这篇关于VS2008 C#编译器错误:"'男星'不是由语言&QUOT的支持;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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