C# Error CS1564 – Conflicting options specified: Win32 resource file; Win32 manifest

C# Error

CS1564 – Conflicting options specified: Win32 resource file; Win32 manifest

Reason for the Error & Solution

Conflicting options specified: Win32 resource file; Win32 manifest.

If you use the /Win32res compiler option, you must include the custom Win32 manifest (if it is required) in the resource file. You cannot provide a custom Win32 manifest separately from a Win32 resource file. Use the /win32manifest option only if you are not specifying a win32 resource file.

To correct this error

  1. Add the win32 manifest to the win32 resource file and remove the /win32manifest compiler option.

Example

The following example produces CS1564 if it is compiled with the /Win32res option and no manifest is included in the resource file.

// cs1564.cs  
// Compile with: /Win32res  
public class Test  
{  
    static int Main(string[] args)  
    {  
        return 1;  
    }  
}  

The C# 3.0 compiler adds a default win32Manifest to all binaries.

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

C# Compiler Error CS0442 – ‘Property’: abstract properties cannot have private accessors Reason for the Error You’ll get this error...
This is a really simple one . Below is a simple example of an enum called “Designation” defined with the...
This blog post explain the usage of the Checked Block in .NET and how you can use them in Visual...