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

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

This C# program calculates and displays an upper triangular matrix based on user input. Problem Statement: The program takes the...
This C# program serves as a demonstration of bitwise operators, which are fundamental operators used for manipulating individual bits in...
This C# program is designed to interchange or swap the columns of a matrix. A matrix is a two-dimensional array...