編譯器警告 (層級 2) CS1927
更新:2007 年 11 月
錯誤訊息
忽略模組的 /win32manifest,因為它只適用於組件。
win32 資訊清單只能在組件 (Assembly) 層級上套用。而模組會進行編譯,但是不會有資訊清單。
若要更正這個錯誤
移除 /win32manifest option。
將這個程式碼編譯為組件。
範例
同時使用 /target:module 和 /win32manifest 編譯器 (Compiler) 選項編譯下列範例時,下列範例會產生 CS1927。
// cs1927.cs
// Compile with: /target:module /win32manifest
using System;
class ManifestWithModule
{
static int Main()
{
return 1;
}
}