更新:2007 年 11 月
错误消息
/target 的目标类型无效: 必须指定“exe”、“winexe”、“library”或“module”
使用了 /target 编译器选项,但传递了无效参数。若要解决该错误,请使用适合输出文件的 /target 选项格式重新编译程序。
下面的示例生成 CS2017:
// CS2019.cs
// compile with: /target:libra
// CS2019 expected
class MyClass
{
}
更新:2007 年 11 月
/target 的目标类型无效: 必须指定“exe”、“winexe”、“library”或“module”
使用了 /target 编译器选项,但传递了无效参数。若要解决该错误,请使用适合输出文件的 /target 选项格式重新编译程序。
下面的示例生成 CS2017:
// CS2019.cs
// compile with: /target:libra
// CS2019 expected
class MyClass
{
}