custom build rules files in Visual Studio 2012

Hi

Under Visual Studio 2008, once i selected a project, I could go to Project->Custom Build Rules and select a rule file.

In Visual Studio 2012, how is this done?  I can see Project->Build Customization. But i do not see any  .rules files here. Where are all the .rules files stored?

thanks
LuckyLucksAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sarabandeCommented:
the .rules files were replaced by another concept. see https://social.msdn.microsoft.com/Forums/en-US/00692bee-b44e-4321-b0f0-0fafc0107065/targets-and-rules-files?forum=vcprerelease

the bottom-line answer is:

.rules is the file format used by Custom Build Rules in previous VS releases (VS2005 and VS2008). In VS2010, Custom Build Rules are superseeded by a more general extensibility point named Build Customizations. Build customizations are represented by at least one .targets file (generally a set of .props+.targets+.xml with the same name).

To ease the migration to the new VS2010 format, the solution conversion will transform any referenced .rules files in their equivalent .props/.targets/.xml: if you go throught the conversion process with any VS2008 project that uses the cuda.rules, after conversion you should see in the same folder with cuda.rules the new cuda.props, cuda.targets and cuda.xml

You can then use these files in other C++ projects as well, by right clicking on a project node in Solution Explorer, select Build Customization, click "Find Existing" and open the cuda.targets file.

Hope this helps,
Marian Luparu
Visual C++

Sara
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual C++.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.