共用方式為


編譯器警告 (層級 2) CS1927

更新:2007 年 11 月

錯誤訊息

忽略模組的 /win32manifest,因為它只適用於組件。

win32 資訊清單只能在組件 (Assembly) 層級上套用。而模組會進行編譯,但是不會有資訊清單。

若要更正這個錯誤

  1. 移除 /win32manifest option

  2. 將這個程式碼編譯為組件。

範例

同時使用 /target:module/win32manifest 編譯器 (Compiler) 選項編譯下列範例時,下列範例會產生 CS1927。

// cs1927.cs
// Compile with: /target:module /win32manifest
using System;

class ManifestWithModule
{
    static int Main()
    {
        return 1;
    }
}

請參閱

參考

/win32manifest (匯入自訂 Win32 資訊清單檔) (C# 編譯器選項)

/target:module (建立加入至組件的模組) (C# 編譯器選項)