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