CmdLineError 枚举


指定在运行命令行编译器 jsc.exe 时发生的错误。Specifies errors that occur when you run the command-line compiler jsc.exe. 此枚举用于创建 CmdLineException 对象。This enumeration is used to create CmdLineException objects.

此 API 支持产品基础结构,不能在代码中直接使用。

public enum class CmdLineError
public enum CmdLineError
type CmdLineError = 
Public Enum CmdLineError


AssemblyNotFound 2001

未能找到引用的程序集“{0}”。The referenced assembly '{0}' could not be found.

CannotCreateEngine 2002

无法创建 JScript 引擎。Cannot create JScript engine.

CompilerConstant 2003

无法更改编译器常量“{0}”的值。Cannot change value of compiler constant '{0}'.

DuplicateFileAsSourceAndAssembly 2004

重复的文件名“{0}”同时作为源文件和导入的程序集列出。Duplicate file name: '{0}' is listed as both a source file and an imported assembly.

DuplicateResourceFile 2005

多次引用了资源文件“{0}”。Resource file '{0}' referenced more than once.

DuplicateResourceName 2006

资源名“{0}”不是唯一的。Resource name '{0}' is not unique.

DuplicateSourceFile 2007

重复的文件名“{0}”多次作为源文件列出。Duplicate file name: '{0}' is listed as a source file more than once.

ErrorSavingCompiledState 2008

保存编译状态时出错:{0}。Error saving compiled state: {0}.

IncompatibleTargets 2038

GenerateExecutable 属性的值与目标类型“{0}”不兼容。The value of the GenerateExecutable property is not compatible with target type '{0}'.

InvalidAssembly 2009

“{0}”不是有效的程序集。'{0}' is not a valid assembly.

InvalidCharacters 2036

文件名“{0}”包含无效字符(不支持通配符)。File name '{0}' contains invalid characters (wildcard characters are not supported).

InvalidCodePage 2010

代码页“{0}”无效或未安装。Code page '{0}' is invalid or not installed.

InvalidDefinition 2011

必须为定义“{0}”赋以布尔值或整数值。Definition '{0}' must be assigned a Boolean or integral value.

InvalidForCompilerOptions 2037

CompilerOptions 字段中不允许出现“{0}”。'{0}' is not allowed in the CompilerOptions field.

InvalidLocaleID 2012

区域设置 ID“{0}”无效或未安装。Locale ID '{0}' is invalid or not installed.

InvalidPlatform 2039

平台“{0}”无效。Platform '{0}' is invalid. 请指定“x86”、“Itanium”、“x64”或“anycpu”。Specify 'x86', 'Itanium', 'x64', or 'anycpu'.

InvalidSourceFile 2014

“{0}”不是有效的源文件。'{0}' is not a valid source file.

InvalidTarget 2013

目标“{0}”无效。Target '{0}' is invalid. 请指定“exe”或“library”。Specify 'exe' or 'library'.

InvalidVersion 2031

“{0}”不是有效的版本字符串。'{0}' is not a valid version string.

InvalidWarningLevel 2015

用选项“{0}”指定的警告等级无效。Invalid warning level specified with option '{0}'.

LAST 2039

所包含的值与最后赋予的枚举值(赋予的最高枚举值)相同的占位符枚举成员。A placeholder enumeration member that contains the same value as the last (highest) assigned enumeration value.

ManagedResourceNotFound 2022

找不到受管理资源“{0}”。Managed resource '{0}' was not found.

MissingDefineArgument 2018

命令行选项“-define:”缺少标识符。Missing identifier for '-define:' command-line option.

MissingExtension 2019

“{0}”缺少文件扩展名。Missing file extension for '{0}'.

MissingLibArgument 2020

命令行选项“-lib:”缺少文件规范。Missing file specification for '-lib:' command-line option.

MissingReference 2034

参数列表“{0}”中缺少引用。Missing reference in argument list '{0}'.

MissingVersionInfo 2021

-assembly.version 选项中缺少版本信息。Missing version information in -assembly.version option.

MultipleOutputNames 2016

指定了多个输出文件名。Multiple output file names specified.

MultipleTargets 2017

指定了多个目标。Multiple targets specified.

MultipleWin32Resources 2033

不能指定一个以上的 Win32 资源文件。Cannot specify more than one Win32 resource file.

NestedResponseFiles 2023

无法处理嵌套的响应文件。Cannot process nested response files.

NoCodePage 2024

没有用选项“{0}”指定任何代码页。No code page is specified with option '{0}'.

NoError 0

无错误。No error. 这是默认值。This is the default value.

NoFileName 2025

没有用选项“{0}”指定任何文件名。No file name specified with option '{0}'.

NoInputSourcesSpecified 2026

未指定输入源。No input sources specified.

NoLocaleID 2027

没有用选项“{0}”指定任何区域设置 ID。No Locale ID is specified with option '{0}'.

NoWarningLevel 2028

没有用选项“{0}”指定任何警告等级。No warning level specified with option '{0}'.

ResourceNotFound 2029

未找到 Win32 资源“{0}”。Win32 resource '{0}' was not found.

SourceFileTooBig 2032

源文件太大。Source file too big.

SourceNotFound 2035

未能找到源文件“{0}”。Could not find source file '{0}'.

UnknownOption 2030

未知选项“{0}”。Unknown option '{0}'.

Unspecified 2999

错误。Unspecified error.