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
- 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.