C# Error
CS2012 – Cannot open ‘{0}’ for writing — ‘{1}’
Reason for the Error & Solution
Cannot open ‘file’ for writing
While using the -bugreport:
, file
compiler option, the file could not be opened for writing. Make sure you specified a valid file name and that the file is not read-only.
Important
The bugreport
option is no longer supported.