Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable generation of metagen files in VS2010

When I build a C++/CLI project I get, among others, a file called "proj.exe.metagen".

Deleting it does not impair the execution of the generated executable so I'd rather have it not generated unless there is a good reason to have it around.

How can I disable generation of the metagen file?

like image 277
Anonymous Coward Avatar asked Feb 07 '23 13:02

Anonymous Coward


1 Answers

Project > Properties > General > "Enable Managed Incremental Builds" setting. That's for VS2015 and also for VS2010.

Everybody likes fast builds so the default is Yes. If you select No then msbuild no longer needs the .metagen file to speed up the build and won't create it anymore.

The following image shows the setting in VS2010.

Location of Enable Managed Incremental Build setting in VS2010

like image 70
Hans Passant Avatar answered Mar 11 '23 11:03

Hans Passant