Reputation: 1818
In my Visual Studio 2010 project I have files with .mm file extension, that need to be compiled as normal C++ files. Is there a way to make a build rule for new extensions or something like that? In VS 2008 there were options for that, but they are gone in 2010.
Upvotes: 1
Views: 3335
Reputation: 19
Upvotes: 0
Reputation: 9003
For an individual file: Right click on the file > Properties > Configuration Properties - General > Item Type : C/C++ compiler.
In general for a project: How to: Select the Files to Build, Walkthrough: Using MSBuild, Walkthrough: Creating an MSBuild Project File from Scratch.
Upvotes: 5
Reputation: 347416
You can set how the file will be compiled for any unknown file type by:
Upvotes: 3