简体   繁体   中英

Where is the “per file” Custom Build Step in Visual Studio 2013?

I have converted my C++ project from Visual Studio 2010 to the 2013 Community edition.

With previous versions I could always right click on a source file and edit a Custom Build step in the properties. Now I can't find the equivalent in VS2013.

The converted project has a Custom Build Step and runs it, but where do I edit it ?

When I open the raw 2013 .vcxproj file, I can see my custom build step as

<CustomBuild Include="foo.h.in">
...
</CustomBuild>

But I don't really want to keep editing my project with a text editor...

Just as harper described. One more thing to add - in VS 2013 and higher they renamed file specific Custom Build Step to Custom Build Tool and its not shown by default. To show it change the Configuration Properties -> General -> Item Type to Custom Build Tool . Apply the changes and 'Custom Build Tool' sub menu will appear.

You find it in the project property pages. Navigate to Configuration Properties -> Custom Build Step -> General .

I had sometimes strange results when converting old projects. I use to create new projects and add the files nowadays what gives better results.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM