Compiler Error CS2012
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.
One possible cause of this error is that the file is used in another process, for example a debugger or an antivirus program.
Important
The bugreport
option is no longer supported.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: