更新:2007 年 11 月
错误消息
对于模块忽略 /win32manifest,因为它仅应用于程序集。
win32 清单仅应用于程序集级。模板将会进行编译,但不具有清单。
更正此错误
移除 /win32manifest option。
将代码编译为程序集。
示例
下面的示例在同时用 /target:module 和 /win32manifest 编译器选项进行编译时生成 CS1927。
// cs1927.cs
// Compile with: /target:module /win32manifest
using System;
class ManifestWithModule
{
static int Main()
{
return 1;
}
}